Fix |thiscall| on linux for functions with arguments

The previous fix messed up parameter getters and setters.
This commit is contained in:
Peace-Maker
2018-06-02 13:36:52 +02:00
parent 0d24200a49
commit 9da7e666f6
5 changed files with 81 additions and 15 deletions
+4 -4
View File
@@ -2,17 +2,17 @@
#include "util.h"
#include <am-autoptr.h>
#ifdef KE_WINDOWS
#include "conventions/x86MsCdecl.h"
#include "conventions/x86MsThiscall.h"
#include "conventions/x86MsStdcall.h"
#include "conventions/x86GccCdecl.h"
#include "conventions/x86GccThiscall.h"
#ifdef KE_WINDOWS
typedef x86MsCdecl x86DetourCdecl;
typedef x86MsThiscall x86DetourThisCall;
typedef x86MsStdcall x86DetourStdCall;
#elif defined KE_LINUX
#include "conventions/x86GccCdecl.h"
#include "conventions/x86GccThiscall.h"
#include "conventions/x86MsStdcall.h"
typedef x86GccCdecl x86DetourCdecl;
typedef x86GccThiscall x86DetourThisCall;
// Uhm, stdcall on linux?