Fix x11 header issue and unsequenced warning

This commit is contained in:
Mr-Wiseguy 2026-01-01 17:39:31 -05:00
parent a2688d2558
commit ae5e92303f
2 changed files with 12 additions and 4 deletions

View file

@ -13,6 +13,9 @@
#include "recomp.h"
// Remove X11 define
#undef Bool
namespace recomp {
namespace config {

View file

@ -40,11 +40,16 @@ bool read_u32(std::span<const uint8_t> patch_data, size_t& offset, uint32_t& num
return false;
}
uint8_t byte0 = patch_data[offset++];
uint8_t byte1 = patch_data[offset++];
uint8_t byte2 = patch_data[offset++];
uint8_t byte3 = patch_data[offset++];
number_out =
(uint32_t(patch_data[offset++]) << 0) |
(uint32_t(patch_data[offset++]) << 8) |
(uint32_t(patch_data[offset++]) << 16) |
(uint32_t(patch_data[offset++]) << 24);
(uint32_t(byte0) << 0) |
(uint32_t(byte1) << 8) |
(uint32_t(byte2) << 16) |
(uint32_t(byte3) << 24);
return true;
}