CEmu icon indicating copy to clipboard operation
CEmu copied to clipboard

Lua scripting ideas (TODO/WISH list)

Open adriweb opened this issue 6 years ago • 0 comments

https://github.com/CE-Programming/CEmu/issues/19 is the issue for Lua scripting support in itself, but here's one for throwing some ideas about the Lua integration/features in CEmu, so basically a TODO/WISH list:

GUI:

  • [ ] Listing available scripts. We probably need a scripts folder in the CEmu appdata one.
  • [ ] Autoloading some scripts. Let the user autoload some script at some point (when should that happen?)
  • [ ] Setting to enable unsafe functions. The require, loadfile, dofile functions and the io, os, debug modules are currently disabled by default for safety reasons.

Developer:

  • [ ] Generic events/hooking system. User callback will be fired when something specific happens.
  • [ ] Example useful scripts. Shipped by default with CEmu
  • [ ] Tutorial/Docs. That's probably useful...
  • [ ] Conditional Breakpoints. This is a suggestion from issue #265, which adds support for scriptable conditional breakpoints on events.

Bindings:

  • [ ] Disasm APIs bindings. Use zdis correctly.
  • [ ] More GUI bindings. All existing GUI stuff should have a Lua equivalent (also, take ideas from here and there).

Other:

  • [ ] GitHub repo of Lua scripts. To have a shared area of scripts user can download in CEmu.
  • [ ] CLI arguments stuff. Should probably have some things to launch a script at boot or something
  • [ ] TASing support. This is a suggestion from issue #275, which adds support to load and run scripts.

adriweb avatar May 04 '18 12:05 adriweb