mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 04:50:45 -05:00
Fix duplicate logging (!151)
Fixes a duplicate set of logging requests sent to the server for no reason. Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com> Reviewed-on: SPT/Modules#151 Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com> Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
This commit is contained in:
parent
e9f89801f2
commit
c0721317e4
@ -6,6 +6,8 @@ namespace SPT.Core.Utils
|
|||||||
{
|
{
|
||||||
public static class ValidationUtil
|
public static class ValidationUtil
|
||||||
{
|
{
|
||||||
|
private static bool _hasRun = false;
|
||||||
|
|
||||||
public static bool Validate()
|
public static bool Validate()
|
||||||
{
|
{
|
||||||
var c0 = @"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\EscapeFromTarkov";
|
var c0 = @"Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\EscapeFromTarkov";
|
||||||
@ -27,9 +29,13 @@ namespace SPT.Core.Utils
|
|||||||
new FileInfo(Path.Combine(v2, "UnityCrashHandler64.exe"))
|
new FileInfo(Path.Combine(v2, "UnityCrashHandler64.exe"))
|
||||||
};
|
};
|
||||||
|
|
||||||
ServerLog.Debug("SPT.Core", Gfs(v2, "UnityCrashHandler64.exe")?.Length.ToString() ?? "0");
|
if (!_hasRun)
|
||||||
ServerLog.Debug("SPT.Core", Gfs(v2, "Uninstall.exe")?.Length.ToString() ?? "0");
|
{
|
||||||
ServerLog.Debug("SPT.Core", Gfs(v2, "Register.bat")?.Length.ToString() ?? "0");
|
ServerLog.Debug("SPT.Core", Gfs(v2, "UnityCrashHandler64.exe")?.Length.ToString() ?? "0");
|
||||||
|
ServerLog.Debug("SPT.Core", Gfs(v2, "Uninstall.exe")?.Length.ToString() ?? "0");
|
||||||
|
ServerLog.Debug("SPT.Core", Gfs(v2, "Register.bat")?.Length.ToString() ?? "0");
|
||||||
|
_hasRun = true;
|
||||||
|
}
|
||||||
|
|
||||||
v0 = v4.Length - 1;
|
v0 = v4.Length - 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user