Read pakfiles from custom folders
This commit is contained in:
parent
7d0a659b37
commit
93a7771199
@ -112,6 +112,11 @@ namespace database
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_zone_file(const std::string& file)
|
||||||
|
{
|
||||||
|
return file.ends_with(".ff") || file.ends_with(".pak");
|
||||||
|
}
|
||||||
|
|
||||||
game::DB_IFileSysFile* bnet_fs_open_file_stub(game::DB_FileSysInterface* this_, int folder, const char* file)
|
game::DB_IFileSysFile* bnet_fs_open_file_stub(game::DB_FileSysInterface* this_, int folder, const char* file)
|
||||||
{
|
{
|
||||||
std::string name = file;
|
std::string name = file;
|
||||||
@ -124,7 +129,7 @@ namespace database
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (name.ends_with(".ff"))
|
if (is_zone_file(name))
|
||||||
{
|
{
|
||||||
const auto found = find_fastfile(name);
|
const auto found = find_fastfile(name);
|
||||||
if (found.has_value())
|
if (found.has_value())
|
||||||
|
Loading…
Reference in New Issue
Block a user