mirror of
https://github.com/drmext/MonkeyBusiness.git
synced 2026-03-21 18:04:48 -05:00
Fix
This commit is contained in:
parent
af355a27e0
commit
ff25d81f0c
|
|
@ -9,9 +9,9 @@ Run [start.bat (Windows)](start.bat) or [start.sh (Linux, MacOS)](start.sh)
|
|||
[web interface](https://github.com/drmext/BounceTrippy/releases), [score import](utils/db)
|
||||
|
||||
## Playable Games
|
||||
- IIDX 18-20, 28-32 (Online Arena/BPL support)
|
||||
- IIDX 18-20, 29-33 (Online Arena/BPL support)
|
||||
- DDR A20P, A3 (OmniMIX support w/ DAN & pfree score saving hack)
|
||||
- GD 6-10 (Battle Mode support)
|
||||
- GD 6-10 DELTA (Battle Mode support)
|
||||
- DRS
|
||||
- NOST 3
|
||||
- SDVX 6 2020-2023
|
||||
|
|
|
|||
|
|
@ -25,9 +25,9 @@ async def gitadora_gameend_regist(ver: str, request: Request):
|
|||
game_version = request_info["game_version"]
|
||||
spec = request_info["spec"]
|
||||
|
||||
if spec == "A":
|
||||
if spec in ("A", "C"):
|
||||
g = "guitarfreaks"
|
||||
elif spec == "B":
|
||||
elif spec in ("B", "D"):
|
||||
g = "drummania"
|
||||
|
||||
root = request_info["root"][0]
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ async def gitadora_gametop_get(ver: str, request: Request):
|
|||
game_version = request_info["game_version"]
|
||||
spec = request_info["spec"]
|
||||
|
||||
if spec == "A":
|
||||
if spec in ("A", "C"):
|
||||
g = "guitarfreaks"
|
||||
elif spec == "B":
|
||||
elif spec in ("B", "D"):
|
||||
g = "drummania"
|
||||
|
||||
data = request_info["root"][0].find("player")
|
||||
|
|
|
|||
|
|
@ -12,6 +12,12 @@ router.model_whitelist = ["M32"]
|
|||
@router.post("/{gameinfo}/{ver}_playablemusic/get")
|
||||
async def gitadora_playablemusic_get(ver: str, request: Request):
|
||||
request_info = await core_process_request(request)
|
||||
spec = request_info["spec"]
|
||||
|
||||
if spec in ("A", "B"):
|
||||
is_delta = False
|
||||
elif spec in ("C", "D"):
|
||||
is_delta = True
|
||||
|
||||
# the game freezes if response has no songs
|
||||
# so make sure there is at least one
|
||||
|
|
@ -56,10 +62,18 @@ async def gitadora_playablemusic_get(ver: str, request: Request):
|
|||
if not short_ver:
|
||||
short_ver = "MISSING_FALLBACK"
|
||||
|
||||
for f in (
|
||||
path.join("modules", "gitadora", f"mdb_{short_ver}.xml"),
|
||||
path.join(f"mdb_{short_ver}.xml"),
|
||||
):
|
||||
if is_delta == True:
|
||||
paths = (
|
||||
path.join("modules", "gitadora", f"mdb_{short_ver}_delta.xml"),
|
||||
path.join(f"mdb_{short_ver}_delta.xml"),
|
||||
)
|
||||
else:
|
||||
paths = (
|
||||
path.join("modules", "gitadora", f"mdb_{short_ver}.xml"),
|
||||
path.join(f"mdb_{short_ver}.xml"),
|
||||
)
|
||||
|
||||
for f in paths:
|
||||
if path.exists(f):
|
||||
with open(f, "r", encoding="utf-8") as fp:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user