82 lines
1.7 KiB
C++
82 lines
1.7 KiB
C++
|
//
|
|||
|
// <20>A<EFBFBD>v<EFBFBD><76><EFBFBD>P<EFBFBD>[<5B>V<EFBFBD><56><EFBFBD><EFBFBD><EFBFBD>T<EFBFBD>|<7C>[<5B>g<EFBFBD>N<EFBFBD><4E><EFBFBD>X
|
|||
|
//
|
|||
|
#include "VirtuaNESres.h"
|
|||
|
#include "App.h"
|
|||
|
|
|||
|
// _tWinMain<69><6E><EFBFBD><EFBFBD><EFBFBD>̈<EFBFBD><CC88><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̂܂<CC82>
|
|||
|
HINSTANCE CApp::m_hInstance = NULL;
|
|||
|
HINSTANCE CApp::m_hPrevInstance = NULL;
|
|||
|
LPTSTR CApp::m_lpCmdLine = NULL;
|
|||
|
INT CApp::m_nCmdShow = 0;
|
|||
|
|
|||
|
// <20><><EFBFBD>ꃊ<EFBFBD>\<5C>[<5B>X<EFBFBD>v<EFBFBD><76><EFBFBD>O<EFBFBD>C<EFBFBD><43><EFBFBD>̃C<CC83><43><EFBFBD>X<EFBFBD>^<5E><><EFBFBD>X<EFBFBD>n<EFBFBD><6E><EFBFBD>h<EFBFBD><68>
|
|||
|
HINSTANCE CApp::m_hPlugin = NULL;
|
|||
|
// <20><><EFBFBD>C<EFBFBD><43><EFBFBD>E<EFBFBD>C<EFBFBD><43><EFBFBD>h<EFBFBD>E<EFBFBD>̃E<CC83>C<EFBFBD><43><EFBFBD>h<EFBFBD>E<EFBFBD>n<EFBFBD><6E><EFBFBD>h<EFBFBD><68>
|
|||
|
HWND CApp::m_hWnd = NULL;
|
|||
|
// <20><><EFBFBD>C<EFBFBD><43><EFBFBD>E<EFBFBD>C<EFBFBD><43><EFBFBD>h<EFBFBD>E<EFBFBD>̃<EFBFBD><CC83>j<EFBFBD><6A><EFBFBD>[<5B>n<EFBFBD><6E><EFBFBD>h<EFBFBD><68>
|
|||
|
HMENU CApp::m_hMenu = NULL;
|
|||
|
|
|||
|
// <20>v<EFBFBD><76><EFBFBD>O<EFBFBD><4F><EFBFBD><EFBFBD><EFBFBD>̃p<CC83>X(<28>N<EFBFBD><4E><EFBFBD><EFBFBD><EFBFBD>̃p<CC83>X)
|
|||
|
CHAR CApp::m_szModulePath[_MAX_PATH];
|
|||
|
|
|||
|
// <20>G<EFBFBD><47><EFBFBD>[<5B>X<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>O(<28>e<EFBFBD><65><EFBFBD>|<7C><><EFBFBD><EFBFBD>)
|
|||
|
CHAR szErrorString[256];
|
|||
|
|
|||
|
// <20>G<EFBFBD><47><EFBFBD>[<5B><><EFBFBD><EFBFBD><EFBFBD>p
|
|||
|
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 <20>X<EFBFBD>g<EFBFBD><67><EFBFBD><EFBFBD><EFBFBD>O<EFBFBD>Ƃ<EFBFBD><C682>ēn<C493><6E>
|
|||
|
}
|
|||
|
|