Merge branch 'fedddddd:develop' into develop

This commit is contained in:
Vlad 2022-12-05 19:31:01 +03:00 committed by GitHub
commit 79c195e7b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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())