Skip to content

Commit

Permalink
Reset Steam appinfo variable on library refresh
Browse files Browse the repository at this point in the history
- Solves issues with newly bought games requiring a SKIF restart
  • Loading branch information
Aemony committed Apr 17, 2024
1 parent 3ff9924 commit c70eb4f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/tabs/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4394,13 +4394,8 @@ SKIF_UI_Tab_DrawLibrary (void)

#pragma region Initialization

// Initialize the Steam appinfo.vdf Reader
if (_registry.bLibrarySteam)
{
SK_RunOnce (
appinfo = std::make_unique <skValveDataFile> (std::wstring(_path_cache.steam_install) + LR"(\appcache\appinfo.vdf)");
);

// Set up the registry watch on the Steam ActiveProcess key and ActiveUser value
SK_RunOnce (
SKIF_Steam_HasActiveProcessChanged (nullptr, nullptr);
Expand Down Expand Up @@ -4565,6 +4560,9 @@ SKIF_UI_Tab_DrawLibrary (void)

library_worker = new lib_worker_thread_s;
library_worker->steam_user = SKIF_Steam_GetCurrentUser ( );

// Initialize/reset the Steam appinfo.vdf Reader
appinfo = std::make_unique <skValveDataFile>(std::wstring(_path_cache.steam_install) + LR"(\appcache\appinfo.vdf)");

HANDLE hWorkerThread = (HANDLE)
_beginthreadex (nullptr, 0x0, [](void* var) -> unsigned
Expand Down

0 comments on commit c70eb4f

Please sign in to comment.