That new workflow seem better than my previous one. Should be good.
As for implements this, it seem there still several way to do it. Right now, Nach told me about adding
IPC interface to pcsxrr and I'm very interessed, so I can basicly manage the WorkFlow without Lua assistance and from an external app(in Java or C#). So right now, I'll be looking foward to his next if he can add some function like:
frame_num()
frame_hash(), (note: mine from lua could probably get optimised to run faster...)
state_save(path), (note: path is required, so we can store desync elsewhere)
state_load(index)
sleep(seconds) (note: later I'll investigate if there a way to "yield" without completly freeze the app, but for now sleep is good enough)
Meanwhile, I'll continue to add some Lua function, so if for wathever reason I dislike IPC, I can go back to Lua with a little bit less of overhead. I'm also thinking about adding a easier feature to show frame input, for game that doesn't support the GPU TAS and must use OpenGL2 and have to use weird way to show input
like this.