KEMBAR78
DIRECTOR: Update MCI parser by vagos · Pull Request #4850 · scummvm/scummvm · GitHub
Skip to content

Conversation

@vagos
Copy link
Contributor

@vagos vagos commented Mar 28, 2023

DIRECTOR: Update MCI parser

  • Replaced the old MCI parser with one that is more easily extensible and is based
    on the official MCI standard.
  • Moved the new implementation into a seperate file engines/director/lingo/lingo-mci.cpp

vagos added 7 commits March 29, 2023 00:16
- Updated the old MCI parser to work based on the specification described
in https://patentimages.storage.googleapis.com/ad/06/7a/48766ca9df6fbc/US6397263.pdf

- Replaced the old code to showcase how each MCI command can now be
handled through the parsed_cmd object.

Microsoft MCI documentation: https://learn.microsoft.com/en-us/windows/win32/multimedia/mci
Parser code used as reference: https://github.com/wine-mirror/wine/blob/master/dlls/winmm/mci.c
If the the 'to' parameter is absent from an MCI_PLAY command,
the device now plays unitl the end.
- Make some small formatting changes.
- Removed int cast from uint when indexing
@sev-
Copy link
Member

sev- commented Mar 29, 2023

Thank you!

@sev- sev- merged commit 0e47c5e into scummvm:master Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants