aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/tier0.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-26 01:24:13 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-26 01:24:13 +0100
commite98fc31a93dfc9a14db7bb5510d25df0226d6fd3 (patch)
tree0a14184023e46394ee7bc83846c4466f7e3f14c9 /NorthstarDedicatedTest/tier0.cpp
parentf083706eb05a22ec166d8e29b565f93785ad3cb0 (diff)
downloadNorthstarLauncher-e98fc31a93dfc9a14db7bb5510d25df0226d6fd3.tar.gz
NorthstarLauncher-e98fc31a93dfc9a14db7bb5510d25df0226d6fd3.zip
add CommandLine() and Cbuf_Execute
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