Skip to content

Commit

Permalink
Add Xbox app directory to registry as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Jan 29, 2024
1 parent b76d4fc commit d02b201
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/tabs/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5031,11 +5031,18 @@ SKIF_UI_Tab_DrawLibrary (void)
{
std::wstring wsName = SK_UTF8ToWideChar(app.second.names.original);

if (ERROR_SUCCESS != RegSetValueExW (hKey, app.second.install_dir.c_str(), 0, REG_SZ, (LPBYTE)wsName.data(),
(DWORD)wsName.size() * sizeof(wchar_t)))
if (ERROR_SUCCESS != RegSetValueExW (hKey, app.second.install_dir.c_str(), 0, REG_SZ, (LPBYTE)wsName.data(), (DWORD)wsName.size() * sizeof(wchar_t)))
{
PLOG_ERROR << "Failed adding profile name (" << wsName << ") to registry value: " << app.second.install_dir;
}

if (app.second.store == app_record_s::Store::Xbox)
{
if (ERROR_SUCCESS != RegSetValueExW (hKey, app.second.Xbox_AppDirectory.c_str(), 0, REG_SZ, (LPBYTE)wsName.data(), (DWORD)wsName.size() * sizeof(wchar_t)))
{
PLOG_ERROR << "Failed adding profile name (" << wsName << ") to registry value: " << app.second.Xbox_AppDirectory;
}
}
}
}
}
Expand Down

0 comments on commit d02b201

Please sign in to comment.