mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-02 03:18:23 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
25 lines
625 B
C#
25 lines
625 B
C#
using static Facepunch.Constants;
|
|
|
|
namespace Facepunch.Steps;
|
|
|
|
internal class GameCache() : Step( "GameCache" )
|
|
{
|
|
protected override ExitCode RunInternal()
|
|
{
|
|
string rootDir = Directory.GetCurrentDirectory();
|
|
string exePath = Path.Combine( rootDir, "engine", "Tools", "CreateGameCache", "bin", "CreateGameCache.exe" );
|
|
|
|
try
|
|
{
|
|
Utility.RunProcess( exePath, $"--quiet", null );
|
|
Console.WriteLine( "GameCache operations completed successfully!" );
|
|
return ExitCode.Success;
|
|
}
|
|
catch ( Exception ex )
|
|
{
|
|
Log.Error( $"GameCache operations failed with error: {ex}" );
|
|
return ExitCode.Failure;
|
|
}
|
|
}
|
|
}
|