Some other fixes

This commit is contained in:
angie 2024-05-28 15:12:31 -04:00 committed by Angie
parent b8a872e4e7
commit edcb97422b
2 changed files with 2 additions and 2 deletions

View file

@ -94,10 +94,9 @@ struct {
} save_context;
const std::u8string save_folder = u8"saves";
const std::u8string save_filename = std::u8string{recomp::current_game_id()} + u8".bin";
std::filesystem::path get_save_file_path() {
return recomp::get_app_folder_path() / save_folder / save_filename;
return recomp::get_app_folder_path() / save_folder / (std::u8string{recomp::current_game_id()} + u8".bin");
}
void update_save_file() {

View file

@ -61,6 +61,7 @@ bool recomp::register_game(const recomp::GameEntry& entry) {
void recomp::register_patch(const char* patch, std::size_t size) {
std::lock_guard<std::mutex> lock(patch_data_mutex);
patch_data.resize(size);
std::memcpy(patch_data.data(), patch, size);
}