Skip to content

Commit 169a45a

Browse files
committedDec 3, 2024·
fixed embarrassingly wrong plugin order
1 parent 15cb2cb commit 169a45a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎src/plg.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ PluginList::registerPlugin(int32 size, uint32 id,
185185
p->rightsCallback = nil;
186186
p->alwaysCallback = nil;
187187
p->parentList = this;
188-
this->plugins.add(&p->inParentList);
189-
allPlugins.add(&p->inGlobalList);
188+
this->plugins.append(&p->inParentList);
189+
allPlugins.append(&p->inGlobalList);
190190
return p->offset;
191191
}
192192

‎src/rwbase.h

+4
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,13 @@ typedef int32 bool32;
7070
typedef uint8 byte;
7171
typedef uint32 uint;
7272

73+
#ifndef nil
7374
#define nil NULL
75+
#endif
7476

77+
#ifndef nelem
7578
#define nelem(A) (sizeof(A) / sizeof A[0])
79+
#endif
7680

7781
#ifdef __GNUC__
7882
#define RWALIGN(n) __attribute__ ((aligned (n)))

0 commit comments

Comments
 (0)
Please sign in to comment.