Skip to content

Commit

Permalink
Update Utils.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous committed Dec 26, 2024
1 parent 6cddd17 commit 89d0e6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ namespace Utils {

static std::vector<std::string> getActivePacks() {

if (!UIModding::get()->activePackCache.empty()) return UIModding::get()->activePackCache;
//if (!UIModding::get()->activePackCache.empty()) return UIModding::get()->activePackCache;

Mod* textureLoader = Loader::get()->getLoadedMod("geode.texture-loader");
if (textureLoader) {
//Mod* textureLoader = Loader::get()->getLoadedMod("geode.texture-loader");
//if (textureLoader) {
/*for (matjson::Value value : textureLoader->getSavedValue<std::vector<matjson::Value>>("applied")) {
if (value.isObject() && value.contains("path") && value["path"].isString()) {
std::string path = value["path"].asString().unwrapOr("");
Expand All @@ -195,8 +195,8 @@ namespace Utils {
}*/
}

std::string resourcesDir = fmt::format("{}{}", CCFileUtils::sharedFileUtils()->getWritablePath2(), "/Resources/");
UIModding::get()->activePackCache.push_back(resourcesDir);
//std::string resourcesDir = fmt::format("{}{}", CCFileUtils::sharedFileUtils()->getWritablePath2(), "/Resources/");
//UIModding::get()->activePackCache.push_back(resourcesDir);

return UIModding::get()->activePackCache;
}
Expand Down

0 comments on commit 89d0e6f

Please sign in to comment.