From 63c615c02534b28cb35991bbbe2270ffa08d07a2 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 7 Jun 2024 15:25:06 -0400 Subject: [PATCH] Update isleapp.cpp --- ISLE/isleapp.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index b670676a..cd997896 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -162,16 +162,10 @@ void IsleApp::Close() TransitionManager()->SetWaitIndicator(NULL); Lego()->StopTimer(); - MxLong lVar8; - do { - lVar8 = Streamer()->Close(NULL); - } while (lVar8 == 0); - - while (Lego()) { - if (Lego()->DoesEntityExist(ds)) { - break; - } + while (Streamer()->Close(NULL) == SUCCESS) { + } + while (Lego() && !Lego()->DoesEntityExist(ds)) { Timer()->GetRealTime(); TickleManager()->Tickle(); } @@ -469,8 +463,8 @@ MxResult IsleApp::SetupWindow() } GameState()->SetSavePath(m_savePath); - GameState()->SerializePlayersInfo(1); - GameState()->SerializeScoreHistory(1); + GameState()->SerializePlayersInfo(LegoStorage::c_read); + GameState()->SerializeScoreHistory(LegoStorage::c_read); MxS32 iVar10; switch (m_islandQuality) {