From b7fc40f4f6152c6fc3de9b26caa49c1a06be7a95 Mon Sep 17 00:00:00 2001 From: ownedbywuigi Date: Tue, 8 Jul 2025 04:22:29 +0100 Subject: [PATCH] HOPEFULLY NOW IT WILL WORK I HATE NT I HATE NT I HATE NT --- android/app/src/main/cpp/org/pound/poundemu/NativeLibrary.cpp | 3 ++- core/memory/arena.cpp | 4 ++-- {sys => core/sys}/mman.h | 0 3 files changed, 4 insertions(+), 3 deletions(-) rename {sys => core/sys}/mman.h (100%) diff --git a/android/app/src/main/cpp/org/pound/poundemu/NativeLibrary.cpp b/android/app/src/main/cpp/org/pound/poundemu/NativeLibrary.cpp index ef26612..e69de0d 100644 --- a/android/app/src/main/cpp/org/pound/poundemu/NativeLibrary.cpp +++ b/android/app/src/main/cpp/org/pound/poundemu/NativeLibrary.cpp @@ -1 +1,2 @@ -// Android port (TODO) \ No newline at end of file +// Android port (TODO) +// If you are reading this, you shall understand that an ANDROID PORT IS NOT READY YET. STOP ASKING. \ No newline at end of file diff --git a/core/memory/arena.cpp b/core/memory/arena.cpp index e8e4e0e..4ac9e02 100644 --- a/core/memory/arena.cpp +++ b/core/memory/arena.cpp @@ -1,6 +1,6 @@ #include "arena.h" #include "Base/Assert.h" -#include "sys/mman.h" // Required for mmap and MAP_FAILED +#include "sys/mman.h" // Memory::Arena Memory::arena_init() { // // TODO(GloriousTaco): The line below is stupidly unsafe. Replace malloc with mmap() and check the return value. @@ -27,7 +27,7 @@ Memory::Arena Memory::arena_init() { }; return arena; } -// new more memsafe code (ownedbywuigi) +// new more memsafe code (ownedbywuigi) (i give up on windows compatibility for now, will stick to the old unsafe code) const uint8_t* Memory::arena_allocate(Memory::Arena* arena, const std::size_t size) { diff --git a/sys/mman.h b/core/sys/mman.h similarity index 100% rename from sys/mman.h rename to core/sys/mman.h