home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 5257 / source.7z / ps3_pssg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2012-02-13  |  716 b   |  50 lines

  1. #include "xentax.h"
  2. #include "ps3_pssg.h"
  3.  
  4. namespace PS3 { namespace PSSG {
  5.  
  6.  class extractor {
  7.   private :
  8.    std::string pathname;
  9.   private :
  10.   public :
  11.    bool extract(void);
  12.   public :
  13.    extractor(const char* pn);
  14.   ~extractor();
  15.  };
  16.  
  17. };};
  18.  
  19. namespace PS3 { namespace PSSG {
  20.  
  21.  extractor::extractor(const char* pn) : pathname(pn)
  22.  {
  23.  }
  24.  
  25.  extractor::~extractor()
  26.  {
  27.  }
  28.  
  29.  bool extractor::extract(void)
  30.  {
  31.   return true;
  32.  }
  33.  
  34. };};
  35.  
  36. namespace PS3 { namespace PSSG {
  37.  
  38. bool extract(void)
  39. {
  40.  char pathname[MAX_PATH];
  41.  GetModulePathname(pathname, MAX_PATH);
  42.  return extract(pathname);
  43. }
  44.  
  45. bool extract(const char* pathname)
  46. {
  47.  return extractor(pathname).extract();
  48. }
  49.  
  50. };};