mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-15 20:27:29 +08:00
add support for GetGameMusicScoreApi
the api is used to deliver charts from the server for mai2 Prism and later
This commit is contained in:
@@ -77,6 +77,22 @@ class Mai2UploadsConfig:
|
||||
self.__config, "mai2", "uploads", "movies_dir", default=""
|
||||
)
|
||||
|
||||
class Mai2OnlineChartsConfig:
|
||||
def __init__(self, parent: "Mai2Config") -> None:
|
||||
self.__config = parent
|
||||
|
||||
@property
|
||||
def enable(self) -> bool:
|
||||
return CoreConfig.get_config_field(
|
||||
self.__config, "mai2", "chart_deliver", "enable", default=False
|
||||
)
|
||||
|
||||
@property
|
||||
def chart_folder(self) -> int:
|
||||
return CoreConfig.get_config_field(
|
||||
self.__config, "mai2", "chart_deliver", "chart_folder", default=""
|
||||
)
|
||||
|
||||
|
||||
class Mai2CryptoConfig:
|
||||
def __init__(self, parent_config: "Mai2Config") -> None:
|
||||
@@ -106,4 +122,5 @@ class Mai2Config(dict):
|
||||
self.server = Mai2ServerConfig(self)
|
||||
self.deliver = Mai2DeliverConfig(self)
|
||||
self.uploads = Mai2UploadsConfig(self)
|
||||
self.crypto = Mai2CryptoConfig(self)
|
||||
self.crypto = Mai2CryptoConfig(self)
|
||||
self.charts = Mai2OnlineChartsConfig(self)
|
||||
Reference in New Issue
Block a user