[Project64] Remove WINDOWS_UI

This commit is contained in:
zilmar 2016-01-12 17:44:41 +11:00
parent 78d92141f5
commit 996098d929
3 changed files with 9 additions and 47 deletions

View File

@ -16,41 +16,7 @@
#include <Project64-core/Multilanguage.h>
#include <Project64-core/Settings/SettingsClass.h>
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef unsigned __int64 QWORD;
typedef void * HANDLE;
typedef const char * LPCSTR;
struct RECT_STRUCT
{
long left;
long top;
long right;
long bottom;
};
struct WINDOWS_PAINTSTRUCT
{
HDC hdc;
int fErase;
RECT_STRUCT rcPaint;
int fRestore;
int fIncUpdate;
BYTE rgbReserved[32];
};
#define CALLBACK __stdcall
class CN64System;
#ifndef BYPASS_WINDOWS_GUI
#define WINDOWS_UI
// Remove this to test compilation outside of the Windows ATL environment.
#endif
#include <WTLApp.h>
#include "WTLApp.h"
#include "UserInterface/MenuShortCuts.h"
#include "UserInterface/RomBrowser.h"
#include "UserInterface/GuiClass.h"

View File

@ -199,11 +199,7 @@ void CNotificationImp::RefreshMenu(void)
{
if (m_hWnd == NULL) { return; }
#if defined(WINDOWS_UI)
m_hWnd->RefreshMenu();
#else
g_Notify->BreakPoint(__FILE__, __LINE__);
#endif
}
void CNotificationImp::HideRomBrowser(void)
@ -227,11 +223,7 @@ void CNotificationImp::BringToTop(void)
{
if (m_hWnd == NULL) { return; }
#if defined(WINDOWS_UI)
m_hWnd->BringToTop();
#else
g_Notify->BreakPoint(__FILE__, __LINE__);
#endif
}
void CNotificationImp::ChangeFullScreen(void) const
@ -258,12 +250,18 @@ void CNotificationImp::BreakPoint(const char * FileName, int LineNumber)
}
else
{
g_BaseSystem->CloseCpu();
if (g_BaseSystem)
{
g_BaseSystem->CloseCpu();
}
}
}
else
{
DisplayError("Fatal Error: Stopping emulation");
g_BaseSystem->CloseCpu();
if (g_BaseSystem)
{
g_BaseSystem->CloseCpu();
}
}
}

View File

@ -1,6 +1,5 @@
#include "stdafx.h"
#ifdef WINDOWS_UI
#include "SettingsConfig.h"
#include "Settings/SettingsPage.h"
#include <Project64-core/Settings/SettingType/SettingsType-Application.h>
@ -341,4 +340,3 @@ void CSettingConfig::BoldChangedPages(HTREEITEM hItem)
::EnableWindow(GetDlgItem(IDC_RESET_ALL), true);
}
}
#endif