diff options
| author | 2017-10-15 00:11:38 -0400 | |
|---|---|---|
| committer | 2017-10-15 00:11:38 -0400 | |
| commit | 746c2a3ae769c6172700e4f9e10ba01fa0df4ccb (patch) | |
| tree | fc17369ecf7eae3ba8567f3098223a40ab860ff4 /src/common | |
| parent | hle: Add service stubs for apm and appletOE. (diff) | |
| download | yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.tar.gz yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.tar.xz yuzu-746c2a3ae769c6172700e4f9e10ba01fa0df4ccb.zip | |
core: Refactor MakeMagic usage and remove dead code.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/common_funcs.h | 8 |
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); | |||
| 98 | // This function might change the error code. | 98 | // This function might change the error code. |
| 99 | // Defined in Misc.cpp. | 99 | // Defined in Misc.cpp. |
| 100 | const char* GetLastErrorMsg(); | 100 | const char* GetLastErrorMsg(); |
| 101 | |||
| 102 | namespace Common { | ||
| 103 | |||
| 104 | constexpr u32 MakeMagic(char a, char b, char c, char d) { | ||
| 105 | return a | b << 8 | c << 16 | d << 24; | ||
| 106 | } | ||
| 107 | |||
| 108 | } // namespace Common | ||