diff --git a/src/Cxbx.h b/src/Cxbx.h index 36581975b..c8e0fb3df 100644 --- a/src/Cxbx.h +++ b/src/Cxbx.h @@ -84,9 +84,9 @@ typedef signed long sint32; /*! version string dependent on trace flag */ #ifndef _DEBUG_TRACE -#define _CXBX_VERSION "0.8.1-Pre2" +#define _CXBX_VERSION "0.8.1-Pre3" #else -#define _CXBX_VERSION "0.8.1-Pre2-Trace" +#define _CXBX_VERSION "0.8.1-Pre3-Trace" #endif /*! debug mode choices */ diff --git a/src/Cxbx/EmuExe.cpp b/src/Cxbx/EmuExe.cpp index aba22cd3a..04c570d01 100644 --- a/src/Cxbx/EmuExe.cpp +++ b/src/Cxbx/EmuExe.cpp @@ -448,11 +448,7 @@ EmuExe::EmuExe(Xbe *x_Xbe, DebugMode x_debug_mode, char *x_debug_filename, HWND *(uint32*)&m_bzSection[i][0x34] = 0; *(uint16*)&m_bzSection[i][0x38] = 0x0001; - #ifdef _DEBUG memcpy(&m_bzSection[i][0x3A], "CxbxKrnlNoFunc\0\0CxbxKrnl.dll\0\0", 30); - #else - memcpy(&m_bzSection[i][0x3A], "CxbxKrnlNoFunc\0\0Cxbx.dll\0\0\0\0\0\0", 30); - #endif printf("OK\n"); } diff --git a/src/Cxbx/WinMain.cpp b/src/Cxbx/WinMain.cpp index 5c3c90f3a..ec974e792 100644 --- a/src/Cxbx/WinMain.cpp +++ b/src/Cxbx/WinMain.cpp @@ -43,10 +43,10 @@ /*! program entry point */ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { - /*! verify Cxbx.dll is the same version as Cxbx.exe */ + /*! verify CxbxKrnl.dll is the same version as Cxbx.exe */ if(!CxbxKrnlVerifyVersion(_CXBX_VERSION)) { - MessageBox(NULL, "Cxbx.dll is the incorrect version", "Cxbx", MB_OK); + MessageBox(NULL, "CxbxKrnl.dll is the incorrect version", "Cxbx", MB_OK); return 1; } diff --git a/src/Cxbx/Wnd.cpp b/src/Cxbx/Wnd.cpp index 3d4d1e1d5..80e5469b8 100644 --- a/src/Cxbx/Wnd.cpp +++ b/src/Cxbx/Wnd.cpp @@ -69,11 +69,8 @@ bool Wnd::ProcessMessages() // initialize window if(!m_initialized) { -#ifdef _DEBUG HMODULE hCxbxDll = GetModuleHandle("CxbxKrnl.dll"); -#else - HMODULE hCxbxDll = GetModuleHandle("Cxbx.dll"); -#endif + m_initialized = true; WNDCLASS wnd_class; diff --git a/src/Cxbx/WndMain.cpp b/src/Cxbx/WndMain.cpp index c672cce8e..0782e23e3 100644 --- a/src/Cxbx/WndMain.cpp +++ b/src/Cxbx/WndMain.cpp @@ -1866,7 +1866,7 @@ void WndMain::StartEmulation(EnumAutoConvert x_AutoConvert, HWND hwndParent) } } - // register xbe path with Cxbx.dll + // register xbe path with CxbxKrnl.dll g_EmuShared->SetXbePath(m_Xbe->m_szPath); // shell exe diff --git a/src/CxbxKrnl/EmuD3D8.cpp b/src/CxbxKrnl/EmuD3D8.cpp index 41ac9dd42..2de7e9b9b 100644 --- a/src/CxbxKrnl/EmuD3D8.cpp +++ b/src/CxbxKrnl/EmuD3D8.cpp @@ -294,11 +294,7 @@ static DWORD WINAPI EmuRenderWindow(LPVOID lpVoid) // register window class { - #ifdef _DEBUG HMODULE hCxbxDll = GetModuleHandle("CxbxKrnl.dll"); - #else - HMODULE hCxbxDll = GetModuleHandle("Cxbx.dll"); - #endif LOGBRUSH logBrush = {BS_SOLID, RGB(0,0,0)};