parent
9f48bda59a
commit
9cdc330a48
|
@ -342,6 +342,14 @@ void reportError(String what) {
|
||||||
// TODO: CoInitializeEx on Windows?
|
// TODO: CoInitializeEx on Windows?
|
||||||
// TODO: add crash log
|
// TODO: add crash log
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
|
// Windows console thing - thanks MarioKart7z!
|
||||||
|
#ifdef _WIN32
|
||||||
|
DWORD winPID;
|
||||||
|
HWND winConsole=GetConsoleWindow();
|
||||||
|
GetWindowThreadProcessId(winConsole,&winPID);
|
||||||
|
if (GetCurrentProcessId()==winPID) FreeConsole();
|
||||||
|
#endif
|
||||||
|
|
||||||
initLog();
|
initLog();
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// set DPI awareness
|
// set DPI awareness
|
||||||
|
|
Loading…
Reference in a new issue