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

luaengine: add API versioning #70

Merged
merged 2 commits into from Dec 10, 2014

Conversation

Projects
None yet
2 participants
@lucab
Contributor

lucab commented Dec 8, 2014

These commits add two methods to LUA interface, allowing scripts to
programatically retrieve current running application name and version.
The idea is to make scripts aware of changes in the API, by
linking it to current version number. Compatibility helpers can then
be added to LUA scripts to keep them working across API changes.

Signed-off-by: Luca Bruno lucab@debian.org

lucab added some commits Dec 6, 2014

version: provide a bare version-only constant
This commits add a new global constant containing only the version number,
without build date.
This is useful for tools built around MAME, which would use it to track
capability changes for compatibility layers.

Signed-off-by: Luca Bruno <lucab@debian.org>
luaengine: add emu.app_name()/app_version() methods
This commit adds two methods to LUA interface, allowing scripts to
programatically retrieve current running application name and version.
The idea is to make scripts aware of changes in the API, by
linking it to current version number. Compatibility helpers can then
be added to LUA scripts to keep working across API changes.

Signed-off-by: Luca Bruno <lucab@debian.org>

rb6502 added a commit that referenced this pull request Dec 10, 2014

Merge pull request #70 from lucab/lucab/mame-lua/appinfo
luaengine: add API versioning [Luca Bruno]

@rb6502 rb6502 merged commit 1005424 into mamedev:master Dec 10, 2014

@lucab lucab deleted the lucab:lucab/mame-lua/appinfo branch Jan 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment