Skip to content

Commit

Permalink
Oops, real fix for $
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphalaneous authored Oct 18, 2024
1 parent edf4640 commit 3c1ea62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/UIModding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1463,8 +1463,10 @@ void UIModding::handleModifications(CCNode* node, matjson::Object nodeObject) {

void UIModding::doUICheck(CCNode* node) {

std::string path = "ui/" + node->getID() + ".json"
std::replace(path.begin(), path.end(), '/', '$');
std::string nodeID = node->getID();
std::replace(nodeID.begin(), nodeID.end(), '/', '$');
std::string path = "ui/" + nodeID->getID() + ".json"


unsigned long fileSize = 0;
unsigned char* buffer = CCFileUtils::sharedFileUtils()->getFileData(path.c_str(), "rb", &fileSize);
Expand Down

0 comments on commit 3c1ea62

Please sign in to comment.