katahiromz/RisohEditor

Command Line Support for Exporting .rc/.res

SaifRushdHadad opened this issue · 4 comments

Currently RisohEditor does not support command line invocation (besides taking the first argument provided and loading it). Would it be possible to implement flag and argument support so RisohEditor could be used without a GUI? Being able to export .rc and .res files quickly would be very useful to a lot of users.

Extend command line syntax:

  • /? or --help: Show usage.
  • --version: Show version info.
  • --load "your-file.rc": Load the file (without GUI).
  • --save "your-file.rc": Save the file (without GUI).
  • --log "log-file.txt": Specify the log file (without GUI).
  • --load-options "(...)"
  • --save-options "(...)"

Extend the EGA language:

  • Add RES_load function (Load resource file without GUI).
  • Add RES_save function (Save resource file without GUI).
  • Add RES_close function (Close the window).

Syntax

  • RES_load(filename[, options])
  • RES_save(filename[, options])
  • RES_close()

RES_load and RES_save will use the filename extension.

RES_load options:

  • "(no-load-res-h)"

RES_save options:

  • "(sep-lang)": Separate resource files by language.
  • "(begin-end)": Use BEGIN/END.
  • "(lang-macro)": Make language selectable by LANGUAGE_* macro.
  • "(backup)": Make backup.
  • "(utf-16)": Output RC files as UTF-16.
  • Add no-gui mode.
  • Virtualize message box.

image