mirror of
https://github.com/PoshoDev/DexTool.git
synced 2026-08-28 13:34:04 -05:00
Switcharoo to Gee Emm 2.3
This commit is contained in:
@@ -1,43 +1,47 @@
|
||||
///savedata_load()
|
||||
function savedata_load() {
|
||||
|
||||
if (file_exists("save.ini"))
|
||||
{
|
||||
ini_open("save.ini")
|
||||
global.current_box = ini_read_real("Navigation", "Current Box", 1);
|
||||
global.show_dex = ini_read_real("Display", "Galar Dex", shw.national);
|
||||
global.show_shiny = ini_read_real("Display", "Shiny Mode", false);
|
||||
if (file_exists("save.ini"))
|
||||
{
|
||||
ini_open("save.ini")
|
||||
global.current_box = ini_read_real("Navigation", "Current Box", 1);
|
||||
global.show_dex = ini_read_real("Display", "Galar Dex", shw.national);
|
||||
global.show_shiny = ini_read_real("Display", "Shiny Mode", false);
|
||||
|
||||
var section = savedata_section_get(global.show_shiny);
|
||||
global.countdata[0] =0
|
||||
for (var i=1; i<=global.dex_len; i++)
|
||||
{
|
||||
global.savedata[i] = ini_read_real(section, string(i), 0);
|
||||
global.countdata[i] = ini_read_real(section+" Count", string(i), 0);
|
||||
/*
|
||||
if (global.savedata[global.dexdata[i, dex.idno]] || global.countdata[global.dexdata[i, dex.idno]])
|
||||
show_debug_message( "found: "+global.dexdata[i, dex.pokemon]+
|
||||
"\tid: "+string(i)+
|
||||
"\town: "+string(global.savedata[global.dexdata[i, dex.idno]])+
|
||||
"\tcount: "+global.countdata[global.dexdata[i, dex.idno]]);*/
|
||||
}
|
||||
var section = savedata_section_get(global.show_shiny);
|
||||
global.countdata[0] =0
|
||||
for (var i=1; i<=global.dex_len; i++)
|
||||
{
|
||||
global.savedata[i] = ini_read_real(section, string(i), 0);
|
||||
global.countdata[i] = ini_read_real(section+" Count", string(i), 0);
|
||||
/*
|
||||
if (global.savedata[global.dexdata[i, dex.idno]] || global.countdata[global.dexdata[i, dex.idno]])
|
||||
show_debug_message( "found: "+global.dexdata[i, dex.pokemon]+
|
||||
"\tid: "+string(i)+
|
||||
"\town: "+string(global.savedata[global.dexdata[i, dex.idno]])+
|
||||
"\tcount: "+global.countdata[global.dexdata[i, dex.idno]]);*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
ini_close();
|
||||
show_debug_message("LOADED SAVE FILE.");
|
||||
ini_close();
|
||||
show_debug_message("LOADED SAVE FILE.");
|
||||
}
|
||||
else
|
||||
{
|
||||
ini_open("save.ini");
|
||||
ini_write_real("Info", "Number", version_get());
|
||||
ini_close();
|
||||
|
||||
global.current_box = 1;
|
||||
global.show_dex = 0;
|
||||
global.show_shiny = false;
|
||||
|
||||
for (var i=0; i<=global.dex_len; i++)
|
||||
global.savedata[i] = 0;
|
||||
|
||||
show_debug_message("CREATED SAVE FILE.");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ini_open("save.ini");
|
||||
ini_write_real("Info", "Number", version_get());
|
||||
ini_close();
|
||||
|
||||
global.current_box = 1;
|
||||
global.show_dex = 0;
|
||||
global.show_shiny = false;
|
||||
|
||||
for (var i=0; i<=global.dex_len; i++)
|
||||
global.savedata[i] = 0;
|
||||
|
||||
show_debug_message("CREATED SAVE FILE.");
|
||||
}
|
||||
@@ -1,8 +1,12 @@
|
||||
{
|
||||
"id": "9d9efccc-e28a-2782-ecbe-3ea08da108d6",
|
||||
"modelName": "GMScript",
|
||||
"mvc": "1.0",
|
||||
"name": "savedata_load",
|
||||
"IsCompatibility": false,
|
||||
"IsDnD": false
|
||||
"isDnD": false,
|
||||
"isCompatibility": false,
|
||||
"parent": {
|
||||
"name": "Scripts",
|
||||
"path": "folders/Scripts.yy",
|
||||
},
|
||||
"resourceVersion": "1.0",
|
||||
"name": "savedata_load",
|
||||
"tags": [],
|
||||
"resourceType": "GMScript",
|
||||
}
|
||||
Reference in New Issue
Block a user