ChanServ changed the topic of ##yamahasynths to: Channel dedicated to questions and discussion of Yamaha FM Synthesizer internals and corresponding REing. Discussion of synthesis methods similar to the Yamaha line of chips, Sound Blasters + clones, PCM chips like RF5C68, and CD theory of operation are also on-topic. Channel logs: https://freenode.irclog.whitequark.org/~h~yamahasynths
<andlabs>
true
<andlabs>
what do you suggest doing if I want to pass in a this pointer instead?
<andlabs>
alternatively you could just have two separate types and transparently convert between the two
<kode54>
I'll add a callback for file access
<andlabs>
cool
<andlabs>
gonna start heading home, brb
andlabs has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kode54>
yeah
<kode54>
now all he needs to do is dupe the file access struct per use, and fill in its context member with a pointer
andlabs has joined ##yamahasynths
<andlabs>
oh you already fixed it?
<kode54>
yup, it's in there
<kode54>
you just need to dupe/create a filesystem callback struct, and set your context pointer there
<kode54>
it only goes to fopen, so you'll need to change your fopen call to accept that parameter
<kode54>
and somehow pass it with your file handle, if you need it elsewhere
<andlabs>
ah cool
<andlabs>
oh so you took the incompatible option, heh
<kode54>
it's only a slight incompatibility
<kode54>
it breaks the structure and the fopen function
<kode54>
anyone who used it as before only needs to change two lines
<andlabs>
the custom code I had in that place was already good lol
<kode54>
ah
<andlabs>
just had the field named differently and the parameters switched
<kode54>
ah
<kode54>
well, hopefully it's more useful this way
<andlabs>
also psf2fs should have also been updated since that's an instance of file context
<kode54>
to others, at least
<kode54>
oh, oops
<kode54>
wait no
<andlabs>
or not
<andlabs>
my memory is wrong :D
<kode54>
nope
<andlabs>
anyway thanks
<kode54>
psf2fs just accepts data blocks and fills out its data structures from them
<andlabs>
right now I'm trying to refactor that personal vgm player I made to manage its own dependencies so I can more easily add some
<andlabs>
the goal being nsf
<kode54>
nice
<kode54>
my deadbeef_plugins repo probably needs a refactor now, oops
<kode54>
ah, that was easy
<andlabs>
(the alternative to adding nsf support is "wait for vgm to add VRC6")
<kode54>
heh
futarisIRCcloud has joined ##yamahasynths
<andlabs>
hard mode would be hoot support
<andlabs>
kode54: also ooh I think I found an error in mgba:gsfplayer
<kode54>
oh?
<andlabs>
[ 38%] Building C object CMakeFiles/mgba.dir/src/gba/core.c.o