It was broken because of three bugs: * Uninitialized variables in RunCommand; * Trying to use (OEM-encoded) main() argc/argv arguments instead of GetCommandLineW(); * Trying to pass relative paths directly into ssfopen.
This commit adds a basic command-line interface. This interface allows rendering thumbnails and exporting data in batch mode.