summaryrefslogtreecommitdiffstats
path: root/DTCallbackCompatibility.c
blob: d4089542aac382b7c8ba0bec71e3da7b05ef64e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#strict 2

// NOTE: Make sure this is loaded after DTCallback.c and overloads the original functions

global func ObjectCallback(string name, targetOrFast, bool fast)
{
	if(GetType(targetOrFast) == C4V_C4Object)
	{
		return _inherited(name, fast, targetOrFast);
	}
	else
	{
		return _inherited(name, targetOrFast, fast);
	}
}

global func DefinitionCallback(string name, targetOrFast, bool fast)
{
	if(GetType(targetOrFast) == C4V_C4ID)
	{
		return _inherited(name, fast, targetOrFast);
	}
	else
	{
		return _inherited(name, targetOrFast, fast);
	}
}