Skip to content

Commit 572cb50

Browse files
committed
Update Windows
1 parent 7b78901 commit 572cb50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gm_dotnet_native/dotnethelper-src/dotnethelper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ extern "C" DYNANAMIC_EXPORT cleanup_function_fn InitNetRuntime(GarrysMod::Lua::I
186186
#endif
187187
dotnet_runtime_params.host_path = game_exe_path;
188188

189-
std::filesystem::path dotnet_root_path = std::filesystem::current_path() / "garrysmod/lua/bin/dotnet";
189+
std::filesystem::path dotnet_root_path = std::filesystem::current_path() / "garrysmod" / "lua" / "bin" / "dotnet";
190190
#ifdef WIN32
191-
dotnet_runtime_params.dotnet_root = L"garrysmod/lua/bin/dotnet";
191+
dotnet_runtime_params.dotnet_root = dotnet_root_path.native().c_str();
192192
#else
193193
dotnet_runtime_params.dotnet_root = dotnet_root_path.c_str();
194194
#endif

0 commit comments

Comments
 (0)