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
|
|
@ -347,9 +347,9 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
|||
|
||||
bool warn_forced = false;
|
||||
|
||||
Image_Data profile_small;
|
||||
Image_Data profile_medium;
|
||||
Image_Data profile_large;
|
||||
Image_Data profile_small {0, 0, std::string()};
|
||||
Image_Data profile_medium {0, 0, std::string()};
|
||||
Image_Data profile_large {0, 0, std::string()};
|
||||
|
||||
{
|
||||
std::string steam_settings_path = local_storage->get_global_settings_path();
|
||||
|
|
@ -731,6 +731,9 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
|||
|
||||
load_gamecontroller_settings(settings_client);
|
||||
|
||||
settings_client->set_settings_parser_done(true);
|
||||
settings_server->set_settings_parser_done(true);
|
||||
|
||||
*settings_client_out = settings_client;
|
||||
*settings_server_out = settings_server;
|
||||
*local_storage_out = local_storage;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue