aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/filesystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/filesystem.h')
-rw-r--r--NorthstarDLL/filesystem.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/NorthstarDLL/filesystem.h b/NorthstarDLL/filesystem.h
index 6015c6a5..c326b419 100644
--- a/NorthstarDLL/filesystem.h
+++ b/NorthstarDLL/filesystem.h
@@ -59,7 +59,8 @@ class IFileSystem
FileHandle_t (*Open)(
IFileSystem::VTable2** fileSystem, const char* pFileName, const char* pOptions, const char* pathID, int64_t unknown);
void (*Close)(IFileSystem* fileSystem, FileHandle_t file);
- void* unknown2[6];
+ long long (*Seek)(IFileSystem::VTable2** fileSystem, FileHandle_t file, long long offset, long long whence);
+ void* unknown2[5];
bool (*FileExists)(IFileSystem::VTable2** fileSystem, const char* pFileName, const char* pPathID);
};
@@ -67,8 +68,11 @@ class IFileSystem
VTable2* m_vtable2;
};
-std::string ReadVPKFile(const char* path);
-std::string ReadVPKOriginalFile(const char* path);
+// use the R2 namespace for game funcs
+namespace R2
+{
+ extern SourceInterface<IFileSystem>* g_pFilesystem;
-void InitialiseFilesystem(HMODULE baseAddress);
-extern SourceInterface<IFileSystem>* g_Filesystem;
+ std::string ReadVPKFile(const char* path);
+ std::string ReadVPKOriginalFile(const char* path);
+} // namespace R2