mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
22 lines
612 B
C#
22 lines
612 B
C#
using System.Runtime;
|
|
using Robust.Shared.Configuration;
|
|
using Robust.Shared.ContentPack;
|
|
|
|
namespace Robust.Shared
|
|
{
|
|
internal static class ProfileOptSetup
|
|
{
|
|
public static void Setup(IConfigurationManager cfg)
|
|
{
|
|
// Disabled on non-release since I don't want this to start creating files in Steam's bin directory.
|
|
#if !RELEASE
|
|
if (!cfg.GetCVar(CVars.SysProfileOpt))
|
|
return;
|
|
|
|
ProfileOptimization.SetProfileRoot(PathHelpers.GetExecutableDirectory());
|
|
ProfileOptimization.StartProfile("profile_opt");
|
|
#endif
|
|
}
|
|
}
|
|
}
|