diff options
author | bunnei <bunneidev@gmail.com> | 2019-11-05 22:55:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-05 22:55:11 +0100 |
commit | 4dc068a90c58e6204173af20f1a6ef29b48ddb28 (patch) | |
tree | 16d0f4aa4c4a11222c6950b3ad60e7d1d9905036 /src/core/hle/service | |
parent | Merge pull request #3059 from FearlessTobi/stub-am-commands (diff) | |
parent | common_func: Use std::array for INSERT_PADDING_* macros. (diff) | |
download | yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar.gz yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar.bz2 yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar.lz yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar.xz yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar.zst yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.zip |
Diffstat (limited to 'src/core/hle/service')
-rw-r--r-- | src/core/hle/service/am/applets/error.cpp | 11 | ||||
-rw-r--r-- | src/core/hle/service/vi/vi.cpp | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/core/hle/service/am/applets/error.cpp b/src/core/hle/service/am/applets/error.cpp index a7db26725..eab0d42c9 100644 --- a/src/core/hle/service/am/applets/error.cpp +++ b/src/core/hle/service/am/applets/error.cpp @@ -20,9 +20,9 @@ namespace Service::AM::Applets { struct ShowError { u8 mode; bool jump; - INSERT_PADDING_BYTES(4); + INSERT_UNION_PADDING_BYTES(4); bool use_64bit_error_code; - INSERT_PADDING_BYTES(1); + INSERT_UNION_PADDING_BYTES(1); u64 error_code_64; u32 error_code_32; }; @@ -32,7 +32,7 @@ static_assert(sizeof(ShowError) == 0x14, "ShowError has incorrect size."); struct ShowErrorRecord { u8 mode; bool jump; - INSERT_PADDING_BYTES(6); + INSERT_UNION_PADDING_BYTES(6); u64 error_code_64; u64 posix_time; }; @@ -41,7 +41,7 @@ static_assert(sizeof(ShowErrorRecord) == 0x18, "ShowErrorRecord has incorrect si struct SystemErrorArg { u8 mode; bool jump; - INSERT_PADDING_BYTES(6); + INSERT_UNION_PADDING_BYTES(6); u64 error_code_64; std::array<char, 8> language_code; std::array<char, 0x800> main_text; @@ -52,7 +52,7 @@ static_assert(sizeof(SystemErrorArg) == 0x1018, "SystemErrorArg has incorrect si struct ApplicationErrorArg { u8 mode; bool jump; - INSERT_PADDING_BYTES(6); + INSERT_UNION_PADDING_BYTES(6); u32 error_code; std::array<char, 8> language_code; std::array<char, 0x800> main_text; @@ -65,6 +65,7 @@ union Error::ErrorArguments { ShowErrorRecord error_record; SystemErrorArg system_error; ApplicationErrorArg application_error; + std::array<u8, 0x1018> raw{}; }; namespace { diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index 199b30635..611cecc20 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -45,7 +45,7 @@ struct DisplayInfo { /// Whether or not the display has a limited number of layers. u8 has_limited_layers{1}; - INSERT_PADDING_BYTES(7){}; + INSERT_PADDING_BYTES(7); /// Indicates the total amount of layers supported by the display. /// @note This is only valid if has_limited_layers is set. |