Pixel-Composer/scripts/version_checker/version_checker.gml

13 lines
310 B
Plaintext
Raw Normal View History

function check_version(path) {
2023-12-08 03:50:09 +01:00
if(!file_exists_empty(path)) {
json_save_struct(path, { version: BUILD_NUMBER });
return true;
}
2024-04-08 14:52:24 +02:00
if(TESTING) return true;
var res = json_load_struct(path);
2023-12-11 09:59:58 +01:00
json_save_struct(path, { version: BUILD_NUMBER });
return struct_try_get(res, "version") != BUILD_NUMBER;
}