1
0
mirror of synced 2024-11-12 01:00:46 +01: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