Pixel-Composer/objects/o_main/Other_2.gml

33 lines
771 B
Text
Raw Normal View History

2022-01-13 05:24:03 +01:00
/// @description main directory, parameter
#region directory
globalvar DIRECTORY;
DIRECTORY = "C:\\Users\\" + environment_get_variable("USERNAME") + "\\AppData\\Local\\Pixels_Composer\\";
log_clear();
2022-01-13 05:24:03 +01:00
log_newline();
log_message("SESSION", "Begin");
log_message("DIRECTORY", DIRECTORY);
2022-11-18 04:04:30 +01:00
//__init_collection();
//__initAssets();
2022-01-13 05:24:03 +01:00
#endregion
#region parameter
alarm[1] = 2;
2022-11-18 04:04:30 +01:00
//if(parameter_count() > 1) {
// var path = parameter_string(1);
// path = string_replace_all(path, "\n", "");
// path = string_replace_all(path, "\"", "");
2022-01-13 05:24:03 +01:00
2022-11-18 04:04:30 +01:00
// if(file_exists(path) && filename_ext(path) == ".pxc") {
// file_open_parameter = path;
// alarm[2] = 3;
2022-01-13 05:24:03 +01:00
2022-11-18 04:04:30 +01:00
// set_working_directory(DIRECTORY);
// }
//}
2022-01-13 05:24:03 +01:00
#endregion
#region pref
PREF_LOAD();
setPanel();
#endregion