diff options
Diffstat (limited to 'src/core/hle/function_wrappers.h')
| -rw-r--r-- | src/core/hle/function_wrappers.h | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/src/core/hle/function_wrappers.h b/src/core/hle/function_wrappers.h index 4897d3f28..18b01b14b 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -158,8 +158,8 @@ template<int func(u32, u32, u32, u32, u32)> void WrapI_UUUUU() { | |||
| 158 | RETURN(retval); | 158 | RETURN(retval); |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | template<int func()> void WrapI_V() { | 161 | template<int func(void*)> void WrapI_V() { |
| 162 | int retval = func(); | 162 | u32 retval = func(Memory::GetPointer(PARAM(0))); |
| 163 | RETURN(retval); | 163 | RETURN(retval); |
| 164 | } | 164 | } |
| 165 | 165 | ||
| @@ -638,6 +638,10 @@ template<u32 func(const char *, const char *)> void WrapU_CC() { | |||
| 638 | RETURN(retval); | 638 | RETURN(retval); |
| 639 | } | 639 | } |
| 640 | 640 | ||
| 641 | template<void func(const char*)> void WrapV_C() { | ||
| 642 | func(Memory::GetCharPointer(PARAM(0))); | ||
| 643 | } | ||
| 644 | |||
| 641 | template<void func(const char *, int)> void WrapV_CI() { | 645 | template<void func(const char *, int)> void WrapV_CI() { |
| 642 | func(Memory::GetCharPointer(PARAM(0)), PARAM(1)); | 646 | func(Memory::GetCharPointer(PARAM(0)), PARAM(1)); |
| 643 | } | 647 | } |
| @@ -716,18 +720,28 @@ template <int func(int, const char *, int)> void WrapI_ICI() { | |||
| 716 | } | 720 | } |
| 717 | 721 | ||
| 718 | template<int func(int, void *, void *, void *, void *, u32, int)> void WrapI_IVVVVUI(){ | 722 | template<int func(int, void *, void *, void *, void *, u32, int)> void WrapI_IVVVVUI(){ |
| 719 | u32 retval = func(PARAM(0), Memory::GetPointer(PARAM(1)), Memory::GetPointer(PARAM(2)), Memory::GetPointer(PARAM(3)), Memory::GetPointer(PARAM(4)), PARAM(5), PARAM(6) ); | 723 | u32 retval = func(PARAM(0), Memory::GetPointer(PARAM(1)), Memory::GetPointer(PARAM(2)), Memory::GetPointer(PARAM(3)), Memory::GetPointer(PARAM(4)), PARAM(5), PARAM(6) ); |
| 720 | RETURN(retval); | 724 | RETURN(retval); |
| 721 | } | 725 | } |
| 722 | 726 | ||
| 723 | template<int func(int, const char *, u32, void *, int, int, int)> void WrapI_ICUVIII(){ | 727 | template<int func(int, const char *, u32, void *, int, int, int)> void WrapI_ICUVIII(){ |
| 724 | u32 retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2), Memory::GetPointer(PARAM(3)), PARAM(4), PARAM(5), PARAM(6)); | 728 | u32 retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2), Memory::GetPointer(PARAM(3)), PARAM(4), PARAM(5), PARAM(6)); |
| 725 | RETURN(retval); | 729 | RETURN(retval); |
| 726 | } | 730 | } |
| 727 | 731 | ||
| 728 | template<int func(void *, u32, u32, u32, u32, u32)> void WrapI_VUUUUU(){ | 732 | template<int func(void*, u32)> void WrapI_VU(){ |
| 729 | u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5)); | 733 | u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1)); |
| 730 | RETURN(retval); | 734 | RETURN(retval); |
| 735 | } | ||
| 736 | |||
| 737 | template<int func(void*, u32, void*, int)> void WrapI_VUVI(){ | ||
| 738 | u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1), Memory::GetPointer(PARAM(2)), PARAM(3)); | ||
| 739 | RETURN(retval); | ||
| 740 | } | ||
| 741 | |||
| 742 | template<int func(void*, u32, u32, u32, u32, u32)> void WrapI_VUUUUU(){ | ||
| 743 | u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5)); | ||
| 744 | RETURN(retval); | ||
| 731 | } | 745 | } |
| 732 | 746 | ||
| 733 | template<int func(u32, s64)> void WrapI_US64() { | 747 | template<int func(u32, s64)> void WrapI_US64() { |