Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JPCSP TO PPSSPP:sceMpegAvcConvertToYuv420
#1
public int sceMpegAvcConvertToYuv420(int mpeg, TPointer bufferOutput, TPointer unknown1, int unknown2) {
return 0;
}
Use WrapV_IUUUU ?
Reply
#2
Well, we use u32 for the mpeg param, so it would be WrapI_UUUI, I guess.

-[Unknown]
Reply
#3
Thanks
Reply
#4
int sceMpegAvcConvertToYuv420(u32 mpeg, u32 bufferOutput, u32 unknown1, int unknown2)
{
ERROR_LOG(HLE, "UNIMPL sceMpegAvcConvertToYuv420(%08x, %08x, %08x, %08x)", mpeg, bufferOutput, unknown1, unknown2);
return 0;
}

{0xF5E7EA31,WrapI_UUUI<sceMpegAvcConvertToYuv420>,"sceMpegAvcConvertToYuv420"},

VS2012 said "> HLE \ sceMpeg.cpp (1737): error C2973: 'WrapI_UUUI': invalid template argument 'int (__cdecl *) (u32, u32, u32, int)'

Please help
Reply
#5
Template is wrong, it has:

template<int func(int, u32, u32, u32, int)> void WrapI_UUUI() {

It should not have the extra int (first arg.)

-[Unknown]
Reply
#6
I remove extra int (first arg.) in template but still fail

e: \ project \ ppsspp \ core \ hle \ FunctionWrappers.h (151): error C2197: 'int (__cdecl * const) (u32, u32, u32, int)': too many arguments call
Reply
#7
Now you need to change the insides of the template to also not use that first arg (or last arg, really.)

-[Unknown]
Reply
#8
Thanks.
Reply


Forum Jump: