2019-12-08 22:43:49 +01:00
|
|
|
# vim: set fileencoding=utf-8
|
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
from bemani.backend.ddr.base import DDRBase
|
|
|
|
from bemani.backend.ddr.ddrace import DDRAce
|
|
|
|
from bemani.common import VersionConstants
|
|
|
|
|
|
|
|
|
|
|
|
class DDRA20(
|
|
|
|
DDRBase,
|
|
|
|
):
|
|
|
|
|
2022-10-15 20:56:30 +02:00
|
|
|
name: str = "DanceDanceRevolution A20"
|
2021-09-07 19:56:15 +02:00
|
|
|
version: int = VersionConstants.DDR_A20
|
2019-12-08 22:43:49 +01:00
|
|
|
|
|
|
|
def previous_version(self) -> Optional[DDRBase]:
|
|
|
|
return DDRAce(self.data, self.config, self.model)
|
|
|
|
|
2021-09-07 19:55:53 +02:00
|
|
|
@property
|
2019-12-08 22:43:49 +01:00
|
|
|
def supports_paseli(self) -> bool:
|
2022-10-15 20:56:30 +02:00
|
|
|
if self.model.dest != "J":
|
2019-12-08 22:43:49 +01:00
|
|
|
# DDR Ace in USA mode doesn't support PASELI properly.
|
|
|
|
# When in Asia mode it shows PASELI but won't let you select it.
|
|
|
|
return False
|
|
|
|
else:
|
|
|
|
# All other modes should work with PASELI.
|
|
|
|
return True
|