Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/dedicated/dedicated.cc')
-rw-r--r--src/dedicated/dedicated.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/dedicated/dedicated.cc b/src/dedicated/dedicated.cc
index 63a1f43..adaba15 100644
--- a/src/dedicated/dedicated.cc
+++ b/src/dedicated/dedicated.cc
@@ -18,11 +18,12 @@ namespace dedicated
void run(int count, char **arguments)
{
- std::cout << core::name() << " " << core::version() << std::endl;
-
- for (int i = 0; i < count; i++)
- std::cout << arguments[i] << " ";
- std::cout << std::endl;
+
+ con_print << " command line ";
+ for (int i = 0; i < count; i++) {
+ con_print << arguments[i] << " ";
+ }
+ con_print << std::endl;
Dedicated app;
app.init(count, arguments);
@@ -41,6 +42,9 @@ void Dedicated::init(int count, char **arguments)
core::Cvar::set("sv_dedicated", "1", core::Cvar::ReadOnly);
core::Application::init(count, arguments);
+
+ // start logging
+ console()->open_log();
// the command line is in the buffer, execute it
core::CommandBuffer::exec();