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