summaryrefslogtreecommitdiffstats
path: root/src/madc.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-06-09 19:01:02 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-06-09 19:01:02 +0200
commit766c56a693e8b1bd4293459bb256abdc0515a0b5 (patch)
treeda8e51003cf801344e22b0b2b2e28a48d6a8b74c /src/madc.cpp
parent452320b5ec31447a526735016fa07589cb848032 (diff)
downloadmad-766c56a693e8b1bd4293459bb256abdc0515a0b5.tar
mad-766c56a693e8b1bd4293459bb256abdc0515a0b5.zip
Teile der Namespaces Common und Net in den neuen Namespace Core verschoben
Diffstat (limited to 'src/madc.cpp')
-rw-r--r--src/madc.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/madc.cpp b/src/madc.cpp
index 64078c8..ea32f2f 100644
--- a/src/madc.cpp
+++ b/src/madc.cpp
@@ -17,12 +17,13 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "Net/ThreadManager.h"
+#include "Core/ConfigManager.h"
+#include "Core/Logger.h"
+#include "Core/ThreadManager.h"
+
#include "Common/ClientConnection.h"
-#include "Common/ConfigManager.h"
-#include "Common/Requests/IdentifyRequest.h"
-#include "Common/Logger.h"
#include "Common/RequestManager.h"
+#include "Common/Requests/IdentifyRequest.h"
#include "Client/CommandParser.h"
#include "Client/InformationManager.h"
@@ -47,10 +48,10 @@ int main(int argc, char *argv[]) {
std::exit(1);
}
- Net::ThreadManager::get()->init();
+ Core::ThreadManager::get()->init();
Client::InformationManager::get()->init();
- Common::ConfigManager::get()->finish();
+ Core::ConfigManager::get()->finish();
Common::ClientConnection *connection = new Common::ClientConnection;
@@ -96,13 +97,13 @@ int main(int argc, char *argv[]) {
Common::RequestManager::get()->unregisterConnection(connection);
}
- catch(Net::Exception &e) {
- Common::Logger::logf(Common::Logger::CRITICAL, "Connection error: %s", e.strerror().c_str());
+ catch(Core::Exception &e) {
+ Core::Logger::logf(Core::Logger::CRITICAL, "Connection error: %s", e.strerror().c_str());
}
delete connection;
- Common::Initializable::deinit();
+ Core::Initializable::deinit();
return 0;
}