mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-28 05:24:06 -05:00
Reordering a bit.
This commit is contained in:
16
Project/scripts/savedata_write/savedata_write.gml
Normal file
16
Project/scripts/savedata_write/savedata_write.gml
Normal file
@@ -0,0 +1,16 @@
|
||||
///savedata_write(section, key, value)
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
show_debug_message("ERROR: Missing save file.");
|
||||
return false;
|
||||
Reference in New Issue
Block a user