Files
sbox-public/engine/Tools/SboxBuild/Steps/GameCache.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

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;
}
}
}