diff options
Diffstat (limited to 'DTCallbackCompatibility.c')
| -rw-r--r-- | DTCallbackCompatibility.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/DTCallbackCompatibility.c b/DTCallbackCompatibility.c new file mode 100644 index 0000000..d408954 --- /dev/null +++ b/DTCallbackCompatibility.c @@ -0,0 +1,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); + } +} |
