MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / WinMain

Function WinMain

LuaSTGPlus/Main.cpp:10–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using namespace LuaSTGPlus;
9
10int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
11{
12#ifdef LDEBUG
13 _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
14 // _CrtSetBreakAlloc(5351);
15#endif
16
17 // ���D3D9�Ƿ����
18 if (LoadLibraryW(L"D3DX9_43.DLL") == NULL) {
19 MessageBox(0, INIT_DX_NOT_FOUND, L"LuaSTGPlus��ʼ��ʧ��", MB_ICONERROR | MB_OK);
20 return -1;
21 }
22
23 // ��ʼ��
24 if (!LAPP.Init())
25 {
26 MessageBox(0, StringFormat(INIT_FAILED_DESC, LLOGFILE).c_str(), L"LuaSTGPlus��ʼ��ʧ��", MB_ICONERROR | MB_OK);
27 return -1;
28 }
29
30 // ��Ϸѭ��
31 LAPP.Run();
32
33 // ����
34 LAPP.Shutdown();
35 return 0;
36}

Callers

nothing calls this directly

Calls 3

InitMethod · 0.80
RunMethod · 0.80
ShutdownMethod · 0.80

Tested by

no test coverage detected