Skip to content
This repository was archived by the owner on Aug 2, 2026. It is now read-only.

Commit 66d44a5

Browse files
committed
Prepare to update
1 parent 00f34da commit 66d44a5

15 files changed

Lines changed: 214 additions & 223 deletions

mod.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"geode": "5.0.0-alpha.1",
2+
"geode": "5.0.0-beta.1",
33
"gd": {
44
"win": "2.2081",
55
"android": "2.2081",
@@ -14,18 +14,18 @@
1414
"early-load": true,
1515
"dependencies": {
1616
"geode.node-ids": ">=v1.15.0",
17-
"alphalaneous.alphas_geode_utils": ">=v1.2.0",
17+
"alphalaneous.alphas_geode_utils": ">=v1.2.0-beta.2",
1818
"prevter.imageplus": {
19-
"importance": "recommended",
19+
"required": false,
2020
"version": ">=v1.0.0"
2121
},
2222
"geode.texture-loader": {
23-
"importance": "suggested",
23+
"required": false,
2424
"version": ">=v1.7.0"
2525
},
26-
"alphalaneous.pages_api": {
27-
"importance": "suggested",
28-
"version": ">=v1.4.10"
26+
"raydeeux.pages_api": {
27+
"required": false,
28+
"version": ">=v1.4.15"
2929
}
3030
},
3131
"resources": {

src/HPTCCNode.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#include "HPTCCNode.hpp"
22

3-
void HPTCCNode::resetAllFromPack(ZStringView packName) {
3+
void HPTCCNode::resetAllFromPack(std::string_view packName) {
44
auto scene = CCScene::get();
55
if (!scene) return;
66
resetChildren(packName, scene);
77
}
88

9-
void HPTCCNode::resetChildren(ZStringView packName, CCNode* child) {
9+
void HPTCCNode::resetChildren(std::string_view packName, CCNode* child) {
1010
reinterpret_cast<HPTCCNode*>(child)->resetByPack(packName);
1111
for (auto node : CCArrayExt<CCNode*>(child->getChildren())) {
1212
resetChildren(packName, node);
@@ -29,7 +29,7 @@ void HPTCCNode::enableTouch() {
2929
}
3030
}
3131

32-
void HPTCCNode::resetByPack(ZStringView packName) {
32+
void HPTCCNode::resetByPack(std::string_view packName) {
3333
auto fields = m_fields.self();
3434

3535
auto erase = [&packName] (std::vector<std::shared_ptr<HPTNode>>& vec) {
@@ -66,7 +66,7 @@ void HPTCCNode::resetByPack(ZStringView packName) {
6666
//resetByPackJson(packName);
6767
}
6868

69-
void HPTCCNode::resetByPackJson(ZStringView packName) {
69+
void HPTCCNode::resetByPackJson(std::string_view packName) {
7070
auto fields = m_fields.self();
7171

7272
auto erase = [&packName] (std::vector<matjson::Value>& vec) {

src/HPTCCNode.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include <Geode/Geode.hpp>
44
#include <Geode/modify/CCNode.hpp>
5-
#include "Geode/utils/ZStringView.hpp"
65
#include "HPTParser.hpp"
76
#include "TouchObject.hpp"
87

@@ -31,17 +30,17 @@ class $modify(HPTCCNode, CCNode) {
3130
std::vector<std::shared_ptr<UISchedule>> m_schedules;
3231
};
3332

34-
static void resetAllFromPack(ZStringView packName);
33+
static void resetAllFromPack(std::string_view packName);
3534

36-
static void resetChildren(ZStringView packName, CCNode* child);
35+
static void resetChildren(std::string_view packName, CCNode* child);
3736

3837
void setOwner(std::shared_ptr<HPTNode> node);
3938

4039
void enableTouch();
4140

42-
void resetByPack(ZStringView packName) ;
41+
void resetByPack(std::string_view packName) ;
4342

44-
void resetByPackJson(ZStringView packName);
43+
void resetByPackJson(std::string_view packName);
4544

4645
void setSchedule(std::shared_ptr<HPTNode> node);
4746

0 commit comments

Comments
 (0)