* Added support for sending loader paths through GetFullFilename logic

[CL 35909987 by henrik karlsson in ue5-main branch]
This commit is contained in:
henrik karlsson
2024-08-29 19:28:38 -04:00
parent a762db450d
commit 8d98ff6120
7 changed files with 44 additions and 8 deletions
@@ -248,7 +248,7 @@ namespace uba
return findIt->second;
}
void Rpc_GetFullFileName(const tchar*& path, u64& pathLen, StringBufferBase& tempBuf, bool useVirtualName)
void Rpc_GetFullFileName(const tchar*& path, u64& pathLen, StringBufferBase& tempBuf, bool useVirtualName, const tchar* const* loaderPaths)
{
StringKey fileNameKey;
if (IsAbsolutePath(path))
@@ -269,6 +269,9 @@ namespace uba
writer.WriteByte(MessageType_GetFullFileName);
writer.WriteString(path);
writer.WriteStringKey(fileNameKey);
if (loaderPaths)
for (auto i=loaderPaths; *i; ++i)
writer.WriteString(*i);
writer.Flush();
BinaryReader reader;
reader.ReadString(tempBuf);
@@ -64,7 +64,7 @@ namespace uba
void Rpc_UpdateCloseHandle(const tchar* handleName, u32 closeId, bool deleteOnClose, const tchar* newName, u64 mappingHandle, u64 mappingWritten, bool success);
void Rpc_UpdateTables();
u32 Rpc_GetEntryOffset(const StringKey& entryNameKey, const tchar* entryName, u64 entryNameLen, bool checkIfDir = false);
void Rpc_GetFullFileName(const tchar*& path, u64& pathLen, StringBufferBase& tempBuf, bool useVirtualName);
void Rpc_GetFullFileName(const tchar*& path, u64& pathLen, StringBufferBase& tempBuf, bool useVirtualName, const tchar* const* loaderPaths = nullptr);
struct DirHash
{