Skip to content

Commit 1747160

Browse files
committed
Fixes
1 parent de9a1ff commit 1747160

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2.0.19
2+
- Fixed a bug that caused UI modifications to not actually modify the UI haha
3+
14
# 2.0.18
25
- Performance Improvements
36
- Bug fixes

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"mac": "2.2074",
77
"ios": "2.2074"
88
},
9-
"version": "v2.0.18",
9+
"version": "v2.0.19",
1010
"id": "alphalaneous.happy_textures",
1111
"name": "Happy Textures :3",
1212
"developer": "Alphalaneous",

src/HPTParser.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ void HPTParser::setupParser() {
993993

994994
registerCommand("play-sound", [] (CCNode* node, std::shared_ptr<HPTNode> hptNode, const std::vector<std::string_view>& args) {
995995
if (args.empty()) return;
996-
log::info("attr: {}", hptNode->attributes);
996+
log::debug("attr: {}", hptNode->attributes);
997997

998998
float speed = numFromString<float>(hptNode->attributes["speed"]).unwrapOr(1);
999999
float volume = numFromString<float>(hptNode->attributes["volume"]).unwrapOr(1);
@@ -1243,10 +1243,10 @@ void HPTParser::handleCommand(std::shared_ptr<HPTNode> node, std::string_view sr
12431243

12441244
skipWhitespace(src, pos);
12451245
if (matchChar(src, pos, ':')) {
1246-
log::info("here");
1246+
log::debug("here");
12471247
skipWhitespace(src, pos);
12481248
if (matchChar(src, pos, '{')) {
1249-
log::info("skip? {}", child->typeDef.skipParsing);
1249+
log::debug("skip? {}", child->typeDef.skipParsing);
12501250
parseBlock(child, src, pos, parentNode);
12511251
node->children.push_back(child);
12521252
}
@@ -1326,7 +1326,7 @@ void HPTParser::handleAttribute(std::shared_ptr<HPTNode> node, std::string_view
13261326
} else {
13271327
std::string orig = parseValue(node, src, pos);
13281328
node->attributes.emplace(key, orig);
1329-
log::info("orig: {}", orig);
1329+
log::debug("orig: {}", orig);
13301330
if (node->targetNode) applyAttribute(node, key, orig);
13311331
}
13321332
}

src/NodeModding.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class $modify(CCDictionary) {
3030

3131
static std::unordered_map<CCObject*, uintptr_t> s_nodeVTables;
3232

33-
static bool checkNodeValidity(CCNode* node) {
33+
static bool checkNodeValidity(CCObject* node) {
3434
auto ret = *(uintptr_t*)node == s_nodeVTables[node];
3535
s_nodeVTables.erase(node);
3636
return ret;
@@ -70,7 +70,6 @@ class $modify(HTCCObject, CCObject) {
7070

7171
if (isNode(this)) {
7272
MyCCNode* node = reinterpret_cast<MyCCNode*>(this);
73-
if (!checkNodeValidity(node)) return CCObject::autorelease();
7473

7574
auto fields = node->m_fields.self();
7675
if (!fields->m_modified) {

0 commit comments

Comments
 (0)