Skip to content

Commit 3a5d2c4

Browse files
committed
Remove platform specific code
1 parent 572cb50 commit 3a5d2c4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gm_dotnet_native/dotnethelper-src/dotnethelper.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,8 @@ extern "C" DYNANAMIC_EXPORT cleanup_function_fn InitNetRuntime(GarrysMod::Lua::I
187187
dotnet_runtime_params.host_path = game_exe_path;
188188

189189
std::filesystem::path dotnet_root_path = std::filesystem::current_path() / "garrysmod" / "lua" / "bin" / "dotnet";
190-
#ifdef WIN32
191190
dotnet_runtime_params.dotnet_root = dotnet_root_path.native().c_str();
192-
#else
193-
dotnet_runtime_params.dotnet_root = dotnet_root_path.c_str();
194-
#endif
191+
195192
int init_success_code = hostfxr_initialize_for_dotnet_command_line(2, dotnet_args, &dotnet_runtime_params, &runtime_environment_handle);
196193
if(init_success_code != 0)
197194
{

0 commit comments

Comments
 (0)