misc: clean up eamuse_get_game (#713)

No need to allocate a new `std::string` every call...
This commit is contained in:
bicarus
2026-05-29 09:08:07 -07:00
committed by GitHub
parent b4557993c9
commit 89602cfcab
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -631,7 +631,7 @@ void eamuse_update_keypad_bindings() {
KEYPAD_BINDINGS = Config::getInstance().getKeypadBindings(EAMUSE_GAME_NAME);
}
std::string eamuse_get_game() {
const std::string &eamuse_get_game() {
return EAMUSE_GAME_NAME;
}
+1 -1
View File
@@ -78,7 +78,7 @@ bool eamuse_keypad_state_naive();
void eamuse_set_game(std::string game);
std::string eamuse_get_game();
const std::string &eamuse_get_game();
int eamuse_get_game_keypads();
int eamuse_get_game_keypads_name();