mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-22 16:30:26 +00:00
parent
9f48bda59a
commit
9cdc330a48
1 changed files with 8 additions and 0 deletions
|
@ -342,6 +342,14 @@ void reportError(String what) {
|
|||
// TODO: CoInitializeEx on Windows?
|
||||
// TODO: add crash log
|
||||
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();
|
||||
#ifdef _WIN32
|
||||
// set DPI awareness
|
||||
|
|
Loading…
Reference in a new issue