fix compiler warning to use enum class instead of enum
This commit is contained in:
parent
dbae5dbb79
commit
c0f2d60a3f
|
@ -251,19 +251,19 @@ void CxbxPopupMessageEx(CXBXR_MODULE cxbxr_module, LOG_LEVEL level, CxbxMsgDlgIc
|
|||
UINT uType = MB_OK | MB_TOPMOST | MB_SETFOREGROUND;
|
||||
|
||||
switch (icon) {
|
||||
case CxbxMsgDlgIcon_Warn: {
|
||||
case CxbxMsgDlgIcon::Warn: {
|
||||
uType |= MB_ICONWARNING;
|
||||
break;
|
||||
}
|
||||
case CxbxMsgDlgIcon_Error: {
|
||||
case CxbxMsgDlgIcon::Error: {
|
||||
uType |= MB_ICONERROR;
|
||||
break;
|
||||
}
|
||||
case CxbxMsgDlgIcon_Info: {
|
||||
case CxbxMsgDlgIcon::Info: {
|
||||
uType |= MB_ICONINFORMATION;
|
||||
break;
|
||||
}
|
||||
case CxbxMsgDlgIcon_Unknown:
|
||||
case CxbxMsgDlgIcon::Unknown:
|
||||
default: {
|
||||
uType |= MB_ICONQUESTION;
|
||||
break;
|
||||
|
|
|
@ -130,9 +130,9 @@ extern inline void log_sync_config();
|
|||
|
||||
void log_set_config(int LogLevel, unsigned int* LoggedModules, bool LogPopupTestcase);
|
||||
|
||||
void log_generate_active_filter_output(const CXBXR_MODULE cxbxr_module);
|
||||
void log_generate_active_filter_output(const CXBXR_MODULE cxbxr_module);
|
||||
|
||||
typedef enum _CxbxMsgDlgIcon {
|
||||
typedef enum class _CxbxMsgDlgIcon {
|
||||
Info = 0,
|
||||
Warn,
|
||||
Error,
|
||||
|
|
|
@ -600,7 +600,7 @@ VOID CxbxInitWindow(bool bFullInit)
|
|||
if (hRenderWindowThread == NULL) {
|
||||
char szBuffer[1024] = { 0 };
|
||||
sprintf(szBuffer, "Creating EmuRenderWindowThread Failed: %08X", GetLastError());
|
||||
CxbxPopupMessage(LOG_LEVEL::FATAL, CxbxMsgDlgIcon_Error, szBuffer);
|
||||
CxbxPopupMessage(LOG_LEVEL::FATAL, CxbxMsgDlgIcon::Error, szBuffer);
|
||||
EmuShared::Cleanup();
|
||||
ExitProcess(0);
|
||||
}
|
||||
|
|
|
@ -243,7 +243,7 @@ XBSYSAPI EXPORTNUM(264) xboxkrnl::VOID NTAPI xboxkrnl::RtlAssert
|
|||
|
||||
ss << ")";
|
||||
|
||||
CxbxPopupMessage(LOG_LEVEL::WARNING, CxbxMsgDlgIcon_Warn, ss.str().c_str());
|
||||
CxbxPopupMessage(LOG_LEVEL::WARNING, CxbxMsgDlgIcon::Warn, ss.str().c_str());
|
||||
}
|
||||
|
||||
// ******************************************************************
|
||||
|
|
Loading…
Reference in New Issue