aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/tier0.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/tier0.cpp')
-rw-r--r--NorthstarDedicatedTest/tier0.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/tier0.cpp b/NorthstarDedicatedTest/tier0.cpp
index 4b5234d0..bc1bbf46 100644
--- a/NorthstarDedicatedTest/tier0.cpp
+++ b/NorthstarDedicatedTest/tier0.cpp
@@ -55,6 +55,8 @@ void operator delete(void* p) throw()
//(*alloc)->m_vtable->Free(*alloc, p);
}
+// honestly this all really sucks and should be reworked
+
typedef void(*Tier0Error)(const char* fmt, ...);
void Error(const char* fmt, ...)
{
@@ -84,4 +86,12 @@ double Plat_FloatTime()
return tier0Func();
else
return 0.0f;
+}
+
+typedef CCommandLine*(*Tier0CommandLine)();
+CCommandLine* CommandLine()
+{
+ Tier0CommandLine tier0Func = (Tier0CommandLine)ResolveTier0Function("CommandLine");
+
+ return tier0Func();
} \ No newline at end of file