Update project files for configuration changes. (#14281)
This commit is contained in:
committed by
GitHub
parent
9b080c0ef3
commit
c5b3f62f6f
@@ -218,10 +218,7 @@ public static class PoolManager
|
||||
options.CVarOverrides[CCVars.GameDummyTicker.Name] = "true";
|
||||
}
|
||||
|
||||
if (poolSettings.InLobby)
|
||||
{
|
||||
options.CVarOverrides[CCVars.GameLobbyEnabled.Name] = "true";
|
||||
}
|
||||
options.CVarOverrides[CCVars.GameLobbyEnabled.Name] = poolSettings.InLobby.ToString();
|
||||
|
||||
if (poolSettings.DisableInterpolate)
|
||||
{
|
||||
@@ -233,6 +230,8 @@ public static class PoolManager
|
||||
options.CVarOverrides[CCVars.GameMap.Name] = poolSettings.Map;
|
||||
}
|
||||
|
||||
options.CVarOverrides[CCVars.ConfigPresetDevelopment.Name] = "false";
|
||||
|
||||
// This breaks some tests.
|
||||
// TODO: Figure out which tests this breaks.
|
||||
options.CVarOverrides[CVars.NetBufferSize.Name] = "0";
|
||||
@@ -647,12 +646,12 @@ public sealed class PoolSettings
|
||||
/// <summary>
|
||||
/// If the returned pair must not be reused
|
||||
/// </summary>
|
||||
public bool MustNotBeReused => Destructive || NoLoadContent || DisableInterpolate || DummyTicker;
|
||||
public bool MustNotBeReused => Destructive || NoLoadContent || DisableInterpolate || DummyTicker || NoToolsExtraPrototypes;
|
||||
|
||||
/// <summary>
|
||||
/// If the given pair must be brand new
|
||||
/// </summary>
|
||||
public bool MustBeNew => Fresh || NoLoadContent || DisableInterpolate || DummyTicker;
|
||||
public bool MustBeNew => Fresh || NoLoadContent || DisableInterpolate || DummyTicker || NoToolsExtraPrototypes;
|
||||
|
||||
/// <summary>
|
||||
/// If the given pair must not be connected
|
||||
@@ -744,6 +743,14 @@ public sealed class PoolSettings
|
||||
if (ExtraPrototypes != nextSettings.ExtraPrototypes) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Prototype hot reload is not available outside TOOLS builds,
|
||||
// so we can't pool test instances that use ExtraPrototypes without TOOLS.
|
||||
#if TOOLS
|
||||
private bool NoToolsExtraPrototypes => false;
|
||||
#else
|
||||
private bool NoToolsExtraPrototypes => !string.IsNullOrEmpty(ExtraPrototypes);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user