// Consoleモードにした時用の仮エントリポイント // 余計にある分には困らないです int main(int argc, wchar_t** argv) { ChangeStdHandle session; logMsg(L"main", L"ランチャ起動…"); int const r = mainImpl(argv[0], argc-1, &argv[1]); return r; }
int xmain(int ra) { SetupCallbacks(); pgInit(); pgScreenFrame(1, 0); pgFillvram(0); mainImpl(); pgWaitVn(500); sceKernelExitGame(); return 0; }
//int _tmain(int argc, wchar_t* argv[]) int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { wchar_t buff[8192]; GetModuleFileName(GetModuleHandle(NULL), buff, 8192); int argc; wchar_t** argv = CommandLineToArgvW(GetCommandLineW(), &argc); if(SW_NORMAL == nCmdShow) { STARTUPINFO startupInfo; PROCESS_INFORMATION processInfo; ZeroMemory(&startupInfo,sizeof(startupInfo)); startupInfo.cb = sizeof(startupInfo); startupInfo.dwFlags = STARTF_USESHOWWINDOW; startupInfo.wShowWindow = SW_HIDE; if (0 == CreateProcessW( buff, NULL, NULL, NULL, TRUE, CREATE_NEW_CONSOLE, NULL, NULL, &startupInfo, &processInfo)) { errDlg(GetLastError(), L"main", L"前段階CreateProcessWに失敗しました。\nエラーコード:%d", GetLastError()); return -1; } return 0; } ChangeStdHandle session; logMsg(L"main", L"ランチャ起動…"); int const r = mainImpl(buff, argc-1, &argv[1]); return r; }
void Main3D(TestFunc testFunc, bool zeroOutside) { mainImpl(testFunc, zeroOutside, kReadLayer); }
void Main2D(TestFunc testFunc, bool zeroOutside) { mainImpl(testFunc, zeroOutside, 0); }