Skip to content

Commit

Permalink
some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LittlePlanetCD committed Apr 23, 2024
1 parent 5239aa7 commit c7ffb31
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions RSDKv3/Drawing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,12 +1036,12 @@ void ReleaseRenderDevice()
}

#if RETRO_USING_OPENGL
if (Engine.glContext) {
for (int i = 0; i < HW_TEXTURE_COUNT; i++) glDeleteTextures(1, &gfxTextureID[i]);
if (Engine.glContext) {
for (int i = 0; i < HW_TEXTURE_COUNT; i++) glDeleteTextures(1, &gfxTextureID[i]);
#if RETRO_USING_SDL2
SDL_GL_DeleteContext(Engine.glContext);
SDL_GL_DeleteContext(Engine.glContext);
#endif
}
}
#endif

#if RETRO_USING_SDL2
Expand Down Expand Up @@ -1950,7 +1950,7 @@ void DrawStageGFX()
// Hacky fix for Tails Object not working properly on non-Origins bytecode
if (forceUseScripts || GetGlobalVariableByName("NOTIFY_1P_VS_SELECT") != 0)
#endif
DrawObjectList(7); // Extra Origins draw list (who knows why it comes before 6)
DrawObjectList(7); // Extra Origins draw list (who knows why it comes before 6)
DrawObjectList(6);

#if !RETRO_USE_ORIGINAL_CODE
Expand Down
2 changes: 1 addition & 1 deletion RSDKv3/RetroEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ bool RetroEngine::LoadGameConfig(const char *filePath)
SetGlobalVariableByName("Engine.PlatformId", RETRO_GAMEPLATFORMID);
SetGlobalVariableByName("Engine.DeviceType", RETRO_GAMEPLATFORM);
#if !RETRO_USE_ORIGINAL_CODE
SetGlobalVariableByName("Config.IsPremiumUser", 1); // this gets around the game over ui lol
SetGlobalVariableByName("Config.IsPremiumUser", 1); // this gets around the game over ui lol
#endif

// Read SFX
Expand Down
6 changes: 3 additions & 3 deletions RSDKv3/Script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,9 +876,9 @@ void CheckAliasText(char *text)
AddTextMenuEntry(&gameMenu[0], "SCRIPT PARSING FAILED");
AddTextMenuEntry(&gameMenu[0], " ");
AddTextMenuEntry(&gameMenu[0], "TOO MANY ALIASES");
AddTextMenuEntry(&gameMenu[0], " ");
AddTextMenuEntry(&gameMenu[0], "REDUCE ALIAS COUNT TO 96");
AddTextMenuEntry(&gameMenu[0], "IN THE SCRIPT BELOW");
AddTextMenuEntry(&gameMenu[0], " ");
AddTextMenuEntry(&gameMenu[0], "REDUCE ALIAS COUNT TO 96");
AddTextMenuEntry(&gameMenu[0], "IN THE SCRIPT BELOW");
Engine.gameMode = ENGINE_SCRIPTERROR;
return;
}
Expand Down
4 changes: 2 additions & 2 deletions RSDKv3/Userdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ void InitUserdata()
ini.SetBool("Game", "DisableTouchControls", disableTouchControls = false);
ini.SetInteger("Game", "DisableFocusPause", disableFocusPause = 0);
disableFocusPause_Config = disableFocusPause;
ini.SetBool("Game", "trialMode", Engine.trialMode = false);
ini.SetBool("Game", "trialMode", Engine.trialMode = false);

ini.SetBool("Window", "FullScreen", Engine.startFullScreen = DEFAULT_FULLSCREEN);
ini.SetBool("Window", "Borderless", Engine.borderless = false);
Expand Down Expand Up @@ -488,7 +488,7 @@ void InitUserdata()
else if (platype == 1)
Engine.gamePlatform = "Mobile";
}
if (!ini.GetBool("Game", "trialMode", &Engine.trialMode))
if (!ini.GetBool("Game", "trialMode", &Engine.trialMode))
Engine.trialMode = false;

if (!ini.GetBool("Window", "FullScreen", &Engine.startFullScreen))
Expand Down

0 comments on commit c7ffb31

Please sign in to comment.