mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Add some achievement display settings.
This commit is contained in:
parent
dfc486dd3b
commit
662e22bade
2 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue