summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-10-15 06:11:38 +0200
committerbunnei <bunneidev@gmail.com>2017-10-15 06:11:38 +0200
commit746c2a3ae769c6172700e4f9e10ba01fa0df4ccb (patch)
treefc17369ecf7eae3ba8567f3098223a40ab860ff4 /src/common
parenthle: Add service stubs for apm and appletOE. (diff)
downloadyuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.tar
yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.tar.gz
yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.tar.bz2
yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.tar.lz
yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.tar.xz
yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.tar.zst
yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/common_funcs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index 2e7877500..6f0604958 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -98,3 +98,11 @@ __declspec(dllimport) void __stdcall DebugBreak(void);
// This function might change the error code.
// Defined in Misc.cpp.
const char* GetLastErrorMsg();
+
+namespace Common {
+
+constexpr u32 MakeMagic(char a, char b, char c, char d) {
+ return a | b << 8 | c << 16 | d << 24;
+}
+
+} // namespace Common