Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9833 in orxonox.OLD for branches/new_class_id/src/lib/network


Ignore:
Timestamp:
Sep 26, 2006, 4:59:49 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: almost killed off the old ResourceManager

Location:
branches/new_class_id/src/lib/network
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/network/monitor/network_stats_widget.cc

    r9715 r9833  
    2020#include "peer_info.h"
    2121
     22#include "loading/new_resource_manager.h"
     23
    2224#include "multi_type.h"
    2325
    2426#include "shell_command.h"
    25 
    26 #include "loading/resource_manager.h"
    2727
    2828// this fcuk does not work!
     
    5656{
    5757  if(_font == NULL)
    58     _font = new Font(ResourceManager::getInstance()->getDataDir() + "/fonts/arial.ttf", 20);
     58    _font = new Font(Resources::NewResourceManager::getInstance()->mainGlobalPath().name() + "/fonts/arial.ttf", 20);
    5959
    6060  //this->_name.setFont(*_font);
  • branches/new_class_id/src/lib/network/network_stream.cc

    r9757 r9833  
    3636#include "zip.h"
    3737
    38 #include "src/lib/util/loading/resource_manager.h"
    39 
    4038#include "network_log.h"
    4139
    4240#include "player_stats.h"
    4341
    44 #include "lib/util/loading/factory.h"
     42#include "loading/factory.h"
     43#include "loading/new_resource_manager.h"
    4544
    4645#include "debug.h"
     
    13001299    length = remainingBytesToWriteToDict;
    13011300
    1302   std::string fileName = ResourceManager::getInstance()->getDataDir();
     1301  std::string fileName = Resources::NewResourceManager::getInstance()->mainGlobalPath().name();
    13031302  fileName += "/dicts/newdict";
    13041303
  • branches/new_class_id/src/lib/network/proxy/network_settings.cc

    r9715 r9833  
    2121#include "shared_network_data.h"
    2222
    23 #include "loading/resource_manager.h"
    2423#include "loading/load_param.h"
    25 
     24#include "loading/new_resource_manager.h"
    2625#include "debug.h"
    2726
     
    6564void NetworkSettings::loadData()
    6665{
    67   std::string fileName = ResourceManager::getInstance()->getDataDir();
     66  std::string fileName = Resources::NewResourceManager::getInstance()->mainGlobalPath().name();
    6867  fileName += "configs/network_settings.conf";
    6968
  • branches/new_class_id/src/lib/network/zip.cc

    r8623 r9833  
    1515
    1616#include "zip.h"
    17 
    18 #include "src/lib/util/loading/resource_manager.h"
     17#include "loading/new_resource_manager.h"
    1918#include "debug.h"
    2019
     
    5150int Zip::loadDictionary( std::string name )
    5251{
    53   std::string fileName = ResourceManager::getInstance()->getDataDir();
     52  std::string fileName = Resources::NewResourceManager::getInstance()->mainGlobalPath().name();
    5453  //PRINTF(0)("datadir: %s\n", fileName.c_str());
    5554  fileName = fileName + "/dicts/" + name;
Note: See TracChangeset for help on using the changeset viewer.