Skip to content

Commit b9ad967

Browse files
committed
Hackfix for RegisterCallbacks.
1 parent 675da02 commit b9ad967

9 files changed

Lines changed: 43 additions & 1 deletion

File tree

0 Bytes
Binary file not shown.

libmulti.gms2/extensions/libmulti/libmulti.yy

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 Bytes
Binary file not shown.

libmulti.gms23/extensions/libmulti/libmulti.yy

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 Bytes
Binary file not shown.

libmulti.gmx/extensions/libmulti.extension.gmx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@
4545
</ConfigOptions>
4646
<ProxyFiles/>
4747
<functions>
48+
<function>
49+
<name>RegisterCallbacks</name>
50+
<externalName>RegisterCallbacks</externalName>
51+
<kind>1</kind>
52+
<help>RegisterCallbacks(please, dont, call, it) : Do not call this function at all.</help>
53+
<returnType>1</returnType>
54+
<argCount>4</argCount>
55+
<args>
56+
<arg>1</arg>
57+
<arg>1</arg>
58+
<arg>1</arg>
59+
<arg>1</arg>
60+
</args>
61+
</function>
4862
<function>
4963
<name>libmulti_init</name>
5064
<externalName>libmulti_init</externalName>
0 Bytes
Binary file not shown.

libmulti/libmulti.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,12 @@ static LRESULT WINAPI WindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lPar
378378
return ret;
379379
}
380380

381-
dllx void RegisterCallbacks(char* p1, char* p2, char* p3, char* p4) {
381+
dllx char* RegisterCallbacks(char* p1, char* p2, char* p3, char* p4) {
382382
CBDispatch = reinterpret_cast<CBDispatch_t>(p1);
383383
CBCreateDsMap = reinterpret_cast<CBCreateDsMap_t>(p2);
384384
CBDsMapAddReal = reinterpret_cast<CBDsMapAddReal_t>(p3);
385385
CBDsMapAddString = reinterpret_cast<CBDsMapAddString_t>(p4);
386+
return nullptr; // TODO: Change this when GmxGen updates.
386387
}
387388

388389
dllx double libmulti_init() {

libmulti/libmulti.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ void libmulti_legacy_mutex_quit();
3535
/* GmxGen stuff below, change as needed: */
3636
#define dllx extern "C" __declspec(dllexport)
3737

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

0 commit comments

Comments
 (0)