View Single Post
Old 09 February 2013, 23:55   #16
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
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).

Last edited by FrodeSolheim; 10 February 2013 at 01:24.
FrodeSolheim is offline  
 
Page generated in 0.04484 seconds with 11 queries