2014-04-11 03:58:28 +04:00
|
|
|
// Copyright (c) 2012- PPSSPP Project.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/common_types.h"
|
|
|
|
#include "core/mem_map.h"
|
|
|
|
#include "core/hle/hle.h"
|
|
|
|
|
|
|
|
// For easy parameter parsing and return value processing.
|
|
|
|
|
|
|
|
//32bit wrappers
|
|
|
|
template<void func()> void WrapV_V() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func();
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func()> void WrapU_V() {
|
2014-04-17 04:41:33 +04:00
|
|
|
RETURN(func());
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(void *, const char *)> void WrapI_VC() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(Memory::GetPointer(PARAM(0)), Memory::GetCharPointer(PARAM(1)));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, void *, int)> void WrapU_IVI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), Memory::GetPointer(PARAM(1)), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, int, int, u32)> void WrapI_CIIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, const char *, u32, void *, void *, u32, int)> void WrapI_ICUVVUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2), Memory::GetPointer(PARAM(3)),Memory::GetPointer(PARAM(4)), PARAM(5), PARAM(6) );
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Hm, do so many params get passed in registers?
|
|
|
|
template<int func(const char *, int, const char *, int, int, int, int, int)> void WrapI_CICIIIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), Memory::GetCharPointer(PARAM(2)),
|
|
|
|
PARAM(3), PARAM(4), PARAM(5), PARAM(6), PARAM(7));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Hm, do so many params get passed in registers?
|
|
|
|
template<int func(const char *, int, int, int, int, int, int)> void WrapI_CIIIIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2),
|
|
|
|
PARAM(3), PARAM(4), PARAM(5), PARAM(6));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Hm, do so many params get passed in registers?
|
|
|
|
template<int func(int, int, int, int, int, int, u32)> void WrapI_IIIIIIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5), PARAM(6));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Hm, do so many params get passed in registers?
|
|
|
|
template<int func(int, int, int, int, int, int, int, int, u32)> void WrapI_IIIIIIIIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5), PARAM(6), PARAM(7), PARAM(8));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, void *)> void WrapU_IV() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), Memory::GetPointer(PARAM(1)));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<float func()> void WrapF_V() {
|
2014-04-17 04:41:33 +04:00
|
|
|
RETURNF(func());
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: Not sure about the floating point parameter passing
|
|
|
|
template<float func(int, float, u32)> void WrapF_IFU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
RETURNF(func(PARAM(0), PARAMF(0), PARAM(1)));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32)> void WrapU_U() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int)> void WrapU_UI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32)> void WrapI_U() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, int)> void WrapI_UI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, int, int, u32)> void WrapI_UIIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, u32, int)> void WrapU_IUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, u32)> void WrapI_UU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, float, float)> void WrapI_UFF() {
|
2014-04-17 04:41:33 +04:00
|
|
|
// Not sure about the float arguments.
|
|
|
|
int retval = func(PARAM(0), PARAMF(0), PARAMF(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, u32, u32)> void WrapI_UUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, u32, u32, int)> void WrapI_UUUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, u32, u32, int, int, int,int )> void WrapI_UUUIIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5), PARAM(6));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, u32, u32, u32)> void WrapI_UUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, u32, u32, u32, u32)> void WrapI_UUUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
2014-05-02 02:50:36 +04:00
|
|
|
template<int func(void*)> void WrapI_V() {
|
|
|
|
u32 retval = func(Memory::GetPointer(PARAM(0)));
|
2014-04-17 04:41:33 +04:00
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int)> void WrapU_I() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, int, u32)> void WrapU_IIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int)> void WrapI_I() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32)> void WrapV_U() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(int)> void WrapV_I() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, u32)> void WrapV_UU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(int, int)> void WrapV_II() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, const char *)> void WrapV_UC() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), Memory::GetCharPointer(PARAM(1)));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, const char *)> void WrapI_UC() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, const char *, int)> void WrapI_UCI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int , int , int, int, int)> void WrapU_UIIIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int , int , int, u32)> void WrapU_UIIIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int , int , int, int, int, int)> void WrapU_UIIIIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5), PARAM(6));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32)> void WrapU_UU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32, int)> void WrapU_UUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32, int, int)> void WrapU_UUII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(const char *, u32, u32, u32)> void WrapU_CUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, int, u32, int, int)> void WrapV_UIUII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int, u32, int, int)> void WrapU_UIUII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, int, u32, int, int)> void WrapI_UIUII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int, u32, int)> void WrapU_UIUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, int, u32, int)> void WrapI_UIUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int, u32)> void WrapU_UIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int, u32, u32)> void WrapU_UIUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int, int)> void WrapU_UII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int, int, u32)> void WrapU_UIIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, int, int, u32, u32)> void WrapI_UIIUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, u32, int, int)> void WrapI_UUII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, u32, int, int, int)> void WrapI_UUIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, int, int, int)> void WrapV_UIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, int, int, int, int, int)> void WrapV_UIIIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, int, int)> void WrapV_UII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, u32)> void WrapU_IU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, u32)> void WrapI_IU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, u32, int)> void WrapI_UUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, u32, int, u32)> void WrapI_UUIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, int)> void WrapI_II() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, int, int)> void WrapI_III() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, u32, int)> void WrapI_IUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, int, int, int)> void WrapI_IIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, int, int, int)> void WrapI_UIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, int, int, u32, int)> void WrapI_IIIUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, u32, u32, int, int)> void WrapI_IUUII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, const char *, int, u32, u32)> void WrapI_ICIUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, int, u32)> void WrapI_IIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(int, u32)> void WrapV_IU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, int)> void WrapV_UI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(const char *)> void WrapU_C() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(Memory::GetCharPointer(PARAM(0)));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(const char *, const char *, const char *, u32)> void WrapU_CCCU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(Memory::GetCharPointer(PARAM(0)),
|
|
|
|
Memory::GetCharPointer(PARAM(1)), Memory::GetCharPointer(PARAM(2)),
|
|
|
|
PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *)> void WrapI_C() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, u32)> void WrapI_CU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, u32, int)> void WrapI_CUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, const char *, int, u32)> void WrapI_ICIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, int, u32)> void WrapI_CIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, u32, u32)> void WrapI_CUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, u32, u32, u32)> void WrapI_CUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2),
|
|
|
|
PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, const char*, int, int)> void WrapI_CCII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), Memory::GetCharPointer(PARAM(1)), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, u32, u32, int, u32, u32)> void WrapI_CUUIUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2),
|
|
|
|
PARAM(3), PARAM(4), PARAM(5));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, int, int, u32, int, int)> void WrapI_CIIUII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2),
|
|
|
|
PARAM(3), PARAM(4), PARAM(5));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, int, u32, u32, u32)> void WrapI_CIUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2),
|
|
|
|
PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, u32, u32, u32, u32, u32)> void WrapI_CUUUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2),
|
|
|
|
PARAM(3), PARAM(4), PARAM(5));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(const char *, u32)> void WrapU_CU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1));
|
|
|
|
RETURN((u32) retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, const char *)> void WrapU_UC() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(const char *, u32, u32)> void WrapU_CUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2));
|
|
|
|
RETURN((u32) retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, int, int)> void WrapU_III() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, int)> void WrapU_II() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, int, int, int)> void WrapU_IIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, u32, u32)> void WrapU_IUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, u32, u32, u32)> void WrapU_IUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(int, u32, u32, u32, u32)> void WrapU_IUUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32, u32)> void WrapU_UUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(int, u32, u32)> void WrapV_IUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(int, int, u32)> void WrapV_IIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, int, u32)> void WrapV_UIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, int, u32)> void WrapI_UIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(int, u32, u32, u32, u32)> void WrapV_IUUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, u32, u32)> void WrapV_UUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, u32, u32, u32)> void WrapV_UUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(const char *, u32, int, u32)> void WrapV_CUIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2), PARAM(3));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, u32, int, u32)> void WrapI_CUIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, const char *, u32, int, u32)> void WrapV_UCUIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2), PARAM(3),
|
|
|
|
PARAM(4));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, const char *, u32, int, u32)> void WrapI_UCUIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2),
|
|
|
|
PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(const char *, u32, int, int, u32)> void WrapV_CUIIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2), PARAM(3),
|
|
|
|
PARAM(4));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, u32, int, int, u32)> void WrapI_CUIIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2),
|
|
|
|
PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32, u32, u32)> void WrapU_UUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, const char *, u32, u32)> void WrapU_UCUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32, u32, int)> void WrapU_UUUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32, u32, int, u32)> void WrapU_UUUIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32, u32, int, u32, int)> void WrapU_UUUIUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32, int, u32)> void WrapU_UUIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, int, int, int)> void WrapU_UIII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, u32, u32, u32, u32)> void WrapI_IUUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, u32, u32, u32, u32, u32)> void WrapI_IUUUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, u32, int, int)> void WrapI_IUII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
template<u32 func(u32, u32, u32, u32, u32)> void WrapU_UUUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<void func(u32, u32, u32, u32, u32)> void WrapV_UUUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(const char *, const char *)> void WrapU_CC() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)),
|
|
|
|
Memory::GetCharPointer(PARAM(1)));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
2014-05-02 02:50:36 +04:00
|
|
|
template<void func(const char*)> void WrapV_C() {
|
|
|
|
func(Memory::GetCharPointer(PARAM(0)));
|
|
|
|
}
|
|
|
|
|
2014-04-11 03:58:28 +04:00
|
|
|
template<void func(const char *, int)> void WrapV_CI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
func(Memory::GetCharPointer(PARAM(0)), PARAM(1));
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(const char *, int)> void WrapU_CI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(const char *, int, int)> void WrapU_CII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(const char *, int, u32, int, u32)> void WrapU_CIUIU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2),
|
|
|
|
PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(const char *, int, u32, int, u32, int)> void WrapU_CIUIUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2),
|
|
|
|
PARAM(3), PARAM(4), PARAM(5));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32, u32, u32, u32, u32)> void WrapU_UUUUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4),
|
|
|
|
PARAM(5));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, u32, u32, u32)> void WrapI_IUUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, u32, u32)> void WrapI_IUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<u32 func(u32, u32, u32, u32, u32, u32, u32)> void WrapU_UUUUUUU() {
|
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4), PARAM(5), PARAM(6));
|
|
|
|
RETURN(retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(u32, int, u32, u32)> void WrapI_UIUU() {
|
2014-04-17 04:41:33 +04:00
|
|
|
u32 retval = func(PARAM(0), PARAM(1), PARAM(2), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, const char *)> void WrapI_IC() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template <int func(int, const char *, const char *, u32, int)> void WrapI_ICCUI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), Memory::GetCharPointer(PARAM(2)), PARAM(3), PARAM(4));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template <int func(int, const char *, const char *, int)> void WrapI_ICCI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), Memory::GetCharPointer(PARAM(2)), PARAM(3));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template <int func(const char *, int, int)> void WrapI_CII() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(Memory::GetCharPointer(PARAM(0)), PARAM(1), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template <int func(int, const char *, int)> void WrapI_ICI() {
|
2014-04-17 04:41:33 +04:00
|
|
|
int retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, void *, void *, void *, void *, u32, int)> void WrapI_IVVVVUI(){
|
2014-05-02 02:50:36 +04:00
|
|
|
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) );
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(int, const char *, u32, void *, int, int, int)> void WrapI_ICUVIII(){
|
2014-05-02 02:50:36 +04:00
|
|
|
u32 retval = func(PARAM(0), Memory::GetCharPointer(PARAM(1)), PARAM(2), Memory::GetPointer(PARAM(3)), PARAM(4), PARAM(5), PARAM(6));
|
|
|
|
RETURN(retval);
|
2014-04-11 03:58:28 +04:00
|
|
|
}
|
2014-04-17 04:41:33 +04:00
|
|
|
|
2014-05-07 07:34:20 +04:00
|
|
|
template<int func(void*, u32)> void WrapI_VU(){
|
|
|
|
u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1));
|
|
|
|
RETURN(retval);
|
|
|
|
}
|
|
|
|
|
2014-05-16 04:17:30 +04:00
|
|
|
template<int func(void*, void*, u32)> void WrapI_VVU(){
|
|
|
|
u32 retval = func(Memory::GetPointer(PARAM(0)), Memory::GetPointer(PARAM(1)), PARAM(2));
|
|
|
|
RETURN(retval);
|
|
|
|
}
|
|
|
|
|
2014-05-07 07:34:20 +04:00
|
|
|
template<int func(void*, u32, void*, int)> void WrapI_VUVI(){
|
|
|
|
u32 retval = func(Memory::GetPointer(PARAM(0)), PARAM(1), Memory::GetPointer(PARAM(2)), PARAM(3));
|
|
|
|
RETURN(retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(void*, u32, u32, u32, u32, u32)> void WrapI_VUUUUU(){
|
2014-05-14 05:58:26 +04:00
|
|
|
u32 retval = func(NULL, PARAM(0), PARAM(1), PARAM(2), PARAM(3), PARAM(4));
|
2014-05-02 02:50:36 +04:00
|
|
|
RETURN(retval);
|
2014-04-17 06:19:23 +04:00
|
|
|
}
|
|
|
|
|
2014-04-17 04:41:33 +04:00
|
|
|
template<int func(u32, s64)> void WrapI_US64() {
|
2014-05-29 06:03:10 +04:00
|
|
|
int retval = func(PARAM(0), (((u64)PARAM(3) << 32) | PARAM(2)));
|
2014-05-18 07:37:25 +04:00
|
|
|
RETURN(retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
template<int func(void*, void*, u32, u32, s64)> void WrapI_VVUUS64() {
|
2014-05-29 06:03:10 +04:00
|
|
|
int retval = func(Memory::GetPointer(PARAM(5)), Memory::GetPointer(PARAM(1)), PARAM(2), PARAM(3), (((u64)PARAM(4) << 32) | PARAM(0)));
|
2014-04-17 04:41:33 +04:00
|
|
|
RETURN(retval);
|
|
|
|
}
|