diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-08-24 00:32:31 +0100 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-08-25 21:32:55 +0200 |
commit | 46bed8d09f32360377350d71816a76abdfbf2c7c (patch) | |
tree | 7feedae4910dbfe0e53d26ea1e00c4616d2c1850 /NorthstarDedicatedTest/filesystem.h | |
parent | a97f1f07bb5aa31629cd87023e09669eb4bf1fe9 (diff) | |
download | NorthstarLauncher-46bed8d09f32360377350d71816a76abdfbf2c7c.tar.gz NorthstarLauncher-46bed8d09f32360377350d71816a76abdfbf2c7c.zip |
Adjust folder structure (#242)v1.9.5-rc1v1.9.5
* Adjust folder structure
* change launcher directory name
Diffstat (limited to 'NorthstarDedicatedTest/filesystem.h')
-rw-r--r-- | NorthstarDedicatedTest/filesystem.h | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/NorthstarDedicatedTest/filesystem.h b/NorthstarDedicatedTest/filesystem.h deleted file mode 100644 index 960c2836..00000000 --- a/NorthstarDedicatedTest/filesystem.h +++ /dev/null @@ -1,74 +0,0 @@ -#pragma once -#include "sourceinterface.h" - -// taken from ttf2sdk -typedef void* FileHandle_t; - -#pragma pack(push, 1) -struct VPKFileEntry -{ - char* directory; - char* filename; - char* extension; - unsigned char unknown[0x38]; -}; -#pragma pack(pop) - -#pragma pack(push, 1) -struct VPKData -{ - unsigned char unknown[5]; - char path[255]; - unsigned char unknown2[0x134]; - int32_t numEntries; - unsigned char unknown3[12]; - VPKFileEntry* entries; -}; -#pragma pack(pop) - -enum SearchPathAdd_t -{ - PATH_ADD_TO_HEAD, // First path searched - PATH_ADD_TO_TAIL, // Last path searched -}; - -class CSearchPath -{ - public: - unsigned char unknown[0x18]; - const char* debugPath; -}; - -class IFileSystem -{ - public: - struct VTable - { - void* unknown[10]; - void (*AddSearchPath)(IFileSystem* fileSystem, const char* pPath, const char* pathID, SearchPathAdd_t addType); - void* unknown2[84]; - bool (*ReadFromCache)(IFileSystem* fileSystem, const char* path, void* result); - void* unknown3[15]; - VPKData* (*MountVPK)(IFileSystem* fileSystem, const char* vpkPath); - }; - - struct VTable2 - { - int (*Read)(IFileSystem::VTable2** fileSystem, void* pOutput, int size, FileHandle_t file); - void* unknown[1]; - 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]; - bool (*FileExists)(IFileSystem::VTable2** fileSystem, const char* pFileName, const char* pPathID); - }; - - VTable* m_vtable; - VTable2* m_vtable2; -}; - -std::string ReadVPKFile(const char* path); -std::string ReadVPKOriginalFile(const char* path); - -void InitialiseFilesystem(HMODULE baseAddress); -extern SourceInterface<IFileSystem>* g_Filesystem;
\ No newline at end of file |