Skip to content

Commit

Permalink
Add fallback for games missing asset information in appinfo.vdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaldaien committed Jan 26, 2025
1 parent 1ec3583 commit 1c10030
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/stores/Steam/vdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,12 @@ skValveDataFile::getAppInfo ( uint32_t appid, std::vector <std::pair < std::stri
}
}

// If the appinfo.vdf didn't contain library asset paths, default to standard path
if (get_library_asset_paths)
{
pAppRecord->common_config.boxart_hash = "library_600x900.jpg";
}

// At this point, since we used Steam's index as the position to stuff data into, the vector has
// has objects all over -- some at 0, some at 1, others at 0-4, not 5, 6-9. Basically we cannot
// be certain of anything, at all, what so bloody ever! So let's just recreate the std::map!
Expand Down Expand Up @@ -861,7 +867,6 @@ skValveDataFile::getAppInfo ( uint32_t appid, std::vector <std::pair < std::stri
pAppRecord->launch_configs[0].id = 0;
pAppRecord->launch_configs[firstValidFound].id = copy_id;
}

#if 0

for (auto& launch : pAppRecord->launch_configs)
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#define SKIF_MAJOR 1
#define SKIF_MINOR 1
#define SKIF_BUILD 14
#define SKIF_BUILD 15
#define SKIF_REV 0


Expand Down

0 comments on commit 1c10030

Please sign in to comment.