From cec4a40c3219bbf4376fa9fe2ca3516871ec64a8 Mon Sep 17 00:00:00 2001 From: spacy51 Date: Wed, 9 Jan 2008 13:13:14 +0000 Subject: [PATCH] small code cleanup git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@274 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/MainWnd.cpp | 4 ++-- src/win32/MainWndTools.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/win32/MainWnd.cpp b/src/win32/MainWnd.cpp index 0c2cafa8..0d575563 100644 --- a/src/win32/MainWnd.cpp +++ b/src/win32/MainWnd.cpp @@ -626,8 +626,8 @@ bool MainWnd::FileRun() #endif if(type == IMAGE_GBA) { - skipBios = theApp.skipBiosFile ? true : false; - CPUInit((char *)(LPCTSTR)theApp.biosFileNameGBA, theApp.useBiosFileGBA ? true : false); + skipBios = theApp.skipBiosFile; + CPUInit(theApp.biosFileNameGBA.GetString(), theApp.useBiosFileGBA); CPUReset(); } diff --git a/src/win32/MainWndTools.cpp b/src/win32/MainWndTools.cpp index 2c31488f..b7946480 100644 --- a/src/win32/MainWndTools.cpp +++ b/src/win32/MainWndTools.cpp @@ -220,7 +220,7 @@ void MainWnd::OnToolsDebugGdb() theApp.emulator = GBASystem; - CPUInit(theApp.biosFileNameGBA, theApp.useBiosFileGBA ? true : false); + CPUInit(theApp.biosFileNameGBA, theApp.useBiosFileGBA); CPUReset(); } }