Skip to content

Commit

Permalink
Fix mirrored note alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
rcelyte committed Aug 29, 2022
1 parent 2fcd4ab commit 3c89e3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $(OBJDIR)/%.cpp.o: %.cpp extern makefile | ndk
.obj/mod.json: extern
@echo "[printf $(notdir $@)]"
@mkdir -p "$(@D)"
printf "{\n\t\"\$$schema\":\"https://raw.githubusercontent.com/Lauriethefish/QuestPatcher.QMod/main/QuestPatcher.QMod/Resources/qmod.schema.json\",\n\t\"_QPVersion\": \"0.1.1\",\n\t\"name\": \"Mapping Extensions\",\n\t\"id\": \"MappingExtensions\",\n\t\"author\": \"StackDoubleFlow, rxzz0, rcelyte\",\n\t\"version\": \"0.21.2\",\n\t\"coverImage\": \"cover.png\",\n\t\"packageId\": \"com.beatgames.beatsaber\",\n\t\"packageVersion\": \"1.24.0\",\n\t\"description\": \"This adds a host of new things you can do with your maps as a mapper, and allows you to play said maps as a player. An update of the port of the PC original mod by Kyle 1413. Previously maintained by zoller27osu.\",\n\t\"modFiles\": [\n\t\t\"libmappingextensions.so\"\n\t],\n\t\"libraryFiles\": [\n\t\t\"$(notdir $(wildcard extern/libs/libbeatsaber-hook*.so))\"\n\t]\n}" > .obj/mod.json
printf "{\n\t\"\$$schema\":\"https://raw.githubusercontent.com/Lauriethefish/QuestPatcher.QMod/main/QuestPatcher.QMod/Resources/qmod.schema.json\",\n\t\"_QPVersion\": \"0.1.1\",\n\t\"name\": \"Mapping Extensions\",\n\t\"id\": \"MappingExtensions\",\n\t\"author\": \"StackDoubleFlow, rxzz0, rcelyte\",\n\t\"version\": \"0.21.3\",\n\t\"coverImage\": \"cover.png\",\n\t\"packageId\": \"com.beatgames.beatsaber\",\n\t\"packageVersion\": \"1.24.0\",\n\t\"description\": \"This adds a host of new things you can do with your maps as a mapper, and allows you to play said maps as a player. An update of the port of the PC original mod by Kyle 1413. Previously maintained by zoller27osu.\",\n\t\"modFiles\": [\n\t\t\"libmappingextensions.so\"\n\t],\n\t\"libraryFiles\": [\n\t\t\"$(notdir $(wildcard extern/libs/libbeatsaber-hook*.so))\"\n\t]\n}" > .obj/mod.json

MappingExtensions.qmod: libmappingextensions.so .obj/mod.json
@echo "[zip $@]"
Expand Down
2 changes: 1 addition & 1 deletion qpm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"info": {
"name": "MappingExtensions",
"id": "MappingExtensions",
"version": "0.21.2",
"version": "0.21.3",
"url": null,
"additionalData": {}
},
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ MAKE_HOOK_MATCH(NoteCutDirectionExtensions_Mirrored, &NoteCutDirectionExtensions

static inline bool MirrorPrecisionLineIndex(int32_t *lineIndex) {
if(*lineIndex >= 1000 || *lineIndex <= -1000) {
*lineIndex = ((*lineIndex < 4000) ? 5000 : 3000) - *lineIndex;
*lineIndex = ((*lineIndex > -1000 && *lineIndex < 4000) ? 5000 : 3000) - *lineIndex;
return true;
}
if(*lineIndex > 3 || *lineIndex < 0) {
Expand Down Expand Up @@ -567,7 +567,7 @@ MAKE_HOOK_MATCH(StaticBeatmapObjectSpawnMovementData_LineYPosForLineLayer, &Stat

extern "C" DL_EXPORT void setup(ModInfo& info) {
info.id = "MappingExtensions";
info.version = "0.21.2";
info.version = "0.21.3";
modInfo = info;
logger = new Logger(modInfo, LoggerOptions(false, true));
logger->info("Leaving setup!");
Expand Down

0 comments on commit 3c89e3a

Please sign in to comment.