Skip to content

Commit

Permalink
Allow Godot to kill it's own PID
Browse files Browse the repository at this point in the history
(cherry picked from commit 75ce454)
  • Loading branch information
rsubtil authored and akien-mga committed Jun 18, 2020
1 parent f466240 commit 4d7ac36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions platform/windows/os_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@ void OS_Windows::initialize_core() {

process_map = memnew((Map<ProcessID, ProcessInfo>));

// Add current Godot PID to the list of known PIDs
ProcessInfo current_pi = {};
PROCESS_INFORMATION current_pi_pi = {};
current_pi.pi = current_pi_pi;
current_pi.pi.hProcess = GetCurrentProcess();
process_map->insert(GetCurrentProcessId(), current_pi);

IP_Unix::make_default();

cursor_shape = CURSOR_ARROW;
Expand Down

0 comments on commit 4d7ac36

Please sign in to comment.