VGearsDataPlugin.cpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (C) 2022 The V-Gears Team
  3. *
  4. * This file is part of V-Gears
  5. *
  6. * V-Gears is free software: you can redistribute it and/or modify it under
  7. * terms of the GNU General Public License as published by the Free Software
  8. * Foundation, version 3.0 (GPLv3) of the License.
  9. *
  10. * V-Gears is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #include "VGearsDataPlugin.h"
  16. #include "data/VGearsTexCodec.h"
  17. using Ogre::String;
  18. namespace VGears {
  19. const String DataPlugin::ms_plugin_name(
  20. "Plugin for Various FFVII File Formats"
  21. );
  22. DataPlugin::DataPlugin(){}
  23. const String& DataPlugin::getName() const{return ms_plugin_name;}
  24. void DataPlugin::install(){TexCodec::install();}
  25. void DataPlugin::initialise(){
  26. TexCodec::initialise();
  27. p_manager_ = new PFileManager();
  28. hrc_manager_ = new HRCFileManager();
  29. rsd_manager_ = new RSDFileManager();
  30. //palette_manager_ = new PaletteFileManager();
  31. //background_manager_ = new BackgroundFileManager();
  32. }
  33. void DataPlugin::shutdown(){
  34. TexCodec::shutdown();
  35. delete p_manager_;
  36. delete hrc_manager_;
  37. delete rsd_manager_;
  38. //delete palette_manager_;
  39. //delete background_manager_;
  40. }
  41. void DataPlugin::uninstall(){TexCodec::uninstall();}
  42. }