mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
misc: clean up eamuse_get_game (#713)
No need to allocate a new `std::string` every call...
This commit is contained in:
@@ -631,7 +631,7 @@ void eamuse_update_keypad_bindings() {
|
|||||||
KEYPAD_BINDINGS = Config::getInstance().getKeypadBindings(EAMUSE_GAME_NAME);
|
KEYPAD_BINDINGS = Config::getInstance().getKeypadBindings(EAMUSE_GAME_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string eamuse_get_game() {
|
const std::string &eamuse_get_game() {
|
||||||
return EAMUSE_GAME_NAME;
|
return EAMUSE_GAME_NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ bool eamuse_keypad_state_naive();
|
|||||||
|
|
||||||
void eamuse_set_game(std::string game);
|
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();
|
||||||
int eamuse_get_game_keypads_name();
|
int eamuse_get_game_keypads_name();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user