Add some achievement display settings.

This commit is contained in:
redpolline 2024-11-15 12:53:30 -05:00
parent dfc486dd3b
commit 662e22bade
2 changed files with 9 additions and 1 deletions

View File

@ -73,6 +73,8 @@ class Settings {
bool unlockAllDLCs; bool unlockAllDLCs;
bool offline; bool offline;
bool showAchievementDescOnUnlock;
bool showAchievementHiddenUnearned;
std::vector<struct DLC_entry> DLCs; std::vector<struct DLC_entry> DLCs;
std::vector<struct Mod_entry> mods; std::vector<struct Mod_entry> mods;
std::map<AppId_t, std::string> app_paths; std::map<AppId_t, std::string> app_paths;
@ -170,6 +172,12 @@ public:
//warn people who use local save //warn people who use local save
bool warn_local_save = false; bool warn_local_save = false;
//achievements
bool get_show_achievement_desc_on_unlock() { return showAchievementDescOnUnlock; }
void set_show_achievement_desc_on_unlock(bool set) { this->showAchievementDescOnUnlock = set; }
bool get_show_achievement_hidden_unearned() { return showAchievementHiddenUnearned; }
void set_show_achievement_hidden_unearned(bool set) { this->showAchievementHiddenUnearned = set; }
}; };
#endif #endif

View File

@ -65,7 +65,7 @@ ScreenshotHandle Steam_Screenshots::AddScreenshotToLibrary( const char *pchFilen
if (pchFilename == nullptr) if (pchFilename == nullptr)
return INVALID_SCREENSHOT_HANDLE; return INVALID_SCREENSHOT_HANDLE;
std::vector<image_pixel_t> pixels(std::move(local_storage->load_image(pchFilename))); std::vector<image_pixel_t> pixels(std::move(local_storage->load_image(pchFilename, NULL, NULL)));
if (pixels.size() != size_t(nWidth) * size_t(nHeight)) if (pixels.size() != size_t(nWidth) * size_t(nHeight))
return INVALID_SCREENSHOT_HANDLE; return INVALID_SCREENSHOT_HANDLE;