Noita Save Manager

 avatar
unknown
autohotkey
9 months ago
19 kB
97
No Index
;Noita Save Manager is forked from Save and Load Slots by yamanato https://modworkshop.net/mod/33603 which was forked from NoitaQuickSave by Snippy (2) https://modworkshop.net/mod/26537
;Whats new: Various improvements, 20 save slots instead of 5, Ability to rename save slots, Record save dates and time, An Exit hotkey/button, Ability to change hotkeys
;Note: This will create a NoitaSaveManager.ini file in the same directory as Noita Save Manager
;Created 26 April, 2024 by Toveri

#SingleInstance Force

#IfWinActive, ahk_exe noita.exe

global currentslot = ""

global Slot1 = "Slot 1 (No Save)"
global Slot2 = "Slot 2 (No Save)"
global Slot3 = "Slot 3 (No Save)"
global Slot4 = "Slot 4 (No Save)"
global Slot5 = "Slot 5 (No Save)"
global Slot6 = "Slot 6 (No Save)"
global Slot7 = "Slot 7 (No Save)"
global Slot8 = "Slot 8 (No Save)"
global Slot9 = "Slot 9 (No Save)"
global Slot10 = "Slot 10 (No Save)"
global Slot11 = "Slot 11 (No Save)"
global Slot12 = "Slot 12 (No Save)"
global Slot13 = "Slot 13 (No Save)"
global Slot14 = "Slot 14 (No Save)"
global Slot15 = "Slot 15 (No Save)"
global Slot16 = "Slot 16 (No Save)"
global Slot17 = "Slot 17 (No Save)"
global Slot18 = "Slot 18 (No Save)"
global Slot19 = "Slot 19 (No Save)"
global Slot20 = "Slot 20 (No Save)"

global Slot1Name = "Slot 1"
global Slot2Name = "Slot 2"
global Slot3Name = "Slot 3"
global Slot4Name = "Slot 4"
global Slot5Name = "Slot 5"
global Slot6Name = "Slot 6"
global Slot7Name = "Slot 7"
global Slot8Name = "Slot 8"
global Slot9Name = "Slot 9"
global Slot10Name = "Slot 10"
global Slot11Name = "Slot 11"
global Slot12Name = "Slot 12"
global Slot13Name = "Slot 13"
global Slot14Name = "Slot 14"
global Slot15Name = "Slot 15"
global Slot16Name = "Slot 16"
global Slot17Name = "Slot 17"
global Slot18Name = "Slot 18"
global Slot19Name = "Slot 19"
global Slot20Name = "Slot 20"

global CUSTOM_SAVELOAD_HOTKEY = F5
global CUSTOM_EXIT_HOTKEY = ESC

SaveData()
LoadData()
CreateGUI()

return

SaveGame:
	CurrentDate = % A_DD . " " . A_MMMM . " " . A_YYYY
	FormatTime, CurrentTime,, Time
	global DateTime = CurrentDate " @ " CurrentTime
    slot_number :=
    Gui SaveLoadGui:Submit, slot_number
	currentslot = %slot_number%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	Msgbox, 4,Noita Save Manager, This will overwrite the save in Slot %currentslot% - Continue?
		IfMsgBox No
		SkipSave = 1
		else
	SaveData()
    Process, WaitClose, noita.exe
	if(SkipSave = 0)
	{
    EnvGet, saveDir, AppData
    saveDir := StrReplace(saveDir, "Roaming", "LocalLow\Nolla_Games_Noita\save00")
    FileCopyDir, %saveDir%, %saveDir%\..\save_backup_%slot_number% , true
	}SkipSave = 0
    Run, %executablePath%, %executableDir%
    return

LoadGame:
    slot_number :=
    Gui SaveLoadGui:Submit, slot_number
	LoadData()
    Process, Close, noita.exe
    EnvGet, saveDir, AppData
    saveDir := StrReplace(saveDir, "Roaming", "LocalLow\Nolla_Games_Noita\save00")
    IfExist , %saveDir%\..\save_backup_%slot_number%
        FileCopyDir, %saveDir%\..\save_backup_%slot_number%, %saveDir%, true
    Else
        Msgbox, 0,Noita Save Manager, Save slot is empty, The game will resume last session.
    Run, %executablePath%, %executableDir%
    return
	
RenameSlot:
    slot_number :=
    Gui SaveLoadGui:Submit, slot_number
	currentslot = %slot_number%
	RenameSlot()
	Run, %executablePath%, %executableDir%
return
	
ChangeHotkeys:
	Run, %A_ScriptDir%\NoitaSaveManager.ini
return

OpenSaveDirectory:
	EnvGet, saveDir2, AppData
    saveDir2 := StrReplace(saveDir2, "Roaming", "LocalLow\Nolla_Games_Noita\")
	Run, %saveDir2%
return

Cancel:
    slot_number :=
    Gui SaveLoadGui:Cancel
	LoadData()
	Gui +LastFound +OwnDialogs +AlwaysOnTop
    Msgbox, 0,Noita Save Manager, Cancelled operation, The game will resume last session.
    Run, %executablePath%, %executableDir%
    return

ExitSaveManager:
	Msgbox, 4,Noita Save Manager, This will close Noita Save Manager - Continue?
		IfMsgBox No
		return
		else
		ExitApp

SAVELOAD_HOTKEY:
	global GUIstarted = 1
	SkipSave = 0
	LoadData()
    WinGet, executablePath, ProcessPath, ahk_exe noita.exe
    executableDir := RTrim(executablePath, "noita.exe")
    Send, !{F4}
	CreateGUI()
    Gui SaveLoadGui:Show
    Return
	
EXIT_HOTKEY:
	Msgbox, 4,Noita Save Manager, This will close Noita Save Manager - Continue?
		IfMsgBox No
		return
		else
		ExitApp
	
CreateGUI()
{
Gui, SaveLoadGUI:Destroy
Gui, SaveLoadGUI:Cancel
Gui, SaveLoadGui:Add, ListBox, w300 r20 vslot_number AltSubmit, %Slot1%|%Slot2%|%Slot3%|%Slot4%|%Slot5%|%Slot6%|%Slot7%|%Slot8%|%Slot9%|%Slot10%|%Slot11%|%Slot12%|%Slot13%|%Slot14%|%Slot15%|%Slot16%|%Slot17%|%Slot18%|%Slot19%|%Slot20%
Gui, SaveLoadGui:Add, Button, gSaveGame, Save Game
Gui, SaveLoadGui:Add, Button, gLoadGame, Load Game
Gui, SaveLoadGui:Add, Button, gRenameSlot, Rename Selected Slot
Gui, SaveLoadGui:Add, Button, gChangeHotkeys, Change Hotkeys
Gui, SaveLoadGui:Add, Button, gOpenSaveDirectory, Open Save Directory
Gui, SaveLoadGui:Add, Button, gCancel, Cancel
Gui, SaveLoadGui:Add, Button, gExitSaveManager, Exit Save Manager
}	
	
RenameSlot()
{
global StoredName = ""

if(currentslot == 0 || currentslot == "")
{
	Gui +LastFound +OwnDialogs +AlwaysOnTop
    Msgbox, 0, Noita Save Manager, Save slot not selected, The game will resume last session.
	return
}	

if(currentslot == 1)
{
	StoredName = %Slot1Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot1Name, Noita Save Manager, Renaming Slot 1 - '%Slot1Name%', , 220, 130
	if ErrorLevel
	Slot1Name = %StoredName%
}	
	
if(currentslot == 2)
{
	StoredName = %Slot2Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot2Name, Noita Save Manager, Renaming Slot 2 - '%Slot2Name%', , 220, 130
	if ErrorLevel
	Slot2Name = %StoredName%
}	

if(currentslot == 3)
{
	StoredName = %Slot3Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot3Name, Noita Save Manager, Renaming Slot 3 - '%Slot3Name%', , 220, 130
	if ErrorLevel
	Slot3Name = %StoredName%
}	

if(currentslot == 4)
{
	StoredName = %Slot4Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot4Name, Noita Save Manager, Renaming Slot 4 - '%Slot4Name%', , 220, 130
	if ErrorLevel
	Slot4Name = %StoredName%
}	

if(currentslot == 5)
{
	StoredName = %Slot5Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot5Name, Noita Save Manager, Renaming Slot 5 - '%Slot5Name%', , 220, 130
	if ErrorLevel
	Slot5Name = %StoredName%
}	

if(currentslot == 6)
{
	StoredName = %Slot6Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot6Name, Noita Save Manager, Renaming Slot 6 - '%Slot6Name%', , 220, 130
	if ErrorLevel
	Slot6Name = %StoredName%
}	

if(currentslot == 7)
{
	StoredName = %Slot7Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot7Name, Noita Save Manager, Renaming Slot 7 - '%Slot7Name%', , 220, 130
	if ErrorLevel
	Slot7Name = %StoredName%
}	

if(currentslot == 8)
{
	StoredName = %Slot8Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot8Name, Noita Save Manager, Renaming Slot 8 - '%Slot8Name%', , 220, 130
	if ErrorLevel
	Slot8Name = %StoredName%
}	

if(currentslot == 9)
{
	StoredName = %Slot9Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot9Name, Noita Save Manager, Renaming Slot 9 - '%Slot9Name%', , 220, 130
	if ErrorLevel
	Slot9Name = %StoredName%
}	

if(currentslot == 10)
{
	StoredName = %Slot10Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot10Name, Noita Save Manager, Renaming Slot 10 - '%Slot10Name%', , 220, 130
	if ErrorLevel
	Slot10Name = %StoredName%
}	

if(currentslot == 11)
{
	StoredName = %Slot11Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot11Name, Noita Save Manager, Renaming Slot 11 - '%Slot11Name%', , 220, 130
	if ErrorLevel
	Slot11Name = %StoredName%
}	

if(currentslot == 12)
{
	StoredName = %Slot12Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot12Name, Noita Save Manager, Renaming Slot 12 - '%Slot12Name%', , 220, 130
	if ErrorLevel
	Slot12Name = %StoredName%
}	

if(currentslot == 13)
{
	StoredName = %Slot13Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot13Name, Noita Save Manager, Renaming Slot 13 - '%Slot13Name%', , 220, 130
	if ErrorLevel
	Slot13Name = %StoredName%
}	

if(currentslot == 14)
{
	StoredName = %Slot14Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot14Name, Noita Save Manager, Renaming Slot 14 - '%Slot14Name%', , 220, 130
	if ErrorLevel
	Slot14Name = %StoredName%
}	

if(currentslot == 15)
{
	StoredName = %Slot15Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot15Name, Noita Save Manager, Renaming Slot 15 - '%Slot15Name%', , 220, 130
	if ErrorLevel
	Slot15Name = %StoredName%
}	

if(currentslot == 16)
{
	StoredName = %Slot16Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot16Name, Noita Save Manager, Renaming Slot 16 - '%Slot16Name%', , 220, 130
	if ErrorLevel
	Slot16Name = %StoredName%
}	

if(currentslot == 17)
{
	StoredName = %Slot17Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot17Name, Noita Save Manager, Renaming Slot 17 - '%Slot17Name%', , 220, 130
	if ErrorLevel
	Slot17Name = %StoredName%
}	

if(currentslot == 18)
{
	StoredName = %Slot18Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot18Name, Noita Save Manager, Renaming Slot 18 - '%Slot18Name%', , 220, 130
	if ErrorLevel
	Slot18Name = %StoredName%
}	

if(currentslot == 19)
{
	StoredName = %Slot19Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot19Name, Noita Save Manager, Renaming Slot 19 - '%Slot19Name%', , 220, 130
	if ErrorLevel
	Slot19Name = %StoredName%
}	
	
if(currentslot == 20)
{
	StoredName = %Slot20Name%
	Gui +LastFound +OwnDialogs +AlwaysOnTop
	InputBox, Slot20Name, Noita Save Manager, Renaming Slot 20 - '%Slot20Name%', , 220, 130
	if ErrorLevel
	Slot20Name = %StoredName%
}	

SaveData()
LoadData()
}
	
SaveData()
{
SetWorkingDir %A_ScriptDir%	

IniRead, SAVELOAD_HOTKEY, NoitaSaveManager.ini, Hotkeys, SAVELOAD_HOTKEY, 0
Loop, 1
{
     CUSTOM_SAVELOAD_HOTKEY = %SAVELOAD_HOTKEY%
	 if(SAVELOAD_HOTKEY == 0){
	 SAVELOAD_HOTKEY = F5
	 }
}
IniWrite, %SAVELOAD_HOTKEY%, NoitaSaveManager.ini, Hotkeys, SAVELOAD_HOTKEY

IniRead, EXIT_HOTKEY, NoitaSaveManager.ini, Hotkeys, EXIT_HOTKEY, 0
Loop, 1
{
     CUSTOM_EXIT_HOTKEY = %EXIT_HOTKEY%
	 if(EXIT_HOTKEY == 0){
	 EXIT_HOTKEY = ESC
	 }
}
IniWrite, %EXIT_HOTKEY%, NoitaSaveManager.ini, Hotkeys, EXIT_HOTKEY


if(currentslot == 0 || currentslot == "" && GUIstarted == 1)
{
	Gui +LastFound +OwnDialogs +AlwaysOnTop
    Msgbox, 0, Noita Save Manager, Save slot not selected, The game will resume last session.
	global SkipSave = 1
	return
}	

if(currentslot == 1)
{
IniRead, SLOT_1, NoitaSaveManager.ini, Saves, SLOT_1, 0
Loop, 1
{
     SLOT_1 = "%Slot1Name% (%DateTime%)"
	 if(SLOT_1 == 0){
	 SLOT_1 = Slot 1 (No Save)
	 }
}
IniWrite, %SLOT_1%, NoitaSaveManager.ini, Saves, SLOT_1
}

if(currentslot == 2)
{
IniRead, SLOT_2, NoitaSaveManager.ini, Saves, SLOT_2, 0
Loop, 1
{
     SLOT_2 = "%Slot2Name% (%DateTime%)"
	 if(SLOT_2 == 0){
	 SLOT_2 = Slot 2 (No Save)
	 }
}
IniWrite, %SLOT_2%, NoitaSaveManager.ini, Saves, SLOT_2
}

if(currentslot == 3)
{
IniRead, SLOT_3, NoitaSaveManager.ini, Saves, SLOT_3, 0
Loop, 1
{
     SLOT_3 = "%Slot3Name% (%DateTime%)"
	 if(SLOT_3 == 0){
	 SLOT_3 = Slot 3 (No Save)
	 }
}
IniWrite, %SLOT_3%, NoitaSaveManager.ini, Saves, SLOT_3
}

if(currentslot == 4)
{
IniRead, SLOT_4, NoitaSaveManager.ini, Saves, SLOT_4, 0
Loop, 1
{
     SLOT_4 = "%Slot4Name% (%DateTime%)"
	 if(SLOT_4 == 0){
	 SLOT_4 = Slot 4 (No Save)
	 }
}
IniWrite, %SLOT_4%, NoitaSaveManager.ini, Saves, SLOT_4
}

if(currentslot == 5)
{
IniRead, SLOT_5, NoitaSaveManager.ini, Saves, SLOT_5, 0
Loop, 1
{
     SLOT_5 = "%Slot5Name% (%DateTime%)"
	 if(SLOT_5 == 0){
	 SLOT_5 = Slot 5 (No Save)
	 }
}
IniWrite, %SLOT_5%, NoitaSaveManager.ini, Saves, SLOT_5
}

if(currentslot == 6)
{
IniRead, SLOT_6, NoitaSaveManager.ini, Saves, SLOT_6, 0
Loop, 1
{
     SLOT_6 = "%Slot6Name% (%DateTime%)"
	 if(SLOT_6 == 0){
	 SLOT_6 = Slot 6 (No Save)
	 }
}
IniWrite, %SLOT_6%, NoitaSaveManager.ini, Saves, SLOT_6
}

if(currentslot == 7)
{
IniRead, SLOT_7, NoitaSaveManager.ini, Saves, SLOT_7, 0
Loop, 1
{
     SLOT_7 = "%Slot7Name% (%DateTime%)"
	 if(SLOT_7 == 0){
	 SLOT_7 = Slot 7 (No Save)
	 }
}
IniWrite, %SLOT_7%, NoitaSaveManager.ini, Saves, SLOT_7
}

if(currentslot == 8)
{
IniRead, SLOT_8, NoitaSaveManager.ini, Saves, SLOT_8, 0
Loop, 1
{
     SLOT_8 = "%Slot8Name% (%DateTime%)"
	 if(SLOT_8 == 0){
	 SLOT_8 = Slot 8 (No Save)
	 }
}
IniWrite, %SLOT_8%, NoitaSaveManager.ini, Saves, SLOT_8
}

if(currentslot == 9)
{
IniRead, SLOT_9, NoitaSaveManager.ini, Saves, SLOT_9, 0
Loop, 1
{
     SLOT_9 = "%Slot9Name% (%DateTime%)"
	 if(SLOT_9 == 0){
	 SLOT_9 = Slot 9 (No Save)
	 }
}
IniWrite, %SLOT_9%, NoitaSaveManager.ini, Saves, SLOT_9
}

if(currentslot == 10)
{
IniRead, SLOT_10, NoitaSaveManager.ini, Saves, SLOT_10, 0
Loop, 1
{
     SLOT_10 = "%Slot10Name% (%DateTime%)"
	 if(SLOT_10 == 0){
	 SLOT_10 = Slot 10 (No Save)
	 }
}
IniWrite, %SLOT_10%, NoitaSaveManager.ini, Saves, SLOT_10
}

if(currentslot == 11)
{
IniRead, SLOT_11, NoitaSaveManager.ini, Saves, SLOT_11, 0
Loop, 1
{
     SLOT_11 = "%Slot11Name% (%DateTime%)"
	 if(SLOT_11 == 0){
	 SLOT_11 = Slot 11 (No Save)
	 }
}
IniWrite, %SLOT_11%, NoitaSaveManager.ini, Saves, SLOT_11
}

if(currentslot == 12)
{
IniRead, SLOT_12, NoitaSaveManager.ini, Saves, SLOT_12, 0
Loop, 1
{
     SLOT_12 = "%Slot12Name% (%DateTime%)"
	 if(SLOT_12 == 0){
	 SLOT_12 = Slot 12 (No Save)
	 }
}
IniWrite, %SLOT_12%, NoitaSaveManager.ini, Saves, SLOT_12
}

if(currentslot == 13)
{
IniRead, SLOT_13, NoitaSaveManager.ini, Saves, SLOT_13, 0
Loop, 1
{
     SLOT_13 = "%Slot13Name% (%DateTime%)"
	 if(SLOT_13 == 0){
	 SLOT_13 = Slot 13 (No Save)
	 }
}
IniWrite, %SLOT_13%, NoitaSaveManager.ini, Saves, SLOT_13
}

if(currentslot == 14)
{
IniRead, SLOT_14, NoitaSaveManager.ini, Saves, SLOT_14, 0
Loop, 1
{
     SLOT_14 = "%Slot14Name% (%DateTime%)"
	 if(SLOT_14 == 0){
	 SLOT_14 = Slot 14 (No Save)
	 }
}
IniWrite, %SLOT_14%, NoitaSaveManager.ini, Saves, SLOT_14
}

if(currentslot == 15)
{
IniRead, SLOT_15, NoitaSaveManager.ini, Saves, SLOT_15, 0
Loop, 1
{
     SLOT_15 = "%Slot15Name% (%DateTime%)"
	 if(SLOT_15 == 0){
	 SLOT_15 = Slot 15 (No Save)
	 }
}
IniWrite, %SLOT_15%, NoitaSaveManager.ini, Saves, SLOT_15
}

if(currentslot == 16)
{
IniRead, SLOT_16, NoitaSaveManager.ini, Saves, SLOT_16, 0
Loop, 1
{
     SLOT_16 = "%Slot16Name% (%DateTime%)"
	 if(SLOT_16 == 0){
	 SLOT_16 = Slot 16 (No Save)
	 }
}
IniWrite, %SLOT_16%, NoitaSaveManager.ini, Saves, SLOT_16
}

if(currentslot == 17)
{
IniRead, SLOT_17, NoitaSaveManager.ini, Saves, SLOT_17, 0
Loop, 1
{
     SLOT_17 = "%Slot17Name% (%DateTime%)"
	 if(SLOT_17 == 0){
	 SLOT_17 = Slot 17 (No Save)
	 }
}
IniWrite, %SLOT_17%, NoitaSaveManager.ini, Saves, SLOT_17
}

if(currentslot == 18)
{
IniRead, SLOT_18, NoitaSaveManager.ini, Saves, SLOT_18, 0
Loop, 1
{
     SLOT_18 = "%Slot18Name% (%DateTime%)"
	 if(SLOT_18 == 0){
	 SLOT_18 = Slot 18 (No Save)
	 }
}
IniWrite, %SLOT_18%, NoitaSaveManager.ini, Saves, SLOT_18
}

if(currentslot == 19)
{
IniRead, SLOT_19, NoitaSaveManager.ini, Saves, SLOT_19, 0
Loop, 1
{
     SLOT_19 = "%Slot19Name% (%DateTime%)"
	 if(SLOT_19 == 0){
	 SLOT_19 = Slot 19 (No Save)
	 }
}
IniWrite, %SLOT_19%, NoitaSaveManager.ini, Saves, SLOT_19
}

if(currentslot == 20)
{
IniRead, SLOT_20, NoitaSaveManager.ini, Saves, SLOT_20, 0
Loop, 1
{
     SLOT_20 = "%Slot20Name% (%DateTime%)"
	 if(SLOT_20 == 0){
	 SLOT_20 = Slot 20 (No Save)
	 }
}
IniWrite, %SLOT_20%, NoitaSaveManager.ini, Saves, SLOT_20
}

}

LoadData()
{
SetWorkingDir %A_ScriptDir%

IniRead, SAVELOAD_HOTKEY, NoitaSaveManager.ini, Hotkeys, SAVELOAD_HOTKEY, 0
Loop, 1
{
    CUSTOM_SAVELOAD_HOTKEY = %SAVELOAD_HOTKEY%
	Hotkey, ~%CUSTOM_SAVELOAD_HOTKEY% , SAVELOAD_HOTKEY , On
}

IniRead, EXIT_HOTKEY, NoitaSaveManager.ini, Hotkeys, EXIT_HOTKEY, 0
Loop, 1
{
    CUSTOM_EXIT_HOTKEY = %EXIT_HOTKEY%
	Hotkey, ~%CUSTOM_EXIT_HOTKEY% , EXIT_HOTKEY , On
}

IniRead, SLOT_1, NoitaSaveManager.ini, Saves, SLOT_1, 0
Loop, 1
{
	 if(SLOT_1 == 0){
	 SLOT_1 = Slot 1 (No Save)
	 }
    Slot1 = %SLOT_1%
}

IniRead, SLOT_2, NoitaSaveManager.ini, Saves, SLOT_2, 0
Loop, 1
{
	 if(SLOT_2 == 0){
	 SLOT_2 = Slot 2 (No Save)
	 }
    Slot2 = %SLOT_2%
}

IniRead, SLOT_3, NoitaSaveManager.ini, Saves, SLOT_3, 0
Loop, 1
{
	 if(SLOT_3 == 0){
	 SLOT_3 = Slot 3 (No Save)
	 }
    Slot3 = %SLOT_3%
}

IniRead, SLOT_4, NoitaSaveManager.ini, Saves, SLOT_4, 0
Loop, 1
{
	 if(SLOT_4 == 0){
	 SLOT_4 = Slot 4 (No Save)
	 }
    Slot4 = %SLOT_4%
}

IniRead, SLOT_5, NoitaSaveManager.ini, Saves, SLOT_5, 0
Loop, 1
{
	 if(SLOT_5 == 0){
	 SLOT_5 = Slot 5 (No Save)
	 }
    Slot5 = %SLOT_5%
}

IniRead, SLOT_6, NoitaSaveManager.ini, Saves, SLOT_6, 0
Loop, 1
{
	 if(SLOT_6 == 0){
	 SLOT_6 = Slot 6 (No Save)
	 }
    Slot6 = %SLOT_6%
}

IniRead, SLOT_7, NoitaSaveManager.ini, Saves, SLOT_7, 0
Loop, 1
{
	 if(SLOT_7 == 0){
	 SLOT_7 = Slot 7 (No Save)
	 }
    Slot7 = %SLOT_7%
}

IniRead, SLOT_8, NoitaSaveManager.ini, Saves, SLOT_8, 0
Loop, 1
{
	 if(SLOT_8 == 0){
	 SLOT_8 = Slot 8 (No Save)
	 }
    Slot8 = %SLOT_8%
}

IniRead, SLOT_9, NoitaSaveManager.ini, Saves, SLOT_9, 0
Loop, 1
{
	 if(SLOT_9 == 0){
	 SLOT_9 = Slot 9 (No Save)
	 }
    Slot9 = %SLOT_9%
}

IniRead, SLOT_10, NoitaSaveManager.ini, Saves, SLOT_10, 0
Loop, 1
{
	 if(SLOT_10 == 0){
	 SLOT_10 = Slot 10 (No Save)
	 }
    Slot10 = %SLOT_10%
}

IniRead, SLOT_11, NoitaSaveManager.ini, Saves, SLOT_11, 0
Loop, 1
{
	 if(SLOT_11 == 0){
	 SLOT_11 = Slot 11 (No Save)
	 }
    Slot11 = %SLOT_11%
}

IniRead, SLOT_12, NoitaSaveManager.ini, Saves, SLOT_12, 0
Loop, 1
{
	 if(SLOT_12 == 0){
	 SLOT_12 = Slot 12 (No Save)
	 }
    Slot12 = %SLOT_12%
}

IniRead, SLOT_13, NoitaSaveManager.ini, Saves, SLOT_13, 0
Loop, 1
{
	 if(SLOT_13 == 0){
	 SLOT_13 = Slot 13 (No Save)
	 }
    Slot13 = %SLOT_13%
}

IniRead, SLOT_14, NoitaSaveManager.ini, Saves, SLOT_14, 0
Loop, 1
{
	 if(SLOT_14 == 0){
	 SLOT_14 = Slot 14 (No Save)
	 }
    Slot14 = %SLOT_14%
}

IniRead, SLOT_15, NoitaSaveManager.ini, Saves, SLOT_15, 0
Loop, 1
{
	 if(SLOT_15 == 0){
	 SLOT_15 = Slot 15 (No Save)
	 }
    Slot15 = %SLOT_15%
}

IniRead, SLOT_16, NoitaSaveManager.ini, Saves, SLOT_16, 0
Loop, 1
{
	 if(SLOT_16 == 0){
	 SLOT_16 = Slot 16 (No Save)
	 }
    Slot16 = %SLOT_16%
}

IniRead, SLOT_17, NoitaSaveManager.ini, Saves, SLOT_17, 0
Loop, 1
{
	 if(SLOT_17 == 0){
	 SLOT_17 = Slot 17 (No Save)
	 }
    Slot17 = %SLOT_17%
}

IniRead, SLOT_18, NoitaSaveManager.ini, Saves, SLOT_18, 0
Loop, 1
{
	 if(SLOT_18 == 0){
	 SLOT_18 = Slot 18 (No Save)
	 }
    Slot18 = %SLOT_18%
}

IniRead, SLOT_19, NoitaSaveManager.ini, Saves, SLOT_19, 0
Loop, 1
{
	 if(SLOT_19 == 0){
	 SLOT_19 = Slot 19 (No Save)
	 }
    Slot19 = %SLOT_19%
}

IniRead, SLOT_20, NoitaSaveManager.ini, Saves, SLOT_20, 0
Loop, 1
{
	 if(SLOT_20 == 0){
	 SLOT_20 = Slot 20 (No Save)
	 }
    Slot20 = %SLOT_20%
}

}
Leave a Comment