mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
GameList: Make cover functions const
This commit is contained in:
parent
38e3b2a28a
commit
3137eb41c4
|
@ -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<const char*, 3> 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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue