mirror of
https://github.com/stenzek/duckstation.git
synced 2026-11-16 11:04:32 +01:00
BIOS: Make GetInfoForHash() public
And it should take a const span.
This commit is contained in:
11 files changed
+20
-19
No files matched your search
@@ -27,7 +27,7 @@
|
||||
#include <mach/mach_vm.h>
|
||||
#include <mach/vm_map.h>
|
||||
#include <sys/mman.h>
|
||||
#elif !defined(__ANDROID__)
|
||||
#else
|
||||
#include <cerrno>
|
||||
#include <dlfcn.h>
|
||||
#include <fcntl.h>
|
||||
@@ -598,7 +598,7 @@ void MemMap::EndCodeWrite()
|
||||
|
||||
#endif
|
||||
|
||||
#elif !defined(__ANDROID__)
|
||||
#else
|
||||
|
||||
bool MemMap::MemProtect(void* baseaddr, size_t size, PageProtect mode)
|
||||
{
|
||||
@@ -625,6 +625,8 @@ std::string MemMap::GetFileMappingName(const char* prefix)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef __ANDROID__
|
||||
|
||||
void* MemMap::CreateSharedMemory(const char* name, size_t size, Error* error)
|
||||
{
|
||||
const bool is_anonymous = (!name || *name == 0);
|
||||
@@ -683,6 +685,8 @@ void MemMap::DeleteSharedMemory(const char* name)
|
||||
shm_unlink(name);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void* MemMap::MapSharedMemory(void* handle, size_t offset, void* baseaddr, size_t size, PageProtect mode)
|
||||
{
|
||||
const int flags = (baseaddr != nullptr) ? (MAP_SHARED | MAP_FIXED) : MAP_SHARED;
|
||||
|
||||
Reference in new issue
Block a user