aboutsummaryrefslogtreecommitdiff
path: root/src/common/common_funcs.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-10-15 00:11:38 -0400
committerbunnei <bunneidev@gmail.com>2017-10-15 00:11:38 -0400
commit5e11c12766b9a64c6369231b3c3efb71b40b66aa (patch)
treefc17369ecf7eae3ba8567f3098223a40ab860ff4 /src/common/common_funcs.h
parent9ce5a90aa650d2372738fd8df0a9ef0a869b448c (diff)
core: Refactor MakeMagic usage and remove dead code.
Diffstat (limited to 'src/common/common_funcs.h')
-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 2e7877500d..6f06049581 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