Skip to content

Commit

Permalink
Removing small function
Browse files Browse the repository at this point in the history
  • Loading branch information
vitor251093 committed Feb 3, 2024
1 parent d65a6cb commit d9d4fa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 2 additions & 10 deletions src/frontend/qt_sdl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ void EmuThread::run()
// auto screen layout
if (Config::ScreenSizing == Frontend::screenSizing_Auto)
{
bool requiresRefresh = refreshAutoScreenSizing();
melonDS::NDS& nds = static_cast<melonDS::NDS&>(*NDS);
bool requiresRefresh = setGameScene(KHDaysPlugin::detectGameScene(&nds));
if (requiresRefresh)
{
emit screenLayoutChange();
Expand Down Expand Up @@ -808,15 +809,6 @@ void EmuThread::debugLogs(int gameScene)
printf("\n");
}

// TODO: All conditions that involve NDS->GPU.GameScene should be reworked so they
// don't rely on it; otherwise, everything becomes a castle of cards, and save states
// become unreliable when it comes to screen sizing.
bool EmuThread::refreshAutoScreenSizing()
{
melonDS::NDS& nds = static_cast<melonDS::NDS&>(*NDS);
return setGameScene(KHDaysPlugin::detectGameScene(&nds));
}

void EmuThread::changeWindowTitle(char* title)
{
emit windowTitleChange(QString(title));
Expand Down
2 changes: 0 additions & 2 deletions src/frontend/qt_sdl/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ class EmuThread : public QThread
bool setGameScene(int newGameScene);

void debugLogs(int gameScene);

bool refreshAutoScreenSizing();
};


Expand Down

0 comments on commit d9d4fa9

Please sign in to comment.