Commit graph

7 commits

Author SHA1 Message Date
johnbrechbuhl85
6ccac8e53d Moved the process.HasExited check before the Process Has Changed message and removed the process.MainWindowHandle == IntPtr.Zero check. 2022-08-27 09:15:48 -05:00
johnbrechbuhl85
3af78f4fc8 Check to see if BF1942 has been closed from the main menu and if the MainWindowHandle is equal to IntPtr.Zero or not.
If those conditions are met, then break out of the retryCount loop and set keepAlive to false.
2022-08-24 11:21:23 -05:00
johnbrechbuhl85
b9ac19053e Reverted white space changes and updated console messages to use ISO 8601 date format.
Modified the "if (oldProcessId == process.Id)" condition to call Environment.Exit(0) and close Borderless1942 when BF1942 is closed.
2022-08-20 10:38:13 -05:00
johnbrechbuhl85
1c58edc1cb Small modification to prevent the Borderless1942 program from closing when changing maps during multiplayer.
Tested the changes using the master.bf1942.org master server patch from the link below.
https://www.moddb.com/games/battlefield-1942/downloads/bf1942-masterbf1942org-patch
2022-08-19 18:11:47 -05:00
Turnerj
02a8a58508 Use CsWin32 for Win32 access 2022-01-19 15:02:25 +10:30
Turnerj
b7db332350 Use TerraFX Interop 2022-01-18 18:25:47 +10:30
Turnerj
a3c34feed3 Add project files. 2021-11-25 16:28:49 +10:30