mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 05:30:43 -05:00
Add return comments
This commit is contained in:
parent
d9e5b77c46
commit
d37c38b2b9
@ -18,7 +18,7 @@ namespace SPT.Core.Patches
|
|||||||
{
|
{
|
||||||
___bool_0 = ValidationUtil.Validate();
|
___bool_0 = ValidationUtil.Validate();
|
||||||
__result = Task.CompletedTask;
|
__result = Task.CompletedTask;
|
||||||
return false;
|
return false; // Skip original
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ namespace SPT.Core.Patches
|
|||||||
private static bool PatchPrefix(ref object __result)
|
private static bool PatchPrefix(ref object __result)
|
||||||
{
|
{
|
||||||
__result = Task.FromResult<ICheckResult>(new FakeFileCheckerResult());
|
__result = Task.FromResult<ICheckResult>(new FakeFileCheckerResult());
|
||||||
return false;
|
return false; // Skip original
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ namespace SPT.Core.Patches
|
|||||||
{
|
{
|
||||||
__result = Task.FromResult<ICheckResult>(new FakeFileCheckerResult());
|
__result = Task.FromResult<ICheckResult>(new FakeFileCheckerResult());
|
||||||
|
|
||||||
return false;
|
return false; // Skip original
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,8 +68,7 @@ namespace SPT.Custom.Patches
|
|||||||
|
|
||||||
__result = new Vector2(newX, newY);
|
__result = new Vector2(newX, newY);
|
||||||
|
|
||||||
// Skip original
|
return false; // Skip original
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,9 +26,11 @@ namespace SPT.Custom.Patches
|
|||||||
if (resultIsNullEmpty)
|
if (resultIsNullEmpty)
|
||||||
{
|
{
|
||||||
ConsoleScreen.LogError($"Unable to get difficulty settings for {role} {botDifficulty}");
|
ConsoleScreen.LogError($"Unable to get difficulty settings for {role} {botDifficulty}");
|
||||||
|
|
||||||
|
return true; // Do original method
|
||||||
}
|
}
|
||||||
|
|
||||||
return resultIsNullEmpty; // Server data returned = false = skip original method
|
return false; // Skip original
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ namespace SPT.Custom.Patches
|
|||||||
public static bool PatchPrefix(ESessionMode sessionMode, Profile profile, ref GameObject ____notAvailableState)
|
public static bool PatchPrefix(ESessionMode sessionMode, Profile profile, ref GameObject ____notAvailableState)
|
||||||
{
|
{
|
||||||
____notAvailableState.SetActive(false);
|
____notAvailableState.SetActive(false);
|
||||||
return false;
|
return false; // Skip original
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ namespace SPT.Custom.Patches
|
|||||||
var easyAsset = gameObject.AddComponent<EasyAssets>();
|
var easyAsset = gameObject.AddComponent<EasyAssets>();
|
||||||
__result = Init(easyAsset, bundleLock, defaultKey, rootPath, platformName, shouldExclude, bundleCheck);
|
__result = Init(easyAsset, bundleLock, defaultKey, rootPath, platformName, shouldExclude, bundleCheck);
|
||||||
|
|
||||||
return false;
|
return false; // Skip original
|
||||||
}
|
}
|
||||||
|
|
||||||
private static async Task<EasyAssets> Init(EasyAssets instance, [CanBeNull] IBundleLock bundleLock, string defaultKey, string rootPath, string platformName, [CanBeNull] Func<string, bool> shouldExclude, Func<string, Task> bundleCheck)
|
private static async Task<EasyAssets> Init(EasyAssets instance, [CanBeNull] IBundleLock bundleLock, string defaultKey, string rootPath, string platformName, [CanBeNull] Func<string, bool> shouldExclude, Func<string, Task> bundleCheck)
|
||||||
|
@ -18,7 +18,7 @@ namespace SPT.Custom.Patches
|
|||||||
{
|
{
|
||||||
if (____groups == null)
|
if (____groups == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false; // Skip original
|
||||||
}
|
}
|
||||||
return true; // Do original method
|
return true; // Do original method
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ namespace SPT.Debugging.Patches
|
|||||||
__instance.SpawnBotsInZoneOnPositions(newSpawns.GetRange(i, 1), currentZone, currentSpawnData);
|
__instance.SpawnBotsInZoneOnPositions(newSpawns.GetRange(i, 1), currentZone, currentSpawnData);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false; // Skip original
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -77,7 +77,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix
|
|||||||
var continuation = new BundleLoader(taskScheduler);
|
var continuation = new BundleLoader(taskScheduler);
|
||||||
__result = taskAwaiter.ContinueWith(continuation.LoadBundles, taskScheduler).Unwrap();
|
__result = taskAwaiter.ContinueWith(continuation.LoadBundles, taskScheduler).Unwrap();
|
||||||
|
|
||||||
return false;
|
return false; // Skip original
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Profile GetFirstResult(Task<Profile[]> task)
|
private static Profile GetFirstResult(Task<Profile[]> task)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user