Skip to content

Commit

Permalink
Hackfix for RegisterCallbacks.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrapivin committed May 9, 2021
1 parent 675da02 commit b9ad967
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 1 deletion.
Binary file modified libmulti.gms2/extensions/libmulti/libmulti.dll
Binary file not shown.
18 changes: 18 additions & 0 deletions libmulti.gms2/extensions/libmulti/libmulti.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified libmulti.gms23/extensions/libmulti/libmulti.dll
Binary file not shown.
7 changes: 7 additions & 0 deletions libmulti.gms23/extensions/libmulti/libmulti.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified libmulti.gms23/extensions/libmulti/libmulti_x64.dll
Binary file not shown.
14 changes: 14 additions & 0 deletions libmulti.gmx/extensions/libmulti.extension.gmx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,20 @@
</ConfigOptions>
<ProxyFiles/>
<functions>
<function>
<name>RegisterCallbacks</name>
<externalName>RegisterCallbacks</externalName>
<kind>1</kind>
<help>RegisterCallbacks(please, dont, call, it) : Do not call this function at all.</help>
<returnType>1</returnType>
<argCount>4</argCount>
<args>
<arg>1</arg>
<arg>1</arg>
<arg>1</arg>
<arg>1</arg>
</args>
</function>
<function>
<name>libmulti_init</name>
<externalName>libmulti_init</externalName>
Expand Down
Binary file modified libmulti.gmx/extensions/libmulti/libmulti.dll
Binary file not shown.
3 changes: 2 additions & 1 deletion libmulti/libmulti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,12 @@ static LRESULT WINAPI WindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lPar
return ret;
}

dllx void RegisterCallbacks(char* p1, char* p2, char* p3, char* p4) {
dllx char* RegisterCallbacks(char* p1, char* p2, char* p3, char* p4) {
CBDispatch = reinterpret_cast<CBDispatch_t>(p1);
CBCreateDsMap = reinterpret_cast<CBCreateDsMap_t>(p2);
CBDsMapAddReal = reinterpret_cast<CBDsMapAddReal_t>(p3);
CBDsMapAddString = reinterpret_cast<CBDsMapAddString_t>(p4);
return nullptr; // TODO: Change this when GmxGen updates.
}

dllx double libmulti_init() {
Expand Down
2 changes: 2 additions & 0 deletions libmulti/libmulti.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ void libmulti_legacy_mutex_quit();
/* GmxGen stuff below, change as needed: */
#define dllx extern "C" __declspec(dllexport)

/// Do not call this function at all.
dllx char* RegisterCallbacks(char* please, char* dont, char* call, char* it);
///->real : Initializes the library.
dllx double libmulti_init();
///->real : Destroys all windows and frees the library resources.
Expand Down

0 comments on commit b9ad967

Please sign in to comment.