diff --git a/src/frontend-common/game_list.cpp b/src/frontend-common/game_list.cpp index 4adf0bb5a..1a22741e8 100644 --- a/src/frontend-common/game_list.cpp +++ b/src/frontend-common/game_list.cpp @@ -1128,7 +1128,7 @@ void GameList::UpdateGameSettings(const std::string& filename, const std::string m_game_settings.SetEntry(game_code, game_title, new_entry, m_user_game_settings_filename.c_str()); } -std::string GameList::GetCoverImagePathForEntry(const GameListEntry* entry) +std::string GameList::GetCoverImagePathForEntry(const GameListEntry* entry) const { static constexpr std::array extensions = {{"jpg", "jpeg", "png"}}; @@ -1171,7 +1171,7 @@ std::string GameList::GetCoverImagePathForEntry(const GameListEntry* entry) return std::string(); } -std::string GameList::GetNewCoverImagePathForEntry(const GameListEntry* entry, const char* new_filename) +std::string GameList::GetNewCoverImagePathForEntry(const GameListEntry* entry, const char* new_filename) const { const char* extension = std::strrchr(new_filename, '.'); if (!extension) diff --git a/src/frontend-common/game_list.h b/src/frontend-common/game_list.h index ce5b48d8a..d5f9fed8f 100644 --- a/src/frontend-common/game_list.h +++ b/src/frontend-common/game_list.h @@ -100,8 +100,8 @@ public: void UpdateGameSettings(const std::string& filename, const std::string& game_code, const std::string& game_title, const GameSettings::Entry& new_entry, bool save_to_list = true); - std::string GetCoverImagePathForEntry(const GameListEntry* entry); - std::string GetNewCoverImagePathForEntry(const GameListEntry* entry, const char* new_filename); + std::string GetCoverImagePathForEntry(const GameListEntry* entry) const; + std::string GetNewCoverImagePathForEntry(const GameListEntry* entry, const char* new_filename) const; private: enum : u32