[Scummvm-cvs-logs] SF.net SVN: scummvm:[48727] scummvm/trunk/backends/platform/wii/main.cpp
dhewg at users.sourceforge.net
dhewg at users.sourceforge.net
Mon Apr 19 22:25:21 CEST 2010
Revision: 48727
http://scummvm.svn.sourceforge.net/scummvm/?rev=48727&view=rev
Author: dhewg
Date: 2010-04-19 20:25:20 +0000 (Mon, 19 Apr 2010)
Log Message:
-----------
Reinit the video mode when showing the console on an abnormal exit. This was not sccessful under some circumstances.
Modified Paths:
--------------
scummvm/trunk/backends/platform/wii/main.cpp
Modified: scummvm/trunk/backends/platform/wii/main.cpp
===================================================================
--- scummvm/trunk/backends/platform/wii/main.cpp 2010-04-19 20:15:31 UTC (rev 48726)
+++ scummvm/trunk/backends/platform/wii/main.cpp 2010-04-19 20:25:20 UTC (rev 48727)
@@ -62,17 +62,31 @@
}
static void show_console(int code) {
- u32 b;
+ u32 i, b;
printf("ScummVM exited abnormally (%d).\n", code);
gfx_frame_abort();
+ gfx_init();
+
if (!gfx_frame_start())
return;
gfx_con_draw();
gfx_frame_end();
+ for (i = 0; i < 60 * 3; ++i)
+ VIDEO_WaitVSync();
+
+ printf("Press any key to continue.\n");
+
+ if (!gfx_frame_start())
+ return;
+
+ gfx_con_draw();
+ gfx_frame_end();
+ VIDEO_WaitVSync();
+
while (true) {
b = 0;
@@ -90,6 +104,15 @@
VIDEO_WaitVSync();
}
+
+ printf("\n\nExiting...\n");
+
+ if (!gfx_frame_start())
+ return;
+
+ gfx_con_draw();
+ gfx_frame_end();
+ VIDEO_WaitVSync();
}
s32 reset_func(s32 final) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list