Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed msbuild warnings (again and again forever maybe) #34

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dll/local_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,8 @@ bool Local_Storage::load_json(const std::string &full_path, nlohmann::json& json
PRINT_DEBUG("Loaded json '%s' (%zu items)", full_path.c_str(), json.size());
return true;
} catch (const std::exception& e) {
PRINT_DEBUG("Error while parsing '%s' json error: %s", full_path.c_str(), e.what());
const char *errorMessage = e.what();
PRINT_DEBUG("Error while parsing '%s' json error: %s", full_path.c_str(), errorMessage);
}
} else {
PRINT_DEBUG("Couldn't open file '%s' to read json", full_path.c_str());
Expand Down
3 changes: 2 additions & 1 deletion dll/settings_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,8 @@ static void try_parse_mods_file(class Settings *settings_client, Settings *setti
PRINT_DEBUG(" workshop_item_url: '%s'", newMod.workshopItemURL.c_str());
PRINT_DEBUG(" preview_url: '%s'", newMod.previewURL.c_str());
} catch (std::exception& e) {
PRINT_DEBUG("MODLOADER ERROR: %s", e.what());
const char *errorMessage = e.what();
PRINT_DEBUG("MODLOADER ERROR: %s", errorMessage);
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion dll/steam_user_stats_stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,8 @@ bool Steam_User_Stats::ResetAllStats( bool bAchievementsToo )
// this won't actually trigger a notification, just updates the data
overlay->AddAchievementNotification(name, item, false);
} catch(const std::exception& e) {
PRINT_DEBUG("ERROR: %s", e.what());
const char *errorMessage = e.what();
PRINT_DEBUG("ERROR: %s", errorMessage);
}
}
if (needs_disk_write) save_achievements();
Expand Down