Skip to content

Commit 355a3bb

Browse files
committed
Move assets dependency from mmkay to metacore
1 parent 373e648 commit 355a3bb

File tree

6 files changed

+36
-109
lines changed

6 files changed

+36
-109
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ mod.json.schema
6666

6767
# Clang stuff
6868
.cache/
69+
include/assets.hpp

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ add_custom_command(TARGET ${COMPILE_ID} POST_BUILD
106106
COMMENT "Copy a files for ndk stack")
107107
endforeach()
108108

109-
include(${EXTERN_DIR}/includes/mmkay/shared/mmkay.cmake)
109+
include(${EXTERN_DIR}/includes/metacore/shared/assets.cmake)

include/assets.hpp

Lines changed: 0 additions & 67 deletions
This file was deleted.

qpm.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/QuestPackageManager/QPM.Package/refs/heads/main/qpm.schema.json",
32
"version": "0.1.0",
43
"sharedDir": "shared",
54
"dependenciesDir": "extern",
@@ -40,13 +39,7 @@
4039
"pwsh pull-tombstone.ps1"
4140
]
4241
},
43-
"ndk": "^27.2.12479018",
44-
"qmodIncludeDirs": [
45-
"build",
46-
"extern/libs"
47-
],
48-
"qmodIncludeFiles": [],
49-
"qmodOutput": "./RecentlyPlayed.qmod"
42+
"ndk": "^27.2.12479018"
5043
},
5144
"dependencies": [
5245
{
@@ -79,11 +72,6 @@
7972
"versionRange": "^0.18.2",
8073
"additionalData": {}
8174
},
82-
{
83-
"id": "mmkay",
84-
"versionRange": "^0.2.1",
85-
"additionalData": {}
86-
},
8775
{
8876
"id": "paper2_scotland2",
8977
"versionRange": "^4.6.1",
@@ -101,6 +89,11 @@
10189
"id": "songcore",
10290
"versionRange": "^1.1.20",
10391
"additionalData": {}
92+
},
93+
{
94+
"id": "metacore",
95+
"versionRange": "^1.0.0",
96+
"additionalData": {}
10497
}
10598
]
10699
}

qpm.shared.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,9 @@
4242
]
4343
},
4444
"ndk": "^27.2.12479018",
45-
"qmodIncludeDirs": [
46-
"build",
47-
"extern/libs"
48-
],
45+
"qmodIncludeDirs": [],
4946
"qmodIncludeFiles": [],
50-
"qmodOutput": "./RecentlyPlayed.qmod"
47+
"qmodOutput": null
5148
},
5249
"dependencies": [
5350
{
@@ -80,11 +77,6 @@
8077
"versionRange": "^0.18.2",
8178
"additionalData": {}
8279
},
83-
{
84-
"id": "mmkay",
85-
"versionRange": "^0.2.1",
86-
"additionalData": {}
87-
},
8880
{
8981
"id": "paper2_scotland2",
9082
"versionRange": "^4.6.1",
@@ -102,6 +94,11 @@
10294
"id": "songcore",
10395
"versionRange": "^1.1.20",
10496
"additionalData": {}
97+
},
98+
{
99+
"id": "metacore",
100+
"versionRange": "^1.0.0",
101+
"additionalData": {}
105102
}
106103
]
107104
},
@@ -123,14 +120,15 @@
123120
},
124121
{
125122
"dependency": {
126-
"id": "mmkay",
127-
"versionRange": "=0.2.1",
123+
"id": "rapidjson-macros",
124+
"versionRange": "=2.1.0",
128125
"additionalData": {
129126
"headersOnly": true,
130-
"branchName": "version/v0_2_1"
127+
"branchName": "version/v2_1_0",
128+
"cmake": false
131129
}
132130
},
133-
"version": "0.2.1"
131+
"version": "2.1.0"
134132
},
135133
{
136134
"dependency": {
@@ -148,18 +146,6 @@
148146
},
149147
"version": "0.4.0"
150148
},
151-
{
152-
"dependency": {
153-
"id": "rapidjson-macros",
154-
"versionRange": "=2.1.0",
155-
"additionalData": {
156-
"headersOnly": true,
157-
"branchName": "version/v2_1_0",
158-
"cmake": false
159-
}
160-
},
161-
"version": "2.1.0"
162-
},
163149
{
164150
"dependency": {
165151
"id": "conditional-dependencies",
@@ -202,6 +188,20 @@
202188
},
203189
"version": "10.0.0"
204190
},
191+
{
192+
"dependency": {
193+
"id": "metacore",
194+
"versionRange": "=1.0.0",
195+
"additionalData": {
196+
"soLink": "https://github.com/Metalit/MetaCore/releases/download/v1.0.0/libmetacore.so",
197+
"overrideSoName": "libmetacore.so",
198+
"modLink": "https://github.com/Metalit/MetaCore/releases/download/v1.0.0/MetaCore.qmod",
199+
"branchName": "version/v1_0_0",
200+
"cmake": true
201+
}
202+
},
203+
"version": "1.0.0"
204+
},
205205
{
206206
"dependency": {
207207
"id": "paper2_scotland2",

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ MAKE_HOOK_MATCH(SelectLevelCategoryViewControllerSetupHook, &GlobalNamespace::Se
1414
auto historyLevelCategoryInfo = GlobalNamespace::SelectLevelCategoryViewController::LevelCategoryInfo::New_ctor();
1515
historyLevelCategoryInfo->levelCategory = historyCategorie;
1616
historyLevelCategoryInfo->localizedKey = "";
17-
historyLevelCategoryInfo->categoryIcon = PNG_SPRITE(IncludedAssets::icon_png);
17+
historyLevelCategoryInfo->categoryIcon = PNG_SPRITE(icon);
1818

1919
// Extend allLevelCategoryinfos with our HistoryCategoryInfo
2020
auto extendedLevelCategorieInfos = Array<GlobalNamespace::SelectLevelCategoryViewController::LevelCategoryInfo *>::NewLength(5);
@@ -122,7 +122,7 @@ MAKE_HOOK_MATCH(LevelFilteringNavigationControllerUpdateSecondChildControllerCon
122122

123123
// Package our new collection in a BeatmapLevelPack and push it into the ViewController
124124
// auto collection = GlobalNamespace::CustomBeatmapLevelCollection::New_ctor(il2cpp_utils::vectorToArray(historyLevelVector));
125-
auto historySprite = PNG_SPRITE(IncludedAssets::icon_png);
125+
auto historySprite = PNG_SPRITE(icon);
126126
auto historyLevelPack = SongCore::SongLoader::CustomLevelPack::New("custom_levelPack_HLP","Recently Played", historySprite);
127127
historyLevelPack->SetLevels(historyLevelVector);
128128
auto historyLevelPackList = System::Collections::Generic::List_1<GlobalNamespace::BeatmapLevelPack*>::New_ctor();

0 commit comments

Comments
 (0)