mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
refactor: centralize localization keys and remove runtime Chinese literals
This commit is contained in:
1 parent
34c99701ca
commit
036243fd4a
32 files changed
+873
-403
No files matched your search
@@ -18,6 +18,8 @@ public class CheatEnabler : BaseUnityPlugin
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
I18N.Init();
|
||||
|
||||
GamePatch.DevShortcutsEnabled = Config.Bind("General", "DevShortcuts", false, "Enable DevMode shortcuts");
|
||||
GamePatch.AbnormalDisablerEnabled = Config.Bind("General", "DisableAbnormalChecks", false,
|
||||
"disable all abnormal checks");
|
||||
@@ -97,9 +99,12 @@ public class CheatEnabler : BaseUnityPlugin
|
||||
"Mecha and Drones/Fleets invincible");
|
||||
CombatPatch.BuildingsInvincibleEnabled = Config.Bind("Battle", "BuildingsInvincible", false,
|
||||
"Buildings invincible");
|
||||
Localization.Register();
|
||||
UIConfigWindow.Init();
|
||||
ModFeatureRegistry.Discover(Assembly.GetExecutingAssembly());
|
||||
ModFeatureRegistry.InitAll();
|
||||
|
||||
I18N.Apply();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
|
||||
Reference in new issue
Block a user