fixed_typemap.hpp: return reference

This commit is contained in:
Nekotekina 2021-03-02 14:59:19 +03:00
parent bbf52f3cea
commit ea5e837bd6
87 changed files with 3028 additions and 2997 deletions

View file

@ -163,7 +163,7 @@ static std::vector<SaveDataEntry> get_save_entries(const std::string& base_dir,
static error_code select_and_delete(ppu_thread& ppu)
{
std::unique_lock lock(g_fxo->get<savedata_mutex>()->mutex, std::try_to_lock);
std::unique_lock lock(g_fxo->get<savedata_mutex>().mutex, std::try_to_lock);
if (!lock)
{
@ -558,7 +558,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
return {CELL_SAVEDATA_ERROR_PARAM, std::to_string(ecode)};
}
std::unique_lock lock(g_fxo->get<savedata_mutex>()->mutex, std::try_to_lock);
std::unique_lock lock(g_fxo->get<savedata_mutex>().mutex, std::try_to_lock);
if (!lock)
{