mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Is QtEntryPoint added automatically?
This commit is contained in:
parent
81f0950dcb
commit
d0703f710a
@ -374,19 +374,3 @@ int main(int argc, char* argv[])
|
||||
g_theApp.ExitInstance();
|
||||
return result;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
extern "C" int APIENTRY WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR /*cmdParamarg*/, int cmdShow)
|
||||
{
|
||||
// Work-around problems with wchar_t as a native type
|
||||
const unsigned short* cmdLineUtf16 = reinterpret_cast<const unsigned short*>(GetCommandLineW());
|
||||
QByteArray cmdParam = QString::fromUtf16(cmdLineUtf16).toLocal8Bit();
|
||||
|
||||
int argc = 0;
|
||||
QVector<char*> argv(8);
|
||||
qWinMain(instance, prevInstance, cmdParam.data(), cmdShow, argc, argv);
|
||||
|
||||
int result = main(argc, argv.data());
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -79,7 +79,7 @@ typedef struct HWND__* HWND;
|
||||
typedef HINSTANCE HMODULE;
|
||||
typedef struct HDC__* HDC;
|
||||
typedef struct HPALETTE__* HPALETTE;
|
||||
typedef struct HCURSOR__* HCURSOR;
|
||||
typedef HICON HCURSOR;
|
||||
typedef HANDLE HFILE;
|
||||
typedef int LSTATUS, HKEY, REGSAM;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user