Change SaveSystem::screen to an enum
MODIFY
generator/csv/enums.csv
generator/csv/enums.csv
@@ -135,6 +135,15 @@ SavePicture,BattleLayer,battlers_and_animations,2
SavePicture,BattleLayer,weather,3
SavePicture,BattleLayer,windows_and_status,4
SavePicture,BattleLayer,timers,5
+SaveSystem,Scene,map,0
+SaveSystem,Scene,menu,1
+SaveSystem,Scene,battle,2
+SaveSystem,Scene,shop,3
+SaveSystem,Scene,name,4
+SaveSystem,Scene,file,5
+SaveSystem,Scene,title,6
+SaveSystem,Scene,game_over,7
+SaveSystem,Scene,debug,8
SaveSystem,AtbMode,atb_active,0
SaveSystem,AtbMode,atb_wait,1
SaveVehicleLocation,VehicleType,none,0

MODIFY
generator/csv/fields.csv
generator/csv/fields.csv
@@ -705,7 +705,7 @@ SaveTitle,face3_name,f,String,0x19,,0,0,char[]: face filename
SaveTitle,face3_id,f,Int32,0x1A,0,0,0,int: face id
SaveTitle,face4_name,f,String,0x1B,,0,0,char[]: face filename
SaveTitle,face4_id,f,Int32,0x1C,0,0,0,int: face id
-SaveSystem,screen,f,Int32,0x01,1,0,0,
+SaveSystem,scene,f,Enum<SaveSystem_Scene>,0x01,0,1,0,The current Scene for RPG_RT. Legacy field only used by RPG_RT and not by EasyRPG Player. Savegames always have a scene of 5 (filemenu).
SaveSystem,frame_count,f,Int32,0x0B,0,0,0,
SaveSystem,graphics_name,f,String,0x15,'',0,0,string
SaveSystem,message_stretch,f,Int32,0x16,-1,0,0,Integer

MODIFY
src/generated/lsd_chunks.h
src/generated/lsd_chunks.h
Binary files a/src/generated/lsd_chunks.h and b/src/generated/lsd_chunks.h differ

MODIFY
src/generated/lsd_savesystem.cpp
src/generated/lsd_savesystem.cpp
Binary files a/src/generated/lsd_savesystem.cpp and b/src/generated/lsd_savesystem.cpp differ

MODIFY
src/generated/rpg_enums.cpp
src/generated/rpg_enums.cpp
Binary files a/src/generated/rpg_enums.cpp and b/src/generated/rpg_enums.cpp differ

MODIFY
src/generated/rpg_savesystem.h
src/generated/rpg_savesystem.h
Binary files a/src/generated/rpg_savesystem.h and b/src/generated/rpg_savesystem.h differ

MODIFY
src/rpg_setup.cpp
src/rpg_setup.cpp
@@ -92,7 +92,6 @@ void RPG::SaveMapInfo::Setup(const RPG::Map& map) {
void RPG::SaveSystem::Setup() {
const RPG::System& system = Data::system;
- screen = 0;
frame_count = 0;
graphics_name = system.system_name;
switches_size = Data::switches.size();

Change SaveSystem::screen to an enum