diff options
Diffstat (limited to 'src/NodeName.cpp')
-rw-r--r-- | src/NodeName.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/NodeName.cpp b/src/NodeName.cpp new file mode 100644 index 00000000..c2ffe048 --- /dev/null +++ b/src/NodeName.cpp @@ -0,0 +1,15 @@ +#include "common.h" +#include "patcher.h" +#include "NodeName.h" + +int &gPluginOffset = *(int*)0x64C610; + +#define NODENAMEEXT(o) (RWPLUGINOFFSET(char, o, gPluginOffset)) + +char* +GetFrameNodeName(RwFrame *frame) +{ + if(gPluginOffset < 0) + return nil; + return NODENAMEEXT(frame); +} |