mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-21 13:53:49 -07:00
Remove old mod loading code
This commit is contained in:
parent
00d1954636
commit
6277194c48
1 changed files with 1 additions and 27 deletions
|
@ -263,7 +263,7 @@ const char* constCameraStrings[] = {
|
||||||
OTRGlobals::OTRGlobals() {
|
OTRGlobals::OTRGlobals() {
|
||||||
std::vector<std::string> OTRFiles;
|
std::vector<std::string> OTRFiles;
|
||||||
std::string mqPath = Ship::Context::LocateFileAcrossAppDirs("oot-mq.otr", appShortName);
|
std::string mqPath = Ship::Context::LocateFileAcrossAppDirs("oot-mq.otr", appShortName);
|
||||||
if (std::filesystem::exists(mqPath)) {
|
if (std::filesystem::exists(mqPath)) {
|
||||||
OTRFiles.push_back(mqPath);
|
OTRFiles.push_back(mqPath);
|
||||||
}
|
}
|
||||||
std::string ootPath = Ship::Context::LocateFileAcrossAppDirs("oot.otr", appShortName);
|
std::string ootPath = Ship::Context::LocateFileAcrossAppDirs("oot.otr", appShortName);
|
||||||
|
@ -274,33 +274,7 @@ OTRGlobals::OTRGlobals() {
|
||||||
if (std::filesystem::exists(sohOtrPath)) {
|
if (std::filesystem::exists(sohOtrPath)) {
|
||||||
OTRFiles.push_back(sohOtrPath);
|
OTRFiles.push_back(sohOtrPath);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
std::string patchesPath = Ship::Context::LocateFileAcrossAppDirs("mods", appShortName);
|
|
||||||
std::vector<std::string> patchOTRs = {};
|
|
||||||
if (patchesPath.length() > 0 && std::filesystem::exists(patchesPath)) {
|
|
||||||
if (std::filesystem::is_directory(patchesPath)) {
|
|
||||||
for (const auto& p : std::filesystem::recursive_directory_iterator(patchesPath, std::filesystem::directory_options::follow_directory_symlink)) {
|
|
||||||
if (StringHelper::IEquals(p.path().extension().string(), ".otr") ||
|
|
||||||
StringHelper::IEquals(p.path().extension().string(), ".mpq") ||
|
|
||||||
StringHelper::IEquals(p.path().extension().string(), ".o2r") ||
|
|
||||||
StringHelper::IEquals(p.path().extension().string(), ".zip")) {
|
|
||||||
patchOTRs.push_back(p.path().generic_string());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
std::sort(patchOTRs.begin(), patchOTRs.end(), [](const std::string& a, const std::string& b) {
|
|
||||||
return std::lexicographical_compare(
|
|
||||||
a.begin(), a.end(),
|
|
||||||
b.begin(), b.end(),
|
|
||||||
[](char c1, char c2) {
|
|
||||||
return std::tolower(c1) < std::tolower(c2);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
OTRFiles.insert(OTRFiles.end(), patchOTRs.begin(), patchOTRs.end());
|
|
||||||
*/
|
|
||||||
std::unordered_set<uint32_t> ValidHashes = {
|
std::unordered_set<uint32_t> ValidHashes = {
|
||||||
OOT_PAL_MQ,
|
OOT_PAL_MQ,
|
||||||
OOT_NTSC_JP_MQ,
|
OOT_NTSC_JP_MQ,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue