From 70a4b5c9f23b9be7b4ce605d5af9ea4ba6acc95d Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 24 Nov 2024 23:29:10 +1000 Subject: [PATCH] GameDatabase: Add missing flags --- data/resources/images/flags/{Finish.svg => Finnish.svg} | 0 data/resources/images/flags/Russian.svg | 2 ++ data/resources/images/flags/Turkish.svg | 5 +++++ data/resources/images/flags/sources.txt | 3 ++- src/core/game_database.cpp | 6 +++--- src/core/game_database.h | 1 + 6 files changed, 13 insertions(+), 4 deletions(-) rename data/resources/images/flags/{Finish.svg => Finnish.svg} (100%) create mode 100644 data/resources/images/flags/Russian.svg create mode 100644 data/resources/images/flags/Turkish.svg diff --git a/data/resources/images/flags/Finish.svg b/data/resources/images/flags/Finnish.svg similarity index 100% rename from data/resources/images/flags/Finish.svg rename to data/resources/images/flags/Finnish.svg diff --git a/data/resources/images/flags/Russian.svg b/data/resources/images/flags/Russian.svg new file mode 100644 index 000000000..553014621 --- /dev/null +++ b/data/resources/images/flags/Russian.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/data/resources/images/flags/Turkish.svg b/data/resources/images/flags/Turkish.svg new file mode 100644 index 000000000..0ce226481 --- /dev/null +++ b/data/resources/images/flags/Turkish.svg @@ -0,0 +1,5 @@ + + Flag of Turkey + + + \ No newline at end of file diff --git a/data/resources/images/flags/sources.txt b/data/resources/images/flags/sources.txt index 3f2dc4f9f..9d41adee9 100644 --- a/data/resources/images/flags/sources.txt +++ b/data/resources/images/flags/sources.txt @@ -4,7 +4,7 @@ Czech.svg: https://commons.wikimedia.org/wiki/Flag_of_the_Czech_Republic.svg Danish.svg: https://commons.wikimedia.org/wiki/Flag_of_Denmark.svg Dutch.svg: https://commons.wikimedia.org/wiki/Flag_of_the_Netherlands.svg English.svg: https://commons.wikimedia.org/wiki/Flag_of_the_United_Kingdom_(1-2).svg -Finish.svg: https://commons.wikimedia.org/wiki/File:Flag_of_Finland.svg +Finnish.svg: https://commons.wikimedia.org/wiki/File:Flag_of_Finland.svg French.svg: https://commons.wikimedia.org/wiki/File:Flag_of_France.svg German.svg: https://commons.wikimedia.org/wiki/File:Flag_of_Germany.svg Greek.svg: https://commons.wikimedia.org/wiki/Flag_of_Greece.svg @@ -17,4 +17,5 @@ Polish.svg: https://commons.wikimedia.org/wiki/Flag_of_Poland.svg Portuguese.svg: https://commons.wikimedia.org/wiki/File:Flag_of_Portugal.svg Spanish.svg: https://commons.wikimedia.org/wiki/File:Flag_of_Spain.svg Swedish.svg: https://commons.wikimedia.org/wiki/File:Flag_of_Sweden.svg +Russian.svg: https://commons.wikimedia.org/wiki/File:Flag_of_Russia.svg Other.svg: https://en.wikipedia.org/wiki/File:Flag_with_question_mark.svg diff --git a/src/core/game_database.cpp b/src/core/game_database.cpp index 4e07a01b0..8ed973e14 100644 --- a/src/core/game_database.cpp +++ b/src/core/game_database.cpp @@ -138,9 +138,9 @@ static constexpr const std::array(Trait::MaxCou }}; static constexpr std::array(Language::MaxCount)> s_language_names = {{ - "Catalan", "Chinese", "Czech", "Danish", "Dutch", "English", "Finnish", - "French", "German", "Greek", "Hebrew", "Iranian", "Italian", "Japanese", - "Korean", "Norwegian", "Polish", "Portuguese", "Russian", "Spanish", "Swedish", + "Catalan", "Chinese", "Czech", "Danish", "Dutch", "English", "Finnish", "French", + "German", "Greek", "Hebrew", "Iranian", "Italian", "Japanese", "Korean", "Norwegian", + "Polish", "Portuguese", "Russian", "Spanish", "Swedish", "Turkish", }}; static constexpr const char* GAMEDB_YAML_FILENAME = "gamedb.yaml"; diff --git a/src/core/game_database.h b/src/core/game_database.h index b4b5d4753..6a17746c5 100644 --- a/src/core/game_database.h +++ b/src/core/game_database.h @@ -88,6 +88,7 @@ enum class Language : u8 Russian, Spanish, Swedish, + Turkish, MaxCount, };