Skip to content

Commit

Permalink
fixed embarrassingly wrong plugin order
Browse files Browse the repository at this point in the history
  • Loading branch information
aap committed Dec 3, 2024
1 parent 15cb2cb commit 169a45a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ PluginList::registerPlugin(int32 size, uint32 id,
p->rightsCallback = nil;
p->alwaysCallback = nil;
p->parentList = this;
this->plugins.add(&p->inParentList);
allPlugins.add(&p->inGlobalList);
this->plugins.append(&p->inParentList);
allPlugins.append(&p->inGlobalList);
return p->offset;
}

Expand Down
4 changes: 4 additions & 0 deletions src/rwbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ typedef int32 bool32;
typedef uint8 byte;
typedef uint32 uint;

#ifndef nil
#define nil NULL
#endif

#ifndef nelem
#define nelem(A) (sizeof(A) / sizeof A[0])
#endif

#ifdef __GNUC__
#define RWALIGN(n) __attribute__ ((aligned (n)))
Expand Down

0 comments on commit 169a45a

Please sign in to comment.