diff options
| author | 2015-05-06 02:42:43 -0300 | |
|---|---|---|
| committer | 2015-05-06 23:45:06 -0300 | |
| commit | c0eaa662d47daa7a148fd63b2634ea59a559296c (patch) | |
| tree | 27acf97278304536b457a4593f9ad045564899bb /src/core/hle/shared_page.cpp | |
| parent | FileSys: De-inline Path members (diff) | |
| download | yuzu-c0eaa662d47daa7a148fd63b2634ea59a559296c.tar.gz yuzu-c0eaa662d47daa7a148fd63b2634ea59a559296c.tar.xz yuzu-c0eaa662d47daa7a148fd63b2634ea59a559296c.zip | |
Clean-up includes
Diffstat (limited to 'src/core/hle/shared_page.cpp')
| -rw-r--r-- | src/core/hle/shared_page.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/shared_page.cpp b/src/core/hle/shared_page.cpp index 94fae2551..4f227a370 100644 --- a/src/core/hle/shared_page.cpp +++ b/src/core/hle/shared_page.cpp | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <cstring> | ||
| 6 | |||
| 5 | #include "common/common_types.h" | 7 | #include "common/common_types.h" |
| 6 | #include "common/common_funcs.h" | 8 | #include "common/common_funcs.h" |
| 7 | 9 | ||
| @@ -62,7 +64,7 @@ template void Read<u16>(u16 &var, const u32 addr); | |||
| 62 | template void Read<u8>(u8 &var, const u32 addr); | 64 | template void Read<u8>(u8 &var, const u32 addr); |
| 63 | 65 | ||
| 64 | void Set3DSlider(float amount) { | 66 | void Set3DSlider(float amount) { |
| 65 | memset(&shared_page, 0, sizeof(shared_page)); | 67 | std::memset(&shared_page, 0, sizeof(shared_page)); |
| 66 | 68 | ||
| 67 | shared_page.sliderstate_3d = amount; | 69 | shared_page.sliderstate_3d = amount; |
| 68 | shared_page.ledstate_3d = (amount == 0.0f); // off when non-zero | 70 | shared_page.ledstate_3d = (amount == 0.0f); // off when non-zero |