mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-17 02:00:36 +02:00
DiskCache: use memory-mapped IO for reads when possible
On Wine, use a unixlib call to get a quality mapping that can track a growing file.
This commit is contained in:
1 parent
0814780c2f
commit
2a82f58195
12 files changed
+139
-8
No files matched your search
@@ -11,6 +11,7 @@ $end_info$
|
||||
#include <FEXCore/Core/SignalDelegator.h>
|
||||
#include <FEXCore/Core/Context.h>
|
||||
#include <FEXCore/Core/CoreState.h>
|
||||
#include <FEXCore/Core/DiskCacheFileMapper.h>
|
||||
#include <FEXCore/Debug/InternalThreadState.h>
|
||||
#include <FEXCore/HLE/SyscallHandler.h>
|
||||
#include <FEXCore/Config/Config.h>
|
||||
@@ -606,6 +607,9 @@ NTSTATUS ProcessInit() {
|
||||
|
||||
FEX::Windows::Allocator::SetupHooks(NtDll);
|
||||
FEX::Windows::UnixLib::Init(NtDll);
|
||||
if (FEX::Windows::UnixLib::Available()) {
|
||||
FEXCore::DiskCache::SetFileMapper(FEX::Windows::UnixLib::MapFile);
|
||||
}
|
||||
|
||||
{
|
||||
auto HostFeatures = FEX::Windows::CPUFeatures::FetchHostFeatures(IsWine, FEXCore::HostFeatures::HostTypeEnum::Arm64ec);
|
||||
|
||||
Reference in new issue
Block a user