mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-03-22 09:44:16 -05:00
21 lines
457 B
Plaintext
21 lines
457 B
Plaintext
///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();
|
|
|
|
return true;
|
|
}
|
|
|
|
show_debug_message("ERROR: Missing save file.");
|
|
return false;
|
|
|
|
|
|
}
|