mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 22:46:19 +01:00
13 lines
No EOL
310 B
Text
13 lines
No EOL
310 B
Text
function check_version(path) {
|
|
if(!file_exists_empty(path)) {
|
|
json_save_struct(path, { version: BUILD_NUMBER });
|
|
return true;
|
|
}
|
|
|
|
if(TESTING) return true;
|
|
|
|
var res = json_load_struct(path);
|
|
json_save_struct(path, { version: BUILD_NUMBER });
|
|
|
|
return struct_try_get(res, "version") != BUILD_NUMBER;
|
|
} |