Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2006, 5:16:10 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: Taken out the old ResourceManager.
On the way, i had to desintegrate the old MD3-model loading process (via ResourceManager) MD3 is untouched, but also not loaded anymore neither from ResourceMangers nor from the WorldEntity

@patrick: MD3-ModelLoading class must be implemented… this should be quite easy, with the way MD3 is, and the new Resource-paradigm
cheers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/importer/movie_player.cc

    r9833 r9836  
    2424// include your own header
    2525#include "movie_player.h"
    26 #include "util/loading/new_resource_manager.h"
     26#include "util/loading/resource_manager.h"
    2727
    2828// header for debug output
     
    8989    return false;
    9090  // check whether file exists
    91   if(!Resources::NewResourceManager::getInstance()->checkFileInMainPath(filename))
     91  if(!Resources::ResourceManager::getInstance()->checkFileInMainPath(filename))
    9292  {
    9393    PRINTF(1)("Could not find %s\n", filename.c_str());
     
    9999
    100100  // Open video file
    101   if (av_open_input_file(&format_context, Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(filename).c_str(), NULL, 0, NULL) !=0 )
    102   {
    103     PRINTF(1)("Could not open %s\n", Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(filename).c_str());
     101  if (av_open_input_file(&format_context, Resources::ResourceManager::getInstance()->prependAbsoluteMainPath(filename).c_str(), NULL, 0, NULL) !=0 )
     102  {
     103    PRINTF(1)("Could not open %s\n", Resources::ResourceManager::getInstance()->prependAbsoluteMainPath(filename).c_str());
    104104    return false;
    105105  }
     
    108108  if (av_find_stream_info(format_context) < 0)
    109109  {
    110     PRINTF(1)("Could not find stream information in %s\n", Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(filename).c_str());
     110    PRINTF(1)("Could not find stream information in %s\n", Resources::ResourceManager::getInstance()->prependAbsoluteMainPath(filename).c_str());
    111111    return false;
    112112  }
     
    117117  if(video_stream == -1)
    118118  {
    119     PRINTF(1)("Could not find a video stream in %s\n", Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(filename).c_str());
     119    PRINTF(1)("Could not find a video stream in %s\n", Resources::ResourceManager::getInstance()->prependAbsoluteMainPath(filename).c_str());
    120120    return false;
    121121  }
Note: See TracChangeset for help on using the changeset viewer.