mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-26 07:27:18 +00:00
Add backwards compatibility with servers using previous setup method
* MasterServer will nolonger require cdclient.fdb * Added support for packed/unpacked clients not requiring .fdb file if .sqlite exsits
This commit is contained in:
parent
416021c208
commit
9d62a8cd0b
@ -26,11 +26,11 @@ AssetManager::AssetManager(const std::string& path) {
|
|||||||
|
|
||||||
m_RootPath = (m_Path / ".." / "..");
|
m_RootPath = (m_Path / ".." / "..");
|
||||||
m_ResPath = m_Path;
|
m_ResPath = m_Path;
|
||||||
} else if (std::filesystem::exists(m_Path / "res" / "cdclient.fdb") && !std::filesystem::exists(m_Path / "res" / "pack")) {
|
} else if ((std::filesystem::exists(m_Path / "res" / "cdclient.fdb") || std::filesystem::exists(m_Path / "res" / "CDServer.sqlite")) && !std::filesystem::exists(m_Path / "res" / "pack")) {
|
||||||
m_AssetBundleType = eAssetBundleType::Unpacked;
|
m_AssetBundleType = eAssetBundleType::Unpacked;
|
||||||
|
|
||||||
m_ResPath = (m_Path / "res");
|
m_ResPath = (m_Path / "res");
|
||||||
} else if (std::filesystem::exists(m_Path / "cdclient.fdb") && !std::filesystem::exists(m_Path / "pack")) {
|
} else if ((std::filesystem::exists(m_Path / "cdclient.fdb") || std::filesystem::exists(m_Path / "CDServer.sqlite")) && !std::filesystem::exists(m_Path / "pack")) {
|
||||||
m_AssetBundleType = eAssetBundleType::Unpacked;
|
m_AssetBundleType = eAssetBundleType::Unpacked;
|
||||||
|
|
||||||
m_ResPath = m_Path;
|
m_ResPath = m_Path;
|
||||||
|
Loading…
Reference in New Issue
Block a user