Enhancement - Object integration

- Began the big integration festival by moving all objects out of
  the sandbox.
- Hooked up one error message to context.stringtable, just to make
  a point.
This commit is contained in:
Paul Beckingham 2009-05-31 01:49:24 -04:00
parent fe4c8f3a9d
commit 97145fbb07
11 changed files with 36 additions and 12 deletions

View file

@ -317,8 +317,13 @@ int main (int argc, char** argv)
srand (time (NULL));
#endif
// TODO 1.8.0 requires the Context.
Context context;
try
{
context.initialize (argc, argv);
// Load the config file from the home directory. If the file cannot be
// found, offer to create a sample one.
Config conf;
@ -365,7 +370,7 @@ int main (int argc, char** argv)
catch (...)
{
std::cerr << "Unknown error." << std::endl;
std::cerr << context.stringtable.get (100, "Unknown error.") << std::endl;
return -2;
}