mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-04-26 10:07:00 -05:00
Fix crash on starting game, deduplicate already-written functionality.
This commit is contained in:
parent
2349529022
commit
ed43e9d3e6
|
|
@ -2,13 +2,21 @@
|
||||||
from typing import Dict, List, Optional
|
from typing import Dict, List, Optional
|
||||||
|
|
||||||
from bemani.backend.jubeat.base import JubeatBase
|
from bemani.backend.jubeat.base import JubeatBase
|
||||||
|
from bemani.backend.jubeat.common import (
|
||||||
|
JubeatDemodataGetNewsHandler,
|
||||||
|
JubeatLoggerReportHandler,
|
||||||
|
)
|
||||||
from bemani.backend.jubeat.clan import JubeatClan
|
from bemani.backend.jubeat.clan import JubeatClan
|
||||||
|
|
||||||
from bemani.common import VersionConstants
|
from bemani.common import VersionConstants
|
||||||
from bemani.protocol import Node
|
from bemani.protocol import Node
|
||||||
|
|
||||||
|
|
||||||
class JubeatFesto(JubeatBase):
|
class JubeatFesto(
|
||||||
|
JubeatDemodataGetNewsHandler,
|
||||||
|
JubeatLoggerReportHandler,
|
||||||
|
JubeatBase
|
||||||
|
):
|
||||||
|
|
||||||
name: str = 'Jubeat Festo'
|
name: str = 'Jubeat Festo'
|
||||||
version: int = VersionConstants.JUBEAT_FESTO
|
version: int = VersionConstants.JUBEAT_FESTO
|
||||||
|
|
@ -128,25 +136,28 @@ class JubeatFesto(JubeatBase):
|
||||||
],
|
],
|
||||||
))
|
))
|
||||||
|
|
||||||
|
# Mapping of what music is allowed by default, if this is set to all 0's
|
||||||
|
# then the game will crash because it can't figure out what default song
|
||||||
|
# to choose for new player sort.
|
||||||
info.add_child(Node.s32_array(
|
info.add_child(Node.s32_array(
|
||||||
'white_music_list',
|
'white_music_list',
|
||||||
[
|
[
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
0, 0, 0, 0,
|
-1, -1, -1, -1,
|
||||||
],
|
],
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
@ -350,17 +361,6 @@ class JubeatFesto(JubeatBase):
|
||||||
|
|
||||||
return root
|
return root
|
||||||
|
|
||||||
def handle_demodata_get_news_request(self, request: Node) -> Node:
|
|
||||||
root = Node.void('demodata')
|
|
||||||
data = Node.void('data')
|
|
||||||
root.add_child(data)
|
|
||||||
|
|
||||||
officialnews = Node.void('officialnews')
|
|
||||||
data.add_child(officialnews)
|
|
||||||
officialnews.set_attribute('count', '0')
|
|
||||||
|
|
||||||
return root
|
|
||||||
|
|
||||||
def handle_demodata_get_jbox_list_request(self, request: Node) -> Node:
|
def handle_demodata_get_jbox_list_request(self, request: Node) -> Node:
|
||||||
root = Node.void('demodata')
|
root = Node.void('demodata')
|
||||||
return root
|
return root
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user