sannybuilder / dev

Sanny Builder Bug Tracker and Roadmap development
https://sannybuilder.com
49 stars 0 forks source link

allow to set destination param outside of parentheses #234

Closed firedihm closed 1 year ago

firedihm commented 1 year ago

opcodes that return values could have their destination param written before class.proc(), like this

var0 = Memory.Read(addr, DWORD, false)

this can work similarly to class instancing feature, where class instance just replaces first param of an opcode; maybe even in union with it:

var0 = $PLAYER_CHAR.StoreCarIsInNoSave()
x87 commented 1 year ago

You can do it by updating method definition in classes.db to

^Read,[0A8D,=,2,0,0],("result%i" "address%i" "size%i" "vp%b")