1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-02-11 18:39:21 +00:00

add _'s to debug setting id's

This commit is contained in:
Dimava 2020-05-29 10:45:53 +03:00
parent 66b87a38a5
commit 84ca2d97e9

View File

@ -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);