summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-09-30 05:02:48 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-09-30 05:02:48 +0200
commit57722fb192007b2c1befed33dfc6b0dbbdcfeb8a (patch)
tree762a87962f2b6adce53375394e7dd52bc2179252
parentMerge pull request #1174 from bunnei/vs2015 (diff)
downloadyuzu-57722fb192007b2c1befed33dfc6b0dbbdcfeb8a.tar
yuzu-57722fb192007b2c1befed33dfc6b0dbbdcfeb8a.tar.gz
yuzu-57722fb192007b2c1befed33dfc6b0dbbdcfeb8a.tar.bz2
yuzu-57722fb192007b2c1befed33dfc6b0dbbdcfeb8a.tar.lz
yuzu-57722fb192007b2c1befed33dfc6b0dbbdcfeb8a.tar.xz
yuzu-57722fb192007b2c1befed33dfc6b0dbbdcfeb8a.tar.zst
yuzu-57722fb192007b2c1befed33dfc6b0dbbdcfeb8a.zip
-rw-r--r--src/core/hle/service/cfg/cfg.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/hle/service/cfg/cfg.h b/src/core/hle/service/cfg/cfg.h
index 231528fd6..fc2a16a04 100644
--- a/src/core/hle/service/cfg/cfg.h
+++ b/src/core/hle/service/cfg/cfg.h
@@ -41,8 +41,9 @@ struct SaveConfigBlockEntry {
u16 flags; ///< The flags of the block, possibly used for access control
};
-// TODO(Link Mauve): use a constexpr once MSVC starts supporting it.
-#define C(code) (u16)((code)[0] | ((code)[1] << 8))
+static constexpr u16 C(const char code[2]) {
+ return code[0] | (code[1] << 8);
+}
static const std::array<u16, 187> country_codes = {{
0, C("JP"), 0, 0, 0, 0, 0, 0, // 0-7
@@ -71,8 +72,6 @@ static const std::array<u16, 187> country_codes = {{
C("SM"), C("VA"), C("BM") // 184-186
}};
-#undef C
-
/**
* CFG::GetCountryCodeString service function
* Inputs: