Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIRECTOR: Update MCI parser #4850

Merged
merged 7 commits into from
Mar 29, 2023
Merged

DIRECTOR: Update MCI parser #4850

merged 7 commits into from
Mar 29, 2023

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

- 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