Skip to content

Commit

Permalink
Revert "move debug logging to a separate file, improve thread safety"
Browse files Browse the repository at this point in the history
This reverts commit f14962c.
  • Loading branch information
SomeCrazyGuy committed Jun 26, 2024
1 parent 75d6287 commit 7eca190
Show file tree
Hide file tree
Showing 7 changed files with 169 additions and 200 deletions.
4 changes: 2 additions & 2 deletions Starfield Console Replacer.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ copy /Y "$(OutDir)$(TargetName).dll" "$(OutDir)BetterConsole.asi"</Command>
<ClCompile Include="src\callback.cpp" />
<ClCompile Include="src\console.cpp" />
<ClCompile Include="src\d3d11on12ui.cpp" />
<ClCompile Include="src\debug.cpp" />
<ClCompile Include="src\fake_vcruntime140_1.cpp" />
<ClCompile Include="src\game_hooks.cpp" />
<ClCompile Include="src\gui.cpp" />
<ClCompile Include="src\hook_api.cpp" />
<ClCompile Include="src\hotkeys.cpp" />
Expand Down Expand Up @@ -142,7 +142,7 @@ copy /Y "$(OutDir)$(TargetName).dll" "$(OutDir)BetterConsole.asi"</Command>
<ClInclude Include="src\callback.h" />
<ClInclude Include="src\console.h" />
<ClInclude Include="src\d3d11on12ui.h" />
<ClInclude Include="src\debug.h" />
<ClInclude Include="src\game_hooks.h" />
<ClInclude Include="src\gui.h" />
<ClInclude Include="src\gui_interface.h" />
<ClInclude Include="src\hook_api.h" />
Expand Down
4 changes: 2 additions & 2 deletions Starfield Console Replacer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<ClCompile Include="src\path_manager.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="src\debug.cpp">
<ClCompile Include="src\game_hooks.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
Expand Down Expand Up @@ -175,7 +175,7 @@
<ClInclude Include="src\path_manager.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\debug.h">
<ClInclude Include="src\game_hooks.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
Expand Down
7 changes: 2 additions & 5 deletions src/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,11 @@ static void SetGamePaused(bool paused) {
}

static uintptr_t starting_console_command(void* param_1, int* param_2) {
// 5 means the game is ready to run a command
const auto IsStartingCommand = *param_2 == 5;
const auto ret = OLD_StartingConsoleCommand(param_1, param_2);
//TODO: should we register listeners for this event ?
if (IsStartingCommand) {
if (*param_2 == 5) { // 5 means the game is ready to run a command
StartingCommandCompleted = true;
}
return ret;
return OLD_StartingConsoleCommand(param_1, param_2);
}

static void draw_console_window(void* imgui_context) {
Expand Down
150 changes: 0 additions & 150 deletions src/debug.cpp

This file was deleted.

29 changes: 0 additions & 29 deletions src/debug.h

This file was deleted.

Loading

0 comments on commit 7eca190

Please sign in to comment.