Added an option to skip missing config files

This commit is contained in:
Kayne Ruse
2014-12-16 21:49:50 +11:00
parent 06eb1f2e9e
commit 3399053e64
5 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void ClientApplication::Init(int argc, char* argv[]) {
//load the prerequisites
ConfigUtility& config = ConfigUtility::GetSingleton();
config.Load("rsc/config.cfg", argc, argv);
config.Load("rsc/config.cfg", false, argc, argv);
//-------------------------
//Initialize the APIs
+1 -1
View File
@@ -36,7 +36,7 @@ int main(int argc, char* argv[]) {
ConfigUtility::CreateSingleton();
UDPNetworkUtility::CreateSingleton();
//call the server's routines
//call the client's routines
ClientApplication::CreateSingleton();
ClientApplication& app = ClientApplication::GetSingleton();