From 8d9a2952b8b2344dbdb1546a558864ece4a1ca2e Mon Sep 17 00:00:00 2001 From: Patrick McIlroy Date: Thu, 14 Feb 2008 04:56:12 +0000 Subject: [PATCH] YAYZ i got percentage to work git-svn-id: https://openitg.svn.sourceforge.net/svnroot/openitg@25 83fadc84-e282-4d84-a09a-c4228d6ae7e5 --- src/ScreenArcadePatch.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ScreenArcadePatch.cpp b/src/ScreenArcadePatch.cpp index 61074a3c..320d1602 100644 --- a/src/ScreenArcadePatch.cpp +++ b/src/ScreenArcadePatch.cpp @@ -38,12 +38,14 @@ ScreenArcadePatch::ScreenArcadePatch( CString sClassName ) : ScreenWithMenuEleme static BitmapText *m_PatchStatus; static bool g_doReboot; +int GetRevision(); + ScreenArcadePatch::~ScreenArcadePatch() { LOG->Warn( "ScreenArcadePatch::~ScreenArcadePatch() %i", (int)g_doReboot ); if (g_doReboot) { - LOG->Warn("REBOOTING"); + LOG->Warn("ZOMG REBOOTING"); struct stat ncr; // lol get it? if ( stat("/tmp/no-crash-reboot", &ncr) != 0 ) { @@ -57,6 +59,10 @@ ScreenArcadePatch::~ScreenArcadePatch() exit(0); } } + else + { + LOG->Warn("ZOMG NOT REBOOTING"); + } } void ScreenArcadePatch::Init() @@ -126,11 +132,11 @@ int ScreenArcadePatch::CommitPatch() void ScreenArcadePatch::Update( float fDeltaTime ) { + Screen::Update(fDeltaTime); if( !bChecking ) { CommitPatch(); } - Screen::Update(fDeltaTime); } void ScreenArcadePatch::DrawPrimitives() @@ -242,8 +248,8 @@ void UpdatePatchCopyProgress( float fPercent ) //SCREENMAN->OverlayMessage( sText ); m_PatchStatus->SetText( sText ); - //SCREENMAN->Draw(); m_PatchStatus->Draw(); + SCREENMAN->Draw(); } bool ScreenArcadePatch::CopyPatch() -- 2.11.0