Skip to content

Commit

Permalink
1.9.1.6
Browse files Browse the repository at this point in the history
removed CleanAppCache since GL Ver 1.5.9 automatically deleting packageinfo.vdf when using DLLInjector.exe
  • Loading branch information
turusudiro committed Oct 3, 2024
1 parent 40f1d79 commit 7bdecb6
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 45 deletions.
31 changes: 0 additions & 31 deletions Common/GreenLuma/GreenLumaTasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,27 +135,6 @@ private static void CheckTask()
}
}
/// <summary>
/// Clean Steam appcache
/// <para>Delete Steam appcache/appinfo.vdf and appcache/packageinfo.vdf if GreenLuma not working for some reason.</para>
/// </summary>
private static void CleanAppCache(string steamDir)
{
string appinfo = Path.Combine(steamDir, "appcache\\appinfo.vdf");
string packageinfo = Path.Combine(steamDir, "appcache\\packageinfo.vdf");
string[] appcache = new string[]
{
appinfo,
packageinfo
};
foreach (string file in appcache)
{
if (FileSystem.FileExists(file))
{
FileSystem.DeleteFile(file, true);
}
}
}
/// <summary>
/// Start DLLInjector.exe
/// <para>Start DLLInjector.exe process</para>
/// </summary>
Expand Down Expand Up @@ -352,11 +331,6 @@ public static void StartGreenLumaJob(IPlayniteAPI PlayniteApi, IEnumerable<strin

// tell the lastrun to update its json file if all above executed without error, assuming steam is injected with configured appids
UpdateLastRun(appids, GreenLumaMode.Stealth, pluginPath, steamProcessID);

if (settings.CleanAppCache)
{
CleanAppCache(steamDir);
}
}
public static void StartGreenLumaJob(OnGameStartingEventArgs args, IPlayniteAPI PlayniteApi, IEnumerable<string> appids, GreenLumaMode mode, IEnumerable<FileInfo> greenlumaFiles)
{
Expand Down Expand Up @@ -634,11 +608,6 @@ public static void StartGreenLumaJob(OnGameStartingEventArgs args, IPlayniteAPI

// tell the lastrun to update its json file if all above executed without error, assuming steam is injected with configured appids
UpdateLastRun(appids, mode, pluginPath, steamProcessID);

if (settings.CleanAppCache)
{
CleanAppCache(steamDir);
}
}
private static void UpdateLastRun(IEnumerable<string> appids, GreenLumaMode mode, string pluginPath, string processID)
{
Expand Down
1 change: 0 additions & 1 deletion Localization/en_US.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ make sure Developer Mode is enabled.</sys:String>
<sys:String x:Key="LOCSEU_ManuallyCleanGL">Manually exit Steam by user</sys:String>
<sys:String x:Key="LOCSEU_ManuallyCleanGLDescription">Clean files after user exit Steam manually</sys:String>
<sys:String x:Key="LOCSEU_RunSteamArgs">Run Steam with additional argument</sys:String>
<sys:String x:Key="LOCSEU_GLCleanAppCache">Clean Steam AppCache on starting game</sys:String>
<sys:String x:Key="LOCSEU_GLCleanApplistFolderNotEmpty">Clean applist folder if it's not empty</sys:String>
<sys:String x:Key="LOCSEU_GLSkipSteamUpdateStealth">Skip Steam Update on Stealth Mode</sys:String>
<sys:String x:Key="LOCSEU_GLSkipSteamUpdateFamily">Skip Steam Update on Family Mode</sys:String>
Expand Down
1 change: 0 additions & 1 deletion Localization/id_ID.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ pastikan Mode Pengembang diaktifkan.</sys:String>
<sys:String x:Key="LOCSEU_ManuallyCleanGL">Keluar dari Steam secara manual oleh pengguna</sys:String>
<sys:String x:Key="LOCSEU_ManuallyCleanGLDescription">Bersihkan file setelah pengguna keluar dari Steam secara manual</sys:String>
<sys:String x:Key="LOCSEU_RunSteamArgs">Jalankan Steam dengan argumen tambahan</sys:String>
<sys:String x:Key="LOCSEU_GLCleanAppCache">Bersihkan Steam AppCache saat memulai permainan</sys:String>
<sys:String x:Key="LOCSEU_GLCleanApplistFolderNotEmpty">Bersihkan folder applist jika tidak kosong</sys:String>
<sys:String x:Key="LOCSEU_GLSkipSteamUpdateStealth">Lewati Pembaruan Steam pada Mode Senyap</sys:String>
<sys:String x:Key="LOCSEU_InjectAppOwnershipTickets">Masukkan AppOwnershipTickets jika tersedia</sys:String>
Expand Down
10 changes: 0 additions & 10 deletions SteamEmuUtilitySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,16 +281,6 @@ public bool SkipUpdateStealth
OnPropertyChanged();
}
}
private bool cleanappcache;
public bool CleanAppCache
{
get => cleanappcache;
set
{
cleanappcache = value;
OnPropertyChanged();
}
}
private IEnumerable<string> missinggoldbergfiles;
[DontSerialize]
public IEnumerable<string> MissingGoldbergFiles
Expand Down
1 change: 0 additions & 1 deletion SteamEmuUtilitySettingsView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@
<TextBlock Text="{DynamicResource LOCSEU_GeneralLabel}" FontWeight="Bold" Margin="5,0,0,10"/>
<CheckBox Content="{DynamicResource LOCSEU_RunSteamArgs}" IsChecked="{Binding Settings.EnableSteamArgs}" Margin="0,0,0,10"/>
<TextBox IsEnabled="{Binding Settings.EnableSteamArgs}" Text="{Binding Settings.SteamArgs}" Margin="0,0,0,10"/>
<CheckBox Content="{DynamicResource LOCSEU_GLCleanAppCache}" IsChecked="{Binding Settings.CleanAppCache}" Margin="0,0,0,10"/>
<CheckBox Content="{DynamicResource LOCSEU_GLCleanApplistFolderNotEmpty}" IsChecked="{Binding Settings.CleanApplist}" Margin="0,0,0,10"/>
</StackPanel>
<Separator/>
Expand Down
2 changes: 1 addition & 1 deletion extension.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Id: SteamEmuUtility_a237961d-d688-4be9-9576-fb635547f854
Name: Steam Emu Utility
Author: TuruSudiro
Version: 1.9.1.5
Version: 1.9.1.6
Module: SteamEmuUtility.dll
Type: GenericPlugin
Icon: icon.png
Expand Down

0 comments on commit 7bdecb6

Please sign in to comment.