summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/GameFile.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-28 07:18:10 -0400
committerLioncash <mathew1800@gmail.com>2019-05-28 07:27:41 -0400
commitb4470ad4c215aad3765eb6acfc739548fdc53064 (patch)
tree43415ba19091b1e099cce61e59b7dbdaeb819c8d /Source/Core/UICommon/GameFile.cpp
parent8229ada9223d0fa03e3f26401ef5b43d5b0f89c0 (diff)
UICommon/GameFile: Make COVER_URL a plain C string
Same behavior but doesn't take up 8 bytes in the executable to store a pointer. While we're at it, move it into an anonymous namespace within the UICommon namespace.
Diffstat (limited to 'Source/Core/UICommon/GameFile.cpp')
-rw-r--r--Source/Core/UICommon/GameFile.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/Core/UICommon/GameFile.cpp b/Source/Core/UICommon/GameFile.cpp
index 87a390a1e1..4e5ad6f9c2 100644
--- a/Source/Core/UICommon/GameFile.cpp
+++ b/Source/Core/UICommon/GameFile.cpp
@@ -39,13 +39,15 @@
#include "DiscIO/Volume.h"
#include "DiscIO/WiiSaveBanner.h"
-constexpr const char* COVER_URL = "https://art.gametdb.com/wii/cover/%s/%s.png";
-
namespace UICommon
{
-static const std::string EMPTY_STRING;
+namespace
+{
+constexpr char COVER_URL[] = "https://art.gametdb.com/wii/cover/%s/%s.png";
+
+const std::string EMPTY_STRING;
-static bool UseGameCovers()
+bool UseGameCovers()
{
// We ifdef this out on Android because accessing the config before emulation start makes us crash.
// The Android GUI handles covers in Java anyway, so this doesn't make us lose any functionality.
@@ -55,6 +57,7 @@ static bool UseGameCovers()
return Config::Get(Config::MAIN_USE_GAME_COVERS);
#endif
}
+} // Anonymous namespace
DiscIO::Language GameFile::GetConfigLanguage() const
{