improved server
This commit is contained in:
12
build.cpp
12
build.cpp
@@ -37,6 +37,7 @@ extern "C" void Preinit()
|
||||
{
|
||||
case TARGET_KERNEL_WINDOWS:
|
||||
bSteam = true;
|
||||
steam_lib = "external/steamworks/redistributable_bin/win64/steam_api64.dll";
|
||||
break;
|
||||
case TARGET_KERNEL_LINUX:
|
||||
bSteam = true;
|
||||
@@ -50,8 +51,15 @@ extern "C" void Preinit()
|
||||
}
|
||||
if (bSteam)
|
||||
{
|
||||
IFileSystem2::MakeDirectory(CUtlString("%s/bin", szOutputDir.GetString()));
|
||||
IFileSystem2::CopyFile(CUtlString("%s/bin", szOutputDir.GetString()), steam_lib);
|
||||
if (bStaticBuild)
|
||||
{
|
||||
IFileSystem2::MakeDirectory(CUtlString("%s/bin", szOutputDir.GetString()));
|
||||
IFileSystem2::CopyFile(CUtlString("%s/bin", szOutputDir.GetString()), steam_lib);
|
||||
} else
|
||||
{
|
||||
IFileSystem2::MakeDirectory(CUtlString("%s/bin", szOutputDir.GetString()));
|
||||
IFileSystem2::CopyFile(CUtlString("%s/bin", szOutputDir.GetString()), steam_lib);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user