Skip to content

Commit

Permalink
Add GC to avoid SteamStub unpack failure
Browse files Browse the repository at this point in the history
oureveryday committed Jan 27, 2025
1 parent 20a893a commit a772197
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SteamAutoCrack.CLI/SteamAutoCrack.CLI.csproj
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>x86</Platforms>
<Version>3.4.3.1</Version>
<Version>3.4.3.2</Version>
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
<ApplicationIcon>SteamAutoCrack.ico</ApplicationIcon>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
2 changes: 1 addition & 1 deletion SteamAutoCrack.Core/SteamAutoCrack.Core.csproj
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
<Nullable>enable</Nullable>
<Platforms>x86</Platforms>
<PlatformTarget>x86</PlatformTarget>
<Version>3.4.3.1</Version>
<Version>3.4.3.2</Version>
</PropertyGroup>

<ItemGroup>
1 change: 1 addition & 0 deletions SteamAutoCrack.Core/Utils/Process.cs
Original file line number Diff line number Diff line change
@@ -84,6 +84,7 @@ public async Task ProcessFileGUI()
}

_log.Information("All process completed.");
GC.Collect();
}
catch (Exception ex)
{
1 change: 1 addition & 0 deletions SteamAutoCrack.Core/Utils/SteamStubUnpacker.cs
Original file line number Diff line number Diff line change
@@ -225,6 +225,7 @@ private async Task UnpackFile(string path)
foreach (var p in steamlessPlugins)
if (p.CanProcessFile(path))
{
GC.Collect();
if (await Task.Run(() => p.ProcessFile(path, steamlessOptions)))
{
bSuccess = true;
2 changes: 1 addition & 1 deletion SteamAutoCrack/SteamAutoCrack.csproj
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
<UseWPF>true</UseWPF>
<ApplicationIcon>SteamAutoCrack.ico</ApplicationIcon>
<Platforms>x86</Platforms>
<Version>3.4.3.1</Version>
<Version>3.4.3.2</Version>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
</PropertyGroup>

0 comments on commit a772197

Please sign in to comment.