diff options
Diffstat (limited to 'NorthstarDedicatedTest/tier0.cpp')
-rw-r--r-- | NorthstarDedicatedTest/tier0.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/tier0.cpp b/NorthstarDedicatedTest/tier0.cpp index 717432bf..ad533a9c 100644 --- a/NorthstarDedicatedTest/tier0.cpp +++ b/NorthstarDedicatedTest/tier0.cpp @@ -73,4 +73,17 @@ void Error(const char* fmt, ...) // tier0Func(buf); //else std::cout << "FATAL ERROR " << buf << std::endl; +} + +typedef double(*Tier0FloatTime)(); +double Plat_FloatTime() +{ + Tier0FloatTime tier0Func = (Tier0FloatTime)ResolveTier0Function("Plat_FloatTime"); + + if (tier0Func) + { + return tier0Func(); + } + else + return 0.0f; }
\ No newline at end of file |