diff options
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index d934eafb4..801865d49 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -719,17 +719,27 @@ template<int func(void*, u32)> void WrapI_VU(){ | |||
| 719 | RETURN(retval); | 719 | RETURN(retval); |
| 720 | } | 720 | } |
| 721 | 721 | ||
| 722 | template<int func(void*, void*, u32)> void WrapI_VVU(){ | ||
| 723 | u32 retval = func(Memory::GetPointer(PARAM(0)), Memory::GetPointer(PARAM(1)), PARAM(2)); | ||
| 724 | RETURN(retval); | ||
| 725 | } | ||
| 726 | |||
| 722 | template<int func(void*, u32, void*, int)> void WrapI_VUVI(){ | 727 | template<int func(void*, u32, void*, int)> void WrapI_VUVI(){ |
| 723 | u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1), Memory::GetPointer(PARAM(2)), PARAM(3)); | 728 | u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1), Memory::GetPointer(PARAM(2)), PARAM(3)); |
| 724 | RETURN(retval); | 729 | RETURN(retval); |
| 725 | } | 730 | } |
| 726 | 731 | ||
| 727 | template<int func(void*, u32, u32, u32, u32, u32)> void WrapI_VUUUUU(){ | 732 | template<int func(void*, u32, u32, u32, u32, u32)> void WrapI_VUUUUU(){ |
| 728 | u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5)); | 733 | u32 retval = func(NULL, PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4)); |
| 729 | RETURN(retval); | 734 | RETURN(retval); |
| 730 | } | 735 | } |
| 731 | 736 | ||
| 732 | template<int func(u32, s64)> void WrapI_US64() { | 737 | template<int func(u32, s64)> void WrapI_US64() { |
| 733 | int retval = func(PARAM(0), PARAM64(2)); | 738 | int retval = func(PARAM(0), PARAM64(1)); |
| 739 | RETURN(retval); | ||
| 740 | } | ||
| 741 | |||
| 742 | template<int func(void*, void*, u32, u32, s64)> void WrapI_VVUUS64() { | ||
| 743 | int retval = func(Memory::GetPointer(PARAM(0)), Memory::GetPointer(PARAM(1)), PARAM(2), PARAM(3), PARAM(4)); | ||
| 734 | RETURN(retval); | 744 | RETURN(retval); |
| 735 | } | 745 | } |