@@ -44,10 +44,8 @@ std::string ReadVPKOriginalFile(const char* path)
44
44
return ret;
45
45
}
46
46
47
- // clang-format off
48
47
HOOK (AddSearchPathHook, AddSearchPath,
49
48
void , __fastcall, (IFileSystem * fileSystem, const char * pPath, const char * pathID, SearchPathAdd_t addType))
50
- // clang-format on
51
49
{
52
50
AddSearchPath (fileSystem, pPath, pathID, addType);
53
51
@@ -97,10 +95,8 @@ bool TryReplaceFile(const char* pPath, bool shouldCompile)
97
95
}
98
96
99
97
// force modded files to be read from mods, not cache
100
- // clang-format off
101
98
HOOK (ReadFromCacheHook, ReadFromCache,
102
99
bool , __fastcall, (IFileSystem * filesystem, char * pPath, void * result))
103
- // clang-format off
104
100
{
105
101
if (TryReplaceFile (pPath, true ))
106
102
return false ;
@@ -109,10 +105,8 @@ bool, __fastcall, (IFileSystem * filesystem, char* pPath, void* result))
109
105
}
110
106
111
107
// force modded files to be read from mods, not vpk
112
- // clang-format off
113
108
AUTOHOOK (ReadFileFromVPK, filesystem_stdio.dll + 0x5CBA0 ,
114
109
FileHandle_t, __fastcall, (VPKData* vpkInfo, uint64_t * b, char * filename))
115
- // clang-format on
116
110
{
117
111
// don't compile here because this is only ever called from OpenEx, which already compiles
118
112
if (TryReplaceFile (filename, false ))
@@ -124,10 +118,8 @@ FileHandle_t, __fastcall, (VPKData* vpkInfo, uint64_t* b, char* filename))
124
118
return ReadFileFromVPK (vpkInfo, b, filename);
125
119
}
126
120
127
- // clang-format off
128
121
AUTOHOOK (CBaseFileSystem__OpenEx, filesystem_stdio.dll + 0x15F50 ,
129
122
FileHandle_t, __fastcall, (IFileSystem* filesystem, const char * pPath, const char * pOptions, uint32_t flags, const char * pPathID, char **ppszResolvedFilename))
130
- // clang-format on
131
123
{
132
124
TryReplaceFile (pPath, true );
133
125
return CBaseFileSystem__OpenEx (filesystem, pPath, pOptions, flags, pPathID, ppszResolvedFilename);
0 commit comments