opGetSkinMode bug? [Archive] - Quintessential Forum

PDA

View Full Version : opGetSkinMode bug?


plover
12-16-2003, 06:59 AM
I assume that opGetSkinMode is supposed to work like opGetSkinFile, i.e. with a call like:
serviceFunc(opGetSkinMode, buffer, bufferSize, 0)
(especially as making that call works, while calling serviceFunc with the last three parameters 0 (as if the mode were the return value) crashes the player... ;) )

Currently, however, the result I am getting is that serviceFunc returns true but the string in buffer is unchanged. Is this a bug or am I making a mistake here?

BTW, thanks for adding in the opGetSkinMode -- that must be the quickest feature add ever... :D

Paul
12-16-2003, 07:08 AM
The return value is the mode number. Buffer is unused.

plover
12-16-2003, 07:26 AM
Yup, I'm a bonehead. I forgot to change the return type from bool to long, so it looked like the return value was always 1. I don't know what I did earlier that was crashing the player as calling serviceFunc as serviceFunc(opGetSkinMode,0,0,0) works just fine now.

Thanks again! :cool: