You've already forked AM2R-Community-Updates
mirror of
https://github.com/izzy2lost/AM2R-Community-Updates.git
synced 2026-03-10 11:23:35 -07:00
23 lines
689 B
Plaintext
23 lines
689 B
Plaintext
/// copy_save(from, to)
|
|
file1 = "save" + string(argument0 + 1);
|
|
file2 = "save" + string(argument1 + 1);
|
|
if (file_exists(file2)) file_delete(file2);
|
|
file_copy(file1, file2);
|
|
with (oGameSelMenu) event_user(2);
|
|
saveslot_flash(argument1);
|
|
|
|
if (file_exists("random" + string(argument1 + 1) + ".ini"))
|
|
{
|
|
//This is only here for old file cleanup.
|
|
file_delete("random" + string(argument1 + 1) + ".ini");
|
|
}
|
|
if (file_exists("save" + string(argument1 + 1) + ".dat"))
|
|
{
|
|
file_delete("save" + string(argument1 + 1) + ".dat");
|
|
}
|
|
if (file_exists("save" + string(argument0 + 1) + ".dat"))
|
|
{
|
|
file_copy("save" + string(argument0 + 1) + ".dat", "save" + string(argument1 + 1) + ".dat");
|
|
}
|
|
|