From 93a7771199a623d0f507dd9a53c5cc0b7ba5a0b5 Mon Sep 17 00:00:00 2001 From: fed <58637860+fedddddd@users.noreply.github.com> Date: Mon, 5 Dec 2022 00:42:10 +0100 Subject: [PATCH] Read pakfiles from custom folders --- src/client/component/database.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/client/component/database.cpp b/src/client/component/database.cpp index 7089a9e0..441f91aa 100644 --- a/src/client/component/database.cpp +++ b/src/client/component/database.cpp @@ -112,6 +112,11 @@ namespace database 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) { 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); if (found.has_value())