mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-04-17 17:39:27 +02:00
Change filenames for global settings avatar images...
... and fix the debug messages. This changes the filenames to be "avatar_*" instead of "profile_*" to keep things consistent with the proper naming elsewhere.
This commit is contained in:
parent
bfb0272300
commit
55277ab770
1 changed files with 9 additions and 9 deletions
|
@ -354,17 +354,17 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
|||
enable_achievement_desc_on_unlock = true;
|
||||
} else if (p == "enable_displaying_hidden_achievements.txt") {
|
||||
enable_displaying_hidden_achievements = true;
|
||||
} else if (p == "profile_small.jpg") {
|
||||
} else if (p == "avatar_small.jpg") {
|
||||
profile_small.data = convert_vector_image_pixel_t_to_std_string(local_storage->load_image(steam_settings_path + p, &profile_small.width, &profile_small.height));
|
||||
} else if (p == "profile_medium.jpg") {
|
||||
} else if (p == "avatar_medium.jpg") {
|
||||
profile_medium.data = convert_vector_image_pixel_t_to_std_string(local_storage->load_image(steam_settings_path + p, &profile_medium.width, &profile_medium.height));
|
||||
} else if (p == "profile_large.jpg") {
|
||||
} else if (p == "avatar_large.jpg") {
|
||||
profile_large.data = convert_vector_image_pixel_t_to_std_string(local_storage->load_image(steam_settings_path + p, &profile_large.width, &profile_large.height));
|
||||
} else if (p == "profile_small.png") {
|
||||
} else if (p == "avatar_small.png") {
|
||||
profile_small.data = convert_vector_image_pixel_t_to_std_string(local_storage->load_image(steam_settings_path + p, &profile_small.width, &profile_small.height));
|
||||
} else if (p == "profile_medium.png") {
|
||||
} else if (p == "avatar_medium.png") {
|
||||
profile_medium.data = convert_vector_image_pixel_t_to_std_string(local_storage->load_image(steam_settings_path + p, &profile_medium.width, &profile_medium.height));
|
||||
} else if (p == "profile_large.png") {
|
||||
} else if (p == "avatar_large.png") {
|
||||
profile_large.data = convert_vector_image_pixel_t_to_std_string(local_storage->load_image(steam_settings_path + p, &profile_large.width, &profile_large.height));
|
||||
}
|
||||
}
|
||||
|
@ -454,19 +454,19 @@ uint32 create_localstorage_settings(Settings **settings_client_out, Settings **s
|
|||
settings_client->set_profile_image(k_EAvatarSize32x32, &profile_small);
|
||||
settings_server->set_profile_image(k_EAvatarSize32x32, &profile_small);
|
||||
} else {
|
||||
PRINT_DEBUG("%s %"PRI_ZU" %d %d\n", "Small user profile image not defined.", profile_small.data.length(), profile_small.width, profile_small.height);
|
||||
PRINT_DEBUG("%s %"PRI_ZU" %d %d\n", "Small user avatar image not defined.", profile_small.data.length(), profile_small.width, profile_small.height);
|
||||
}
|
||||
if (profile_medium.data.length() > 0 && profile_medium.width > 0 && profile_medium.height > 0) {
|
||||
settings_client->set_profile_image(k_EAvatarSize64x64, &profile_medium);
|
||||
settings_server->set_profile_image(k_EAvatarSize64x64, &profile_medium);
|
||||
} else {
|
||||
PRINT_DEBUG("%s %"PRI_ZU" %d %d\n", "Medium user profile image not defined.", profile_medium.data.length(), profile_medium.width, profile_medium.height);
|
||||
PRINT_DEBUG("%s %"PRI_ZU" %d %d\n", "Medium user avatar image not defined.", profile_medium.data.length(), profile_medium.width, profile_medium.height);
|
||||
}
|
||||
if (profile_large.data.length() > 0 && profile_large.width > 0 && profile_large.height > 0) {
|
||||
settings_client->set_profile_image(k_EAvatarSize184x184, &profile_large);
|
||||
settings_server->set_profile_image(k_EAvatarSize184x184, &profile_large);
|
||||
} else {
|
||||
PRINT_DEBUG("%s %"PRI_ZU" %d %d\n", "Large user profile image not defined.", profile_large.data.length(), profile_large.width, profile_large.height);
|
||||
PRINT_DEBUG("%s %"PRI_ZU" %d %d\n", "Large user avatar image not defined.", profile_large.data.length(), profile_large.width, profile_large.height);
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue