1
0
mirror of synced 2024-09-24 11:28:25 +02:00

Add dummy asdlib for sound requests in some games.

This commit is contained in:
Jennifer Taylor 2021-05-24 17:37:13 +00:00
parent ee6d848977
commit 88564ae11d

View File

@ -270,6 +270,13 @@ class AEPLib:
pass
class ASDLib:
def sound_play(self, sound: Any) -> None:
if not isinstance(sound, str):
print(f"WARNING: Ignoring asdlib.sound_play call with invalid parameters {sound}!")
print(f"WARNING: Requested sound {sound} be played but we don't support sound yet!")
MissingThis = object()
@ -379,6 +386,7 @@ class AFPRenderer(VerboseOutput):
stack: List[Any] = []
variables: Dict[str, Any] = {
'aeplib': AEPLib(),
'asdlib': ASDLib(),
}
registers: List[Any] = [UNDEFINED] * 256