diff --git a/overlay_experimental/overlay/steam_overlay.h b/overlay_experimental/overlay/steam_overlay.h index 318a112f..00b132ce 100644 --- a/overlay_experimental/overlay/steam_overlay.h +++ b/overlay_experimental/overlay/steam_overlay.h @@ -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 diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index db3c21b8..542b8a74 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -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 lock(overlay_mutex);