mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-25 23:33:41 +01:00
Be consistent about how we read and update the UI state variable
This commit is contained in:
1 parent
b5435260b0
commit
6ec74ef99e
10 files changed
+30
-24
No files matched your search
+5
-5
@@ -136,13 +136,13 @@ static inline void UpdateRunLoop() {
|
||||
EndInputState(&input_state);
|
||||
}
|
||||
|
||||
if (globalUIState != UISTATE_EXIT) {
|
||||
if (GetUIState() != UISTATE_EXIT) {
|
||||
NativeRender();
|
||||
}
|
||||
}
|
||||
|
||||
void Core_RunLoop() {
|
||||
while ((globalUIState != UISTATE_INGAME || !PSP_IsInited()) && globalUIState != UISTATE_EXIT) {
|
||||
while ((GetUIState() != UISTATE_INGAME || !PSP_IsInited()) && GetUIState() != UISTATE_EXIT) {
|
||||
time_update();
|
||||
|
||||
#if defined(USING_WIN_UI)
|
||||
@@ -161,7 +161,7 @@ void Core_RunLoop() {
|
||||
#endif
|
||||
}
|
||||
|
||||
while (!coreState && globalUIState == UISTATE_INGAME) {
|
||||
while (!coreState && GetUIState() == UISTATE_INGAME) {
|
||||
time_update();
|
||||
UpdateRunLoop();
|
||||
#if defined(USING_WIN_UI)
|
||||
@@ -203,9 +203,9 @@ void Core_Run()
|
||||
#endif
|
||||
{
|
||||
reswitch:
|
||||
if (globalUIState != UISTATE_INGAME) {
|
||||
if (GetUIState() != UISTATE_INGAME) {
|
||||
CoreStateProcessed();
|
||||
if (globalUIState == UISTATE_EXIT) {
|
||||
if (GetUIState() == UISTATE_EXIT) {
|
||||
return;
|
||||
}
|
||||
Core_RunLoop();
|
||||
|
||||
Reference in new issue
Block a user