[*] Added string store container to NamedMapRequest

This commit is contained in:
Reece Wilson 2024-12-10 02:33:44 +00:00
parent b1329381e4
commit 4e6d40d460
6 changed files with 6 additions and 10 deletions

View File

@ -21,6 +21,7 @@ namespace Aurora::IO::FS
AuOptional<EFileAdvisoryLockLevel> * pOpteAdvisoryLevel {};
AuOptional<bool> * pOptbLockEntireFile {};
AuIO::IIOHandle * pHandle {};
AuString stringStore;
};
struct IPlatformFS

View File

@ -339,14 +339,13 @@ namespace Aurora::IO::FS
AuOptional<bool> optbLockEntireFile)
{
bool bHooked {};
NamedMapRequest req;
AuROString path2 { path };
auto pReturn = _new MemoryMappedFile();
SysCheckNotNullMemory(pReturn, {});
{
NamedMapRequest req;
req.pPath = &path2;
req.pOpteMode = &opteMode;
req.pOptuFileMapOffset = &optuFileMapOffset;

View File

@ -41,6 +41,7 @@ namespace Aurora::Process
AuFS::EFileOpenMode mode,
AuFS::EFileAdvisoryLockLevel sectionLock)
{
AuFS::NamedMapRequest req;
AuROString path2 { str };
bool bHooked {};
@ -52,8 +53,6 @@ namespace Aurora::Process
}
{
AuFS::NamedMapRequest req;
AuOptional<AuUInt64> optOffset = uOffset;
AuOptional<AuUInt64> optLength = uLength;
AuOptional<AuFS::EFileOpenMode> opteMode = mode;

View File

@ -144,6 +144,7 @@ namespace Aurora::Process
Aurora::IO::FS::EFileOpenMode mode,
Aurora::IO::FS::EFileAdvisoryLockLevel sectionLock)
{
AuFS::NamedMapRequest req;
AuROString path2 { str };
bool bHooked {};
@ -155,8 +156,6 @@ namespace Aurora::Process
}
{
AuFS::NamedMapRequest req;
AuOptional<AuUInt64> optOffset = uOffset;
AuOptional<AuUInt64> optLength = uLength;
AuOptional<AuFS::EFileOpenMode> opteMode = mode;

View File

@ -311,6 +311,7 @@ namespace Aurora::Process
Aurora::IO::FS::EFileOpenMode mode,
Aurora::IO::FS::EFileAdvisoryLockLevel sectionLock)
{
AuFS::NamedMapRequest req;
AuROString path2 { str };
bool bHooked {};
@ -322,8 +323,6 @@ namespace Aurora::Process
}
{
AuFS::NamedMapRequest req;
AuOptional<AuUInt64> optOffset = uOffset ;
AuOptional<AuUInt64> optLength = uLength ;
AuOptional<AuFS::EFileOpenMode> opteMode = mode ;

View File

@ -176,6 +176,7 @@ namespace Aurora::Process
Aurora::IO::FS::EFileOpenMode mode,
Aurora::IO::FS::EFileAdvisoryLockLevel sectionLock)
{
AuFS::NamedMapRequest req;
AuROString path2 { str };
bool bHooked {};
@ -187,8 +188,6 @@ namespace Aurora::Process
}
{
AuFS::NamedMapRequest req;
AuOptional<AuUInt64> optOffset = uOffset;
AuOptional<AuUInt64> optLength = uLength;
AuOptional<AuFS::EFileOpenMode> opteMode = mode;