mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-12 02:49:20 +00:00
add _'s to debug setting id's
This commit is contained in:
parent
66b87a38a5
commit
84ca2d97e9
@ -206,7 +206,7 @@ export const allApplicationSettings = [
|
||||
export const allDebugSettings = [];
|
||||
for (const k in globalConfig.debug) {
|
||||
if (!IS_DEBUG) break;
|
||||
allDebugSettings.push(new BoolSetting("debug_" + k, categoryDebug, (app, value) => {if (globalConfig.debug.enableDebugSettings) globalConfig.debug[k] = value;}));
|
||||
allDebugSettings.push(new BoolSetting("debug_" + k.replace(/([a-z])([A-Z])/g, (s, a, b) => `${a}_${b}`), categoryDebug, (app, value) => {if (globalConfig.debug.enableDebugSettings) globalConfig.debug[k] = value;}));
|
||||
}
|
||||
allApplicationSettings.push(...allDebugSettings);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user