Open squelchiee opened 2 months ago
I'll have to convert this as a draft for now, still seems to have a few issues and I opened this PR a bit too soon.
Something I have noticed, this does not work too well without nn_fp.rpl placed in cafeLibs/, GetMyComment doesn't get called (meaning you can't read your own comment) and UpdateCommentAsync seems to corrupt myPresence->GameKey on the client (comment still updates for other friends and the title remains untouched serverside), I'm not exactly sure on what to do about this.
There seem to be some out of bounds reads but no bad writes (unless MY_COMMENT_LENGTH is wrong or we are using it in the wrong places?) So not sure what could be causing the corruption. The call to GetMyComment
probably depends on some other state from the friend lib that we provide incorrectly/differently.
The call to
GetMyComment
probably depends on some other state from the friend lib that we provide incorrectly/differently.
Is there a clear indicator to find where that state is?
Not much progress has been done lately, however, GetMyComment
wasn't being called because it wasn't defined in nn_fp.cpp
, also, the last 2 commits seems to have broken UpdateCommentAsync
further by giving out an error when it gets called (both without nn_fp.rpl), so there needs to be more work done.
Another note, the GameKey
corruption seems to come from UpdatePresenceAsync
and not from UpdateCommentAsync
, not sure what part exactly.