mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
cmake: Detect features at compile time
Instead of relying on manually passed down flags from CMake, we now have ppsspp_config.h file to create the platform defines for us. This improves support for multiplatform builds (such as iOS).
This commit is contained in:
1 parent
912a58d6c8
commit
8c3552de74
70 files changed
+502
-261
No files matched your search
+3
-2
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "ppsspp_config.h"
|
||||
#include "base/mutex.h"
|
||||
#include "Common/Common.h"
|
||||
#include "Common/MemoryUtil.h"
|
||||
@@ -118,7 +119,7 @@ static MemoryView views[] =
|
||||
static const int num_views = sizeof(views) / sizeof(MemoryView);
|
||||
|
||||
inline static bool CanIgnoreView(const MemoryView &view) {
|
||||
#ifdef _ARCH_32
|
||||
#if PPSSPP_ARCH(32BIT)
|
||||
// Basically, 32-bit platforms can ignore views that are masked out anyway.
|
||||
return (view.flags & MV_MIRROR_PREVIOUS) && (view.virtual_address & ~MEMVIEW32_MASK) != 0;
|
||||
#else
|
||||
@@ -175,7 +176,7 @@ static bool Memory_TryBase(u32 flags) {
|
||||
if (!*view.out_ptr_low)
|
||||
goto bail;
|
||||
}
|
||||
#if defined(_ARCH_64)
|
||||
#if PPSSPP_ARCH(64BIT)
|
||||
*view.out_ptr = (u8*)g_arena.CreateView(
|
||||
position, view.size, base + view.virtual_address);
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user