summaryrefslogblamecommitdiffstats
path: root/src/NodeName.cpp
blob: c2ffe04875981eefc646e824fa79b9d3681c4f72 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}