From 020423917013baa1ddaec8d090cc971f9df8f67d Mon Sep 17 00:00:00 2001 From: Kronos2308 Date: Sun, 14 Apr 2024 06:42:32 +0100 Subject: [PATCH] test --- include/nspmini/install/pfs0.hpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/nspmini/install/pfs0.hpp b/include/nspmini/install/pfs0.hpp index ed0c8b1..5dc0959 100644 --- a/include/nspmini/install/pfs0.hpp +++ b/include/nspmini/install/pfs0.hpp @@ -19,7 +19,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ - #pragma once #include @@ -32,7 +31,7 @@ namespace tin::install u64 fileSize; u32 stringTableOffset; u32 padding; - } PACKED; + }; static_assert(sizeof(PFS0FileEntry) == 0x18, "PFS0FileEntry must be 0x18"); @@ -42,7 +41,12 @@ namespace tin::install u32 numFiles; u32 stringTableSize; u32 reserved; - } PACKED; + }; static_assert(sizeof(PFS0BaseHeader) == 0x10, "PFS0BaseHeader must be 0x10"); -} \ No newline at end of file +} + +// Lugar donde se usan las estructuras +#pragma pack(push, 1) +// Código que usa las estructuras empaquetadas +#pragma pack(pop)