Skip to content

Commit

Permalink
enable imgui by default
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf109909 committed Nov 13, 2023
1 parent 0de77df commit 0e41a7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion NorthstarDLL/NorthstarDLL.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@
</Command>
</PreBuildEvent>
<PostBuildEvent>
<Command>IF EXIST "$(SolutionDir)..\NorthstarCN_Binaries\Northstar.dll" del "$(SolutionDir)..\NorthstarCN_Binaries\Northstar.dll" &amp;&amp; copy /Y "$(TargetPath)" "$(SolutionDir)..\NorthstarCN_Binaries\</Command>
<Command>IF EXIST "$(SolutionDir)..\NorthstarCN_Binaries_Dedicated\Northstar.dll" del "$(SolutionDir)..\NorthstarCN_Binaries_Dedicated\Northstar.dll" &amp;&amp; copy /Y "$(TargetPath)" "$(SolutionDir)..\NorthstarCN_Binaries_Dedicated\
IF EXIST "$(SolutionDir)..\NorthstarCN_Binaries\Northstar.dll" del "$(SolutionDir)..\NorthstarCN_Binaries\Northstar.dll" &amp;&amp; copy /Y "$(TargetPath)" "$(SolutionDir)..\NorthstarCN_Binaries\</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Dedicated|x64'">
Expand Down
5 changes: 3 additions & 2 deletions NorthstarDLL/client/imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ void imgui_add_draw(imgui_draw* func)
void imgui_setup()
{
// ImGui::GetAllocatorFunctions(imgui_malloc, (ImGuiMemFreeFunc*)imgui_free, nullptr);
if (!strstr(GetCommandLineA(), "-enableimgui"))
if (strstr(GetCommandLineA(), "-disableimgui"))
{
spdlog::info("[IMGUI] IMGUI is Disabled! use argument -enableimgui for advanced status display!");
spdlog::info("[IMGUI] IMGUI is disabled!");
return;
}
spdlog::info("[IMGUI] IMGUI is enabled! use argument -disableimgui if you find any compatibility issues!");
std::jthread setup_thread(setup_thread_func);
setup_thread.detach();
}

0 comments on commit 0e41a7d

Please sign in to comment.