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

Support alternate IO systems #47

Open
erkyrath opened this issue Nov 14, 2020 · 0 comments
Open

Support alternate IO systems #47

erkyrath opened this issue Nov 14, 2020 · 0 comments

Comments

@erkyrath
Copy link
Owner

(This is a distant priority, but I'm writing it down because the subject came up.)

You're supposed to be able to extend a Glulx interpreter with a custom I/O system (2 is Glk, higher values are available). Quixe doesn't make this particularly easy.

We could support this with a plugin architecture by adding a default case to every switch (curiosys) { ... }. (Remembering that 0 should always do nothing.) The code generation at (e.g.) line 2197, 2222, 2258 would have to also generate calls to the plugin. The plugin basically has to offer an API for "shove characters here".

Also replace direct and generated calls to Glk.glk_put_jstring() with plugin calls.

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

No branches or pull requests

1 participant