mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-23 11:04:13 -05:00
Switcharoo to Gee Emm 2.3
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
///savedata_write(section, key, value)
|
||||
function savedata_write(argument0, argument1, argument2) {
|
||||
|
||||
if (file_exists("save.ini"))
|
||||
{
|
||||
ini_open("save.ini");
|
||||
if (typeof(argument2) == "string")
|
||||
ini_write_string(argument0, argument1, argument2);
|
||||
else
|
||||
ini_write_real(argument0, argument1, argument2);
|
||||
ini_close();
|
||||
if (file_exists("save.ini"))
|
||||
{
|
||||
ini_open("save.ini");
|
||||
if (typeof(argument2) == "string")
|
||||
ini_write_string(argument0, argument1, argument2);
|
||||
else
|
||||
ini_write_real(argument0, argument1, argument2);
|
||||
ini_close();
|
||||
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
show_debug_message("ERROR: Missing save file.");
|
||||
return false;
|
||||
show_debug_message("ERROR: Missing save file.");
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user