I'm playing around with scripting! I have embedded Lua and consider allowing themes to script certain parts of FS-UAE. It's
mostly a fun little project, but may be useful to allow people to do more custom stuff without implementing hundreds of options.
For example, different scanlines in different video modes could (instead of having several configuration options for that) be scripted as something like this:
Code:
function on_process_frame()
if fs_uae_is_highres_frame() then
fs_emu_set_scanline_params(...)
else
fs_emu_set_scanline_params(...)
end
end
(Of course, I still think the scanlines should be moved to a GPU shader, in which case a better example would be a script which changes the active shader).