diff options
| author | 2014-05-16 23:21:03 -0700 | |
|---|---|---|
| committer | 2014-05-16 23:21:03 -0700 | |
| commit | b8c8d0903ec9be4c7d580464480a0136277be803 (patch) | |
| tree | 9280a9f01e1312d0d8aed493282ae65d2384963c /src/core/hle/function_wrappers.h | |
| parent | Added FindGLEW to cmake-modules (diff) | |
| parent | Merge pull request #17 from bunnei/arm-vfp (diff) | |
| download | yuzu-b8c8d0903ec9be4c7d580464480a0136277be803.tar.gz yuzu-b8c8d0903ec9be4c7d580464480a0136277be803.tar.xz yuzu-b8c8d0903ec9be4c7d580464480a0136277be803.zip | |
Merge remote-tracking branch 'upstream/master' into issue-7-fix
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 cab772004..d934eafb4 100644 --- a/src/core/hle/function_wrappers.h +++ b/src/core/hle/function_wrappers.h | |||
| @@ -143,8 +143,8 @@ template<int func(u32, u32, u32, u32, u32)> void WrapI_UUUUU() { | |||
| 143 | RETURN(retval); | 143 | RETURN(retval); |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | template<int func()> void WrapI_V() { | 146 | template<int func(void*)> void WrapI_V() { |
| 147 | int retval = func(); | 147 | u32 retval = func(Memory::GetPointer(PARAM(0))); |
| 148 | RETURN(retval); | 148 | RETURN(retval); |
| 149 | } | 149 | } |
| 150 | 150 | ||
| @@ -623,6 +623,10 @@ template<u32 func(const char *, const char *)> void WrapU_CC() { | |||
| 623 | RETURN(retval); | 623 | RETURN(retval); |
| 624 | } | 624 | } |
| 625 | 625 | ||
| 626 | template<void func(const char*)> void WrapV_C() { | ||
| 627 | func(Memory::GetCharPointer(PARAM(0))); | ||
| 628 | } | ||
| 629 | |||
| 626 | template<void func(const char *, int)> void WrapV_CI() { | 630 | template<void func(const char *, int)> void WrapV_CI() { |
| 627 | func(Memory::GetCharPointer(PARAM(0)), PARAM(1)); | 631 | func(Memory::GetCharPointer(PARAM(0)), PARAM(1)); |
| 628 | } | 632 | } |
| @@ -701,18 +705,28 @@ template <int func(int, const char *, int)> void WrapI_ICI() { | |||
| 701 | } | 705 | } |
| 702 | 706 | ||
| 703 | template<int func(int, void *, void *, void *, void *, u32, int)> void WrapI_IVVVVUI(){ | 707 | template<int func(int, void *, void *, void *, void *, u32, int)> void WrapI_IVVVVUI(){ |
| 704 | 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) ); | 708 | 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) ); |
| 705 | RETURN(retval); | 709 | RETURN(retval); |
| 706 | } | 710 | } |
| 707 | 711 | ||
| 708 | template<int func(int, const char *, u32, void *, int, int, int)> void WrapI_ICUVIII(){ | 712 | template<int func(int, const char *, u32, void *, int, int, int)> void WrapI_ICUVIII(){ |
| 709 | u32 retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2), Memory::GetPointer(PARAM(3)), PARAM(4), PARAM(5), PARAM(6)); | 713 | u32 retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2), Memory::GetPointer(PARAM(3)), PARAM(4), PARAM(5), PARAM(6)); |
| 710 | RETURN(retval); | 714 | RETURN(retval); |
| 711 | } | 715 | } |
| 712 | 716 | ||
| 713 | template<int func(void *, u32, u32, u32, u32, u32)> void WrapI_VUUUUU(){ | 717 | template<int func(void*, u32)> void WrapI_VU(){ |
| 714 | u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5)); | 718 | u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1)); |
| 715 | RETURN(retval); | 719 | RETURN(retval); |
| 720 | } | ||
| 721 | |||
| 722 | 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)); | ||
| 724 | RETURN(retval); | ||
| 725 | } | ||
| 726 | |||
| 727 | 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)); | ||
| 729 | RETURN(retval); | ||
| 716 | } | 730 | } |
| 717 | 731 | ||
| 718 | template<int func(u32, s64)> void WrapI_US64() { | 732 | template<int func(u32, s64)> void WrapI_US64() { |