mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-30 11:13:17 +08:00
Merge pull request #220 from Dliwk/auto-enable-plguins-headless
Meta subsytem now enables new plugin by default in headless builds
This commit is contained in:
commit
111d148264
@ -1,3 +1,6 @@
|
||||
### 1.5.30 (20263)
|
||||
- Meta subsytem now enables new plugin by default in headless builds
|
||||
|
||||
### 1.5.29 (20246)
|
||||
- Exposed ba method/class initing in public C++ layer.
|
||||
- The 'restart' and 'shutdown' commands in the server script now default to immediate=True
|
||||
|
||||
@ -99,7 +99,16 @@ class MetadataSubsystem:
|
||||
class_path=class_path,
|
||||
available=True))
|
||||
if class_path not in plugstates:
|
||||
plugstates[class_path] = {'enabled': False}
|
||||
if _ba.app.headless_mode:
|
||||
# If we running in headless mode, enable plugin by default
|
||||
# to allow server admins to get their modified build
|
||||
# working 'out-of-the-box', without manually updating the
|
||||
# config.
|
||||
plugstates[class_path] = {'enabled': True}
|
||||
else:
|
||||
# If we running in normal mode, disable plugin by default
|
||||
# (user can enable it later).
|
||||
plugstates[class_path] = {'enabled': False}
|
||||
config_changed = True
|
||||
found_new = True
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user