Optimize game.saveConfigValue.
(cherry picked from commit 55f527440f1f89139df738ea7e2539dd56a67d74)
This commit is contained in:
parent
defc586b65
commit
76422bd9eb
|
@ -38445,9 +38445,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
saveConfigValue:function(key){
|
saveConfigValue:key=>game.saveConfig(key,lib.config[key]),
|
||||||
game.saveConfig(key,lib.config[key]);
|
|
||||||
},
|
|
||||||
saveExtensionConfig:(extension,key,value)=>game.saveConfig(`extension_${extension}_${key}`,value),
|
saveExtensionConfig:(extension,key,value)=>game.saveConfig(`extension_${extension}_${key}`,value),
|
||||||
saveExtensionConfigValue:(extension,key)=>game.saveExtensionConfig(extension,key,game.getExtensionConfig(extension,key)),
|
saveExtensionConfigValue:(extension,key)=>game.saveExtensionConfig(extension,key,game.getExtensionConfig(extension,key)),
|
||||||
getExtensionConfig:(extension,key)=>lib.config[`extension_${extension}_${key}`],
|
getExtensionConfig:(extension,key)=>lib.config[`extension_${extension}_${key}`],
|
||||||
|
|
Loading…
Reference in New Issue