AxibugEmuOnline/virtuanessrc097-master/App.cpp

82 lines
3.4 KiB
C++
Raw Normal View History

<EFBFBD><EFBFBD>//
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0
//
#include "VirtuaNESres.h"
#include "App.h"
// _tWinMainK0<EFBFBD>0n0_pe]0n0~0~0
HINSTANCE CApp::m_hInstance = NULL;
HINSTANCE CApp::m_hPrevInstance = NULL;
LPTSTR CApp::m_lpCmdLine = NULL;
INT CApp::m_nCmdShow = 0;
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0n0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0
HINSTANCE CApp::m_hPlugin = NULL;
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0n0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0
HWND CApp::m_hWnd = NULL;
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0n0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0
HMENU CApp::m_hMenu = NULL;
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0n0<EFBFBD>0<EFBFBD>0(w<EFBFBD><EFBFBD>RBfn0<EFBFBD>0<EFBFBD>0)
CHAR CApp::m_szModulePath[_MAX_PATH];
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0(<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0)
CHAR szErrorString[256];
// <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>Qt(u
INT CApp::m_ErrorStringTableID[] = {
IDS_ERROR,
IDS_ERROR_STARTUP,
IDS_ERROR_UNKNOWN,
IDS_ERROR_OPEN,
IDS_ERROR_READ,
IDS_ERROR_WRITE,
IDS_ERROR_OUTOFMEMORY,
IDS_ERROR_ILLEGALOPCODE,
IDS_ERROR_UNSUPPORTFORMAT,
IDS_ERROR_INVALIDNESHEADER,
IDS_ERROR_SMALLFILE,
IDS_ERROR_UNSUPPORTMAPPER,
IDS_ERROR_NODISKBIOS,
IDS_ERROR_UNSUPPORTDISK,
IDS_ERROR_ILLEGALDISKSIZE,
IDS_ERROR_ILLEGALMAPPERNO,
IDS_ERROR_ILLEGALHEADER,
IDS_ERROR_ILLEGALSTATECRC,
IDS_ERROR_ILLEGALMOVIEOLD,
IDS_ERROR_ILLEGALMOVIEVER,
IDS_ERROR_ILLEGALMOVIECRC,
IDS_ERROR_ILLEGALMOVIEOLD_A,
IDS_ERROR_ILLEGALMOVIEVER_A,
IDS_ERROR_ILLEGALMOVIECRC_A,
IDS_ERROR_NETWORKDISCONNECT,
IDS_ERROR_NETWORKERROR,
0,
};
CHAR CApp::m_ErrorString[ERRORSTRING_MAX][256];
void CApp::LoadErrorString()
{
if( !m_hPlugin )
return;
for( INT i = 0; m_ErrorStringTableID[i]; i++ ) {
LoadString( m_ErrorStringTableID[i], m_ErrorString[i], sizeof(m_ErrorString[i]) );
}
}
CHAR* CApp::GetErrorString( INT nID )
{
for( INT i = 0; m_ErrorStringTableID[i]; i++ ) {
if( m_ErrorStringTableID[i] == nID )
return m_ErrorString[i];
}
return ""; // NULL <EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0h0W0f0!nY0
}