mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-24 09:24:15 +08:00
const ref string instead of copy
This commit is contained in:
parent
a2617646e5
commit
765f3f210c
@ -253,7 +253,7 @@ public:
|
||||
void FriendConnect(Friend _friend);
|
||||
void FriendDisconnect(Friend _friend);
|
||||
|
||||
void AddAchievementNotification(std::string ach_name, nlohmann::json const& ach);
|
||||
void AddAchievementNotification(const std::string &ach_name, nlohmann::json const& ach);
|
||||
};
|
||||
|
||||
#else // EMU_OVERLAY
|
||||
@ -287,7 +287,7 @@ public:
|
||||
void FriendConnect(Friend _friend) {}
|
||||
void FriendDisconnect(Friend _friend) {}
|
||||
|
||||
void AddAchievementNotification(std::string ach_name, nlohmann::json const& ach) {}
|
||||
void AddAchievementNotification(const std::string &ach_name, nlohmann::json const& ach) {}
|
||||
};
|
||||
|
||||
#endif // EMU_OVERLAY
|
||||
|
@ -1963,7 +1963,7 @@ void Steam_Overlay::FriendDisconnect(Friend _friend)
|
||||
}
|
||||
|
||||
// show a notification when the user unlocks an achievement
|
||||
void Steam_Overlay::AddAchievementNotification(std::string ach_name, nlohmann::json const &ach)
|
||||
void Steam_Overlay::AddAchievementNotification(const std::string &ach_name, nlohmann::json const &ach)
|
||||
{
|
||||
PRINT_DEBUG_ENTRY();
|
||||
std::lock_guard<std::recursive_mutex> lock(overlay_mutex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user