From a692d122dd9fcb8052f536b82933b0d653c0c1e5 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 15 Jul 2023 16:08:15 +0200 Subject: [PATCH] Fix IFileSystem::RelativePathToFullPath parameters Argument type is a 64bit size type. --- r5dev/public/ifilesystem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/public/ifilesystem.h b/r5dev/public/ifilesystem.h index 45a6cbe1..69cbf5af 100644 --- a/r5dev/public/ifilesystem.h +++ b/r5dev/public/ifilesystem.h @@ -246,7 +246,7 @@ public: // remember it in case you add search paths with this path ID. virtual void MarkPathIDByRequestOnly(const char* pPathID, bool bRequestOnly) = 0; // converts a partial path into a full path - virtual const char* RelativePathToFullPath(const char* pFileName, const char* pPathID, char* pLocalPath, int localPathBufferSize, PathTypeFilter_t pathFilter = FILTER_NONE, PathTypeQuery_t* pPathType = NULL) = 0; + virtual const char* RelativePathToFullPath(const char* pFileName, const char* pPathID, char* pLocalPath, size_t localPathBufferSize, PathTypeFilter_t pathFilter = FILTER_NONE, PathTypeQuery_t* pPathType = NULL) = 0; #if IsGameConsole() // Given a relative path, gets the PACK file that contained this file and its offset and size. Can be used to prefetch a file to a HDD for caching reason. virtual bool GetPackFileInfoFromRelativePath(const char* pFileName, const char* pPathID, char* pPackPath, int nPackPathBufferSize, int64& nPosition, int64& nLength) = 0;