mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Fix overlay when avatar images are not configured.
(Otherwise, we'll crash after generating too many images.)
This commit is contained in:
parent
4083408bcb
commit
9f4cc05f2a
5 changed files with 101 additions and 39 deletions
|
|
@ -84,6 +84,7 @@ class Settings {
|
|||
std::vector<Settings_Background_Task> background_tasks;
|
||||
std::thread background_monitor_thread;
|
||||
std::recursive_mutex background_thread_mutex;
|
||||
std::atomic<bool> settings_parser_done;
|
||||
|
||||
bool unlockAllDLCs;
|
||||
bool offline;
|
||||
|
|
@ -128,6 +129,9 @@ public:
|
|||
uint16 get_port() {return port;}
|
||||
void set_port(uint16 port) { this->port = port;}
|
||||
|
||||
bool is_settings_parser_done() { return this->settings_parser_done; }
|
||||
void set_settings_parser_done(const bool done) { this->settings_parser_done = done; }
|
||||
|
||||
//DLC stuff
|
||||
void unlockAllDLC(bool value);
|
||||
void addDLC(AppId_t appID, std::string name, bool available);
|
||||
|
|
@ -176,6 +180,7 @@ public:
|
|||
int get_image(int ref, std::string * data, uint32 * width, uint32 * height);
|
||||
int get_profile_image(int eAvatarSize);
|
||||
int set_profile_image(int eAvatarSize, Image_Data * image);
|
||||
int set_profile_image(int eAvatarSize, int reference, bool notify);
|
||||
int get_preferred_network_image_type() { return this->preferred_network_image_type; }
|
||||
void set_preferred_network_image_type(int new_type);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue