diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-29 16:04:03 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-29 16:04:03 +0000 |
commit | 8774e65cc503318005f34c133cbaee21b18fc144 (patch) | |
tree | 907c120079597398abfda5d4791ce58573009e7c /src/core/application.cc | |
parent | 2c7d185fdb03d17475deb9af1edaa82ffa51d4b6 (diff) |
Parse command line options after engine initialization.
Diffstat (limited to 'src/core/application.cc')
-rw-r--r-- | src/core/application.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/application.cc b/src/core/application.cc index f21dcad..15179c9 100644 --- a/src/core/application.cc +++ b/src/core/application.cc @@ -371,11 +371,8 @@ void Application::load_config() char line[MAXCMDSIZE]; while (ifs.getline(line, MAXCMDSIZE - 1)) { if (line[0] && line[0] != '#' && line[0] != ';') - cmd() << line << '\n'; + CommandBuffer::exec(line); } - - // execute commands in the buffer - CommandBuffer::exec(); } void Application::load_autoexec() @@ -409,10 +406,8 @@ void Application::load_autoexec() char line[MAXCMDSIZE]; while (ifs.getline(line, MAXCMDSIZE - 1)) { if (line[0] && line[0] != '#' && line[0] != ';') - cmd() << line << '\n'; + CommandBuffer::exec(line); } - - CommandBuffer::exec(); } } |