Explorar o código

Q-Gears renamed to V-Gears everywhere.

Iñigo Valentin %!s(int64=3) %!d(string=hai) anos
pai
achega
337e2a41e4
Modificáronse 100 ficheiros con 698 adicións e 698 borrados
  1. 5 5
      CIBuild/osx/dependencies.sh
  2. 2 2
      CIBuild/windows/build.bat
  3. 2 2
      CIBuild/windows/build64.bat
  4. 1 1
      CMakeLists.txt
  5. 11 11
      PlugIns/Data/CMakeLists.txt
  6. 8 8
      PlugIns/Data/include/VGearsDataPlugin.h
  7. 0 0
      PlugIns/Data/misc/VGearsData.def
  8. 3 3
      PlugIns/Data/src/VGearsDataPlugin.cpp
  9. 5 5
      PlugIns/Data/src/VGearsDataPluginDll.cpp
  10. 2 2
      PlugIns/Data/test/tex_file_info.cpp
  11. 55 55
      PlugIns/Data/test/tex_file_test.cpp
  12. 1 1
      SupportedGames/FinalFantasy7/CMakeLists.txt
  13. 25 25
      Tests/FinalFantasy7/src/test_FF7FLevelFileSerializer.cpp
  14. 15 15
      Tests/FinalFantasy7/src/test_FF7ModelListFileSerializer.cpp
  15. 9 9
      Tests/FinalFantasy7/src/test_FF7WalkmeshFileSerializer.cpp
  16. 0 78
      Tests/QGearsMain/CMakeLists.txt
  17. 78 0
      Tests/VGearsMain/CMakeLists.txt
  18. 0 0
      Tests/VGearsMain/misc/map.xml
  19. 0 0
      Tests/VGearsMain/misc/reference.a
  20. 0 0
      Tests/VGearsMain/misc/reference.background
  21. 0 0
      Tests/VGearsMain/misc/reference.background2d.xml
  22. 0 0
      Tests/VGearsMain/misc/reference.cam_matrix
  23. 0 0
      Tests/VGearsMain/misc/reference.lgp
  24. 0 0
      Tests/VGearsMain/misc/reference.p
  25. 0 0
      Tests/VGearsMain/misc/reference.palette
  26. 0 0
      Tests/VGearsMain/misc/reference.rsd
  27. 0 0
      Tests/VGearsMain/misc/reference.skeleton
  28. 0 0
      Tests/VGearsMain/misc/reference_lzs.compressed
  29. 0 0
      Tests/VGearsMain/misc/reference_lzs.decompressed
  30. 0 0
      Tests/VGearsMain/misc/reference_manual_object.mesh.xml
  31. 0 0
      Tests/VGearsMain/misc/test_hrc_empty.hrc
  32. 0 0
      Tests/VGearsMain/misc/test_hrc_simple.hrc
  33. 0 0
      Tests/VGearsMain/misc/walkmesh.xml
  34. 17 17
      Tests/VGearsMain/src/test_MapSerializer.cpp
  35. 5 5
      Tests/VGearsMain/src/test_TxzSerializer.cpp
  36. 10 10
      Tests/VGearsMain/src/test_VGearsAFileSerializer.cpp
  37. 4 4
      Tests/VGearsMain/src/test_VGearsBackground2D.cpp
  38. 7 7
      Tests/VGearsMain/src/test_VGearsBackground2DFileSerializer.cpp
  39. 15 15
      Tests/VGearsMain/src/test_VGearsBackgroundFileSerializer.cpp
  40. 5 5
      Tests/VGearsMain/src/test_VGearsCameraMatrixFileSerializer.cpp
  41. 10 10
      Tests/VGearsMain/src/test_VGearsHRCSerializer.cpp
  42. 5 5
      Tests/VGearsMain/src/test_VGearsLGPArchive.cpp
  43. 4 4
      Tests/VGearsMain/src/test_VGearsLZSDataStream.cpp
  44. 3 3
      Tests/VGearsMain/src/test_VGearsManualObject.cpp
  45. 11 11
      Tests/VGearsMain/src/test_VGearsMapFileXMLSerializer.cpp
  46. 17 17
      Tests/VGearsMain/src/test_VGearsPFile.cpp
  47. 19 19
      Tests/VGearsMain/src/test_VGearsPFileSerializer.cpp
  48. 6 6
      Tests/VGearsMain/src/test_VGearsPaletteFileSerializer.cpp
  49. 5 5
      Tests/VGearsMain/src/test_VGearsRSDSerializer.cpp
  50. 4 4
      Tests/VGearsMain/src/test_VGearsRingBuffer.cpp
  51. 11 11
      Tests/VGearsMain/src/test_VGearsWalkmeshFileXMLSerializer.cpp
  52. 1 1
      Tests/VGearsMain/src/test_all.cpp
  53. 3 3
      V-Gears-Installer/CMakeLists.txt
  54. 1 1
      V-Gears-Installer/common/FontFile.cpp
  55. 1 1
      V-Gears-Installer/common/OgreBase.cpp
  56. 2 2
      V-Gears-Installer/common/include/VGearsUtility.h
  57. 2 2
      V-Gears-Installer/common/src/VGearsUtility.cpp
  58. 1 1
      V-Gears-Installer/flevel/CMakeLists.txt
  59. 2 2
      V-Gears-Installer/flevel/flevel.cpp
  60. 10 10
      V-Gears-Installer/include/ff7DataInstaller.h
  61. 2 2
      V-Gears-Installer/include/mainwindow.h
  62. 1 1
      V-Gears-Installer/lzs/CMakeLists.txt
  63. 3 3
      V-Gears-Installer/src/CMakeLists.txt
  64. 73 73
      V-Gears-Installer/src/ff7DataInstaller.cpp
  65. 1 1
      V-Gears-Installer/src/ff7FieldTextWriter.cpp
  66. 19 19
      V-Gears-Installer/src/mainwindow.cpp
  67. 7 7
      V-Gears-Installer/src/mainwindow.ui
  68. 115 115
      V-Gears/CMakeLists.txt
  69. 2 2
      V-Gears/include/FF7Character.h
  70. 1 1
      V-Gears/include/FF7Common.h
  71. 1 1
      V-Gears/include/VGearsGameState.h
  72. 6 6
      V-Gears/include/VGearsPrerequisites.h
  73. 2 2
      V-Gears/include/common/FinalFantasy7/FF7NameLookup.h
  74. 2 2
      V-Gears/include/common/LzsFile.h
  75. 1 1
      V-Gears/include/common/TypeDefine.h
  76. 1 1
      V-Gears/include/common/VGearsApplication.h
  77. 1 1
      V-Gears/include/common/VGearsManualObject.h
  78. 4 4
      V-Gears/include/common/VGearsResource.h
  79. 1 1
      V-Gears/include/common/VGearsStringUtil.h
  80. 1 1
      V-Gears/include/core/Assert.h
  81. 7 7
      V-Gears/include/core/Background2D.h
  82. 2 2
      V-Gears/include/core/Background2DAnimation.h
  83. 1 1
      V-Gears/include/core/CameraManager.h
  84. 5 5
      V-Gears/include/core/ConfigCmdManagerCommands.h
  85. 2 2
      V-Gears/include/core/Console.h
  86. 1 1
      V-Gears/include/core/DialogsManager.h
  87. 1 1
      V-Gears/include/core/EntityManager.h
  88. 1 1
      V-Gears/include/core/Event.h
  89. 2 2
      V-Gears/include/core/InputManager.h
  90. 1 1
      V-Gears/include/core/ScriptManager.h
  91. 3 3
      V-Gears/include/core/ScriptManagerBinds.h
  92. 2 2
      V-Gears/include/core/Walkmesh.h
  93. 2 2
      V-Gears/include/data/FinalFantasy7/FF7ModelListFile.h
  94. 3 3
      V-Gears/include/data/FinalFantasy7/FF7ModelListFileManager.h
  95. 2 2
      V-Gears/include/data/FinalFantasy7/FF7ModelListFileSerializer.h
  96. 2 2
      V-Gears/include/data/VGearsAFile.h
  97. 4 4
      V-Gears/include/data/VGearsAFileManager.h
  98. 3 3
      V-Gears/include/data/VGearsAFileSerializer.h
  99. 3 3
      V-Gears/include/data/VGearsBackgroundFile.h
  100. 4 4
      V-Gears/include/data/VGearsBackgroundFileManager.h

+ 5 - 5
CIBuild/osx/dependencies.sh

@@ -13,12 +13,12 @@ unzip OgreDependencies_OSX_libc._20130610.zip >> extract.log
 echo "Setup env vars"
 echo "Setup env vars"
 #export OGRE_HOME="${PWD}/../OgreSDK"
 #export OGRE_HOME="${PWD}/../OgreSDK"
 #export OGRE_SDK="${PWD}/../OgreSDK"
 #export OGRE_SDK="${PWD}/../OgreSDK"
-export OGRE_HOME="/Users/travis/build/q-gears/q-gears/OgreSDK"
-export OGRE_SDK="/Users/travis/build/q-gears/q-gears/OgreSDK"
-export OIS_HOME="/Users/travis/build/q-gears/q-gears/Dependencies"
+export OGRE_HOME="/Users/travis/build/v-gears/v-gears/OgreSDK"
+export OGRE_SDK="/Users/travis/build/v-gears/v-gears/OgreSDK"
+export OIS_HOME="/Users/travis/build/v-gears/v-gears/Dependencies"
 
 
-# /Users/travis/build/q-gears/q-gears/Dependencies;
-# /Users/travis/build/q-gears/q-gears/../Dependencies
+# /Users/travis/build/v-gears/v-gears/Dependencies;
+# /Users/travis/build/v-gears/v-gears/../Dependencies
 
 
 echo "Env vars are $OGRE_SDK and $OIS_HOME"
 echo "Env vars are $OGRE_SDK and $OIS_HOME"
 # Overwrite broken symlink with actual file
 # Overwrite broken symlink with actual file

+ 2 - 2
CIBuild/windows/build.bat

@@ -1,4 +1,4 @@
-msbuild /m QGears.sln /p:Configuration=Release
+msbuild /m VGears.sln /p:Configuration=Release
 if %errorlevel% neq 0 exit /b %errorlevel%
 if %errorlevel% neq 0 exit /b %errorlevel%
 
 
 cpack -C "Release"
 cpack -C "Release"
@@ -15,5 +15,5 @@ cd %CURRENT%
 mkdir windows
 mkdir windows
 cd .. 
 cd .. 
 dir
 dir
-move q-gears\build\*.msi %CURRENT%\windows
+move v-gears\build\*.msi %CURRENT%\windows
 upload %CURRENT%
 upload %CURRENT%

+ 2 - 2
CIBuild/windows/build64.bat

@@ -1,4 +1,4 @@
-msbuild /m QGears.sln /p:Configuration=Release
+msbuild /m VGears.sln /p:Configuration=Release
 if %errorlevel% neq 0 exit /b %errorlevel%
 if %errorlevel% neq 0 exit /b %errorlevel%
 
 
 cpack -C "Release"
 cpack -C "Release"
@@ -15,7 +15,7 @@ cd %CURRENT%
 mkdir windows
 mkdir windows
 cd .. 
 cd .. 
 dir
 dir
-move q-gears\build\*.msi %CURRENT%\windows
+move v-gears\build\*.msi %CURRENT%\windows
 upload %CURRENT%
 upload %CURRENT%
 
 
 
 

+ 1 - 1
CMakeLists.txt

@@ -84,7 +84,7 @@ endif()
 
 
 set(VGears_SOURCE_DIR ${CMAKE_SOURCE_DIR})
 set(VGears_SOURCE_DIR ${CMAKE_SOURCE_DIR})
 
 
-message("QGears_SOURCE_DIR ${QGears_SOURCE_DIR}")
+message("VGears_SOURCE_DIR ${VGears_SOURCE_DIR}")
 message("VGears_SOURCE_DIR ${VGears_SOURCE_DIR}")
 message("VGears_SOURCE_DIR ${VGears_SOURCE_DIR}")
 
 
 set(CMAKE_MODULE_PATH "${OGRE_CMAKE_MODULE_PATH};${CMAKE_MODULE_PATH}")
 set(CMAKE_MODULE_PATH "${OGRE_CMAKE_MODULE_PATH};${CMAKE_MODULE_PATH}")

+ 11 - 11
PlugIns/Data/CMakeLists.txt

@@ -2,18 +2,18 @@ set(V-Gears_SOURCE_DIR ../../V-Gears)
 
 
 # define header and source files for the library
 # define header and source files for the library
 set(HEADER_FILES
 set(HEADER_FILES
-  ${V-Gears_SOURCE_DIR}/include/QGearsPrerequisites.h
-  ${V-Gears_SOURCE_DIR}/include/common/QGearsManualObject.h
-  ${V-Gears_SOURCE_DIR}/include/common/QGearsStringUtil.h
+  ${V-Gears_SOURCE_DIR}/include/VGearsPrerequisites.h
+  ${V-Gears_SOURCE_DIR}/include/common/VGearsManualObject.h
+  ${V-Gears_SOURCE_DIR}/include/common/VGearsStringUtil.h
   ${V-Gears_SOURCE_DIR}/include/common/TypeDefine.h
   ${V-Gears_SOURCE_DIR}/include/common/TypeDefine.h
-  include/QGearsDataPlugin.h
+  include/VGearsDataPlugin.h
 )
 )
 set(SOURCE_FILES
 set(SOURCE_FILES
-  ${V-Gears_SOURCE_DIR}/src/common/QGearsManualObject.cpp
-  ${V-Gears_SOURCE_DIR}/src/common/QGearsStringUtil.cpp
+  ${V-Gears_SOURCE_DIR}/src/common/VGearsManualObject.cpp
+  ${V-Gears_SOURCE_DIR}/src/common/VGearsStringUtil.cpp
   ${V-Gears_SOURCE_DIR}/src/common/TypeDefine.cpp
   ${V-Gears_SOURCE_DIR}/src/common/TypeDefine.cpp
-  src/QGearsDataPlugin.cpp
-  src/QGearsDataPluginDll.cpp
+  src/VGearsDataPlugin.cpp
+  src/VGearsDataPluginDll.cpp
 )
 )
 
 
 include_directories(
 include_directories(
@@ -47,13 +47,13 @@ set(LIBRARIES
 
 
 target_link_libraries(DataPlugin ${LIBRARIES})
 target_link_libraries(DataPlugin ${LIBRARIES})
 
 
-if(NOT QGEARS_STATIC)
+if(NOT VGEARS_STATIC)
   set_target_properties(DataPlugin PROPERTIES
   set_target_properties(DataPlugin PROPERTIES
-    COMPILE_DEFINITIONS QGEARS_DATAPLUGIN_EXPORTS
+    COMPILE_DEFINITIONS VGEARS_DATAPLUGIN_EXPORTS
   )
   )
     if(WIN32 OR APPLE)
     if(WIN32 OR APPLE)
       install(TARGETS DataPlugin LIBRARY DESTINATION .)
       install(TARGETS DataPlugin LIBRARY DESTINATION .)
     else()
     else()
-      install(TARGETS DataPlugin LIBRARY DESTINATION ./lib/q-gears/plugins/ )
+      install(TARGETS DataPlugin LIBRARY DESTINATION ./lib/v-gears/plugins/ )
     endif()
     endif()
 endif()
 endif()

+ 8 - 8
PlugIns/Data/include/QGearsDataPlugin.h → PlugIns/Data/include/VGearsDataPlugin.h

@@ -17,14 +17,14 @@
 
 
 #include <OgrePlugin.h>
 #include <OgrePlugin.h>
 
 
-#include "data/QGearsBackgroundFileManager.h"
-#include "data/QGearsPaletteFileManager.h"
-#include "data/QGearsPFileManager.h"
-#include "data/QGearsHRCFileManager.h"
-#include "data/QGearsRSDFileManager.h"
-#include "data/QGearsTexCodec.h"
-
-namespace QGears {
+#include "data/VGearsBackgroundFileManager.h"
+#include "data/VGearsPaletteFileManager.h"
+#include "data/VGearsPFileManager.h"
+#include "data/VGearsHRCFileManager.h"
+#include "data/VGearsRSDFileManager.h"
+#include "data/VGearsTexCodec.h"
+
+namespace VGears {
 
 
     /**
     /**
      * Plugin instance for various FFVII Data Formats
      * Plugin instance for various FFVII Data Formats

+ 0 - 0
PlugIns/Data/misc/QGearsData.def → PlugIns/Data/misc/VGearsData.def


+ 3 - 3
PlugIns/Data/src/QGearsDataPlugin.cpp → PlugIns/Data/src/VGearsDataPlugin.cpp

@@ -13,12 +13,12 @@
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  */
  */
 
 
-#include "QGearsDataPlugin.h"
-#include "data/QGearsTexCodec.h"
+#include "VGearsDataPlugin.h"
+#include "data/VGearsTexCodec.h"
 
 
 using Ogre::String;
 using Ogre::String;
 
 
-namespace QGears {
+namespace VGears {
 
 
     const String DataPlugin::ms_plugin_name(
     const String DataPlugin::ms_plugin_name(
       "Plugin for Various FFVII File Formats"
       "Plugin for Various FFVII File Formats"

+ 5 - 5
PlugIns/Data/src/QGearsDataPluginDll.cpp → PlugIns/Data/src/VGearsDataPluginDll.cpp

@@ -14,20 +14,20 @@
  */
  */
 
 
 #include <OgreRoot.h>
 #include <OgreRoot.h>
-#include "QGearsDataPlugin.h"
+#include "VGearsDataPlugin.h"
 
 
-#ifndef QGEARS_STATIC_LIB
+#ifndef VGEARS_STATIC_LIB
 
 
-namespace QGears{
+namespace VGears{
 
 
     DataPlugin* data_plugin(NULL);
     DataPlugin* data_plugin(NULL);
 
 
-    extern "C" void _QGearsExport dllStartPlugin( void ){
+    extern "C" void _VGearsExport dllStartPlugin( void ){
         data_plugin = new DataPlugin();
         data_plugin = new DataPlugin();
         // Register.
         // Register.
         Ogre::Root::getSingleton().installPlugin(data_plugin);
         Ogre::Root::getSingleton().installPlugin(data_plugin);
     }
     }
-    extern "C" void _QGearsExport dllStopPlugin( void ){
+    extern "C" void _VGearsExport dllStopPlugin( void ){
         Ogre::Root::getSingleton().uninstallPlugin(data_plugin);
         Ogre::Root::getSingleton().uninstallPlugin(data_plugin);
         delete data_plugin;
         delete data_plugin;
         data_plugin = NULL;
         data_plugin = NULL;

+ 2 - 2
PlugIns/Data/test/tex_file_info.cpp

@@ -20,7 +20,7 @@
 #include <boost/filesystem/fstream.hpp>
 #include <boost/filesystem/fstream.hpp>
 #include <boost/program_options.hpp>
 #include <boost/program_options.hpp>
 #include <OgreDataStream.h>
 #include <OgreDataStream.h>
-#include "data/QGearsTexFile.h"
+#include "data/VGearsTexFile.h"
 
 
 using std::back_inserter;
 using std::back_inserter;
 using std::copy;
 using std::copy;
@@ -39,7 +39,7 @@ void pintFileInfo(const bfs::path &tex_path){
     bfs::ifstream *ifs(OGRE_NEW_T(bfs::ifstream, Ogre::MEMCATEGORY_GENERAL)(tex_path, bfs::ifstream::binary));
     bfs::ifstream *ifs(OGRE_NEW_T(bfs::ifstream, Ogre::MEMCATEGORY_GENERAL)(tex_path, bfs::ifstream::binary));
     Ogre::FileStreamDataStream *stream(OGRE_NEW Ogre::FileStreamDataStream(ifs));
     Ogre::FileStreamDataStream *stream(OGRE_NEW Ogre::FileStreamDataStream(ifs));
     Ogre::DataStreamPtr input(stream);
     Ogre::DataStreamPtr input(stream);
-    QGears::TexFile tex;
+    VGears::TexFile tex;
     tex.readHeader(input);
     tex.readHeader(input);
     cout << endl << " size: "
     cout << endl << " size: "
       << tex.m_header.image_data.width
       << tex.m_header.image_data.width

+ 55 - 55
PlugIns/Data/test/tex_file_test.cpp

@@ -28,93 +28,93 @@ THE SOFTWARE.
 
 
 #include <OgreDataStream.h>
 #include <OgreDataStream.h>
 
 
-#include "data/QGearsTexFile.h"
+#include "data/VGearsTexFile.h"
 
 
-#define BOOST_TEST_MODULE QGearsTexFile
+#define BOOST_TEST_MODULE VGearsTexFile
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 
 
 BOOST_AUTO_TEST_CASE( header_size )
 BOOST_AUTO_TEST_CASE( header_size )
 {
 {
-    BOOST_CHECK_EQUAL( 0x18, sizeof( QGears::TexFile::BitData     ) );
-    BOOST_CHECK_EQUAL( 0x10, sizeof( QGears::TexFile::ImageData   ) );
-    BOOST_CHECK_EQUAL( 0x14, sizeof( QGears::TexFile::PaletteData ) );
-    BOOST_CHECK_EQUAL( 0x10, sizeof( QGears::TexFile::RGBAData    ) );
-    BOOST_CHECK_EQUAL( 0x58, sizeof( QGears::TexFile::PixelFormat ) );
-    BOOST_CHECK_EQUAL( 0xEC, sizeof( QGears::TexFile::Header      ) );
-
-    QGears::TexFile::Header header;
-    BOOST_CHECK_EQUAL( sizeof( QGears::TexFile::Header ), sizeof( header ) );
+    BOOST_CHECK_EQUAL( 0x18, sizeof( VGears::TexFile::BitData     ) );
+    BOOST_CHECK_EQUAL( 0x10, sizeof( VGears::TexFile::ImageData   ) );
+    BOOST_CHECK_EQUAL( 0x14, sizeof( VGears::TexFile::PaletteData ) );
+    BOOST_CHECK_EQUAL( 0x10, sizeof( VGears::TexFile::RGBAData    ) );
+    BOOST_CHECK_EQUAL( 0x58, sizeof( VGears::TexFile::PixelFormat ) );
+    BOOST_CHECK_EQUAL( 0xEC, sizeof( VGears::TexFile::Header      ) );
+
+    VGears::TexFile::Header header;
+    BOOST_CHECK_EQUAL( sizeof( VGears::TexFile::Header ), sizeof( header ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( bit_data_offset )
 BOOST_AUTO_TEST_CASE( bit_data_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::TexFile::BitData, color_min ) );
-    BOOST_CHECK_EQUAL( 0x04, offsetof( QGears::TexFile::BitData, color_max ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::TexFile::BitData, alpha_min ) );
-    BOOST_CHECK_EQUAL( 0x0C, offsetof( QGears::TexFile::BitData, alpha_max ) );
-    BOOST_CHECK_EQUAL( 0x10, offsetof( QGears::TexFile::BitData, pixel_min ) );
-    BOOST_CHECK_EQUAL( 0x14, offsetof( QGears::TexFile::BitData, pixel_max ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::TexFile::BitData, color_min ) );
+    BOOST_CHECK_EQUAL( 0x04, offsetof( VGears::TexFile::BitData, color_max ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::TexFile::BitData, alpha_min ) );
+    BOOST_CHECK_EQUAL( 0x0C, offsetof( VGears::TexFile::BitData, alpha_max ) );
+    BOOST_CHECK_EQUAL( 0x10, offsetof( VGears::TexFile::BitData, pixel_min ) );
+    BOOST_CHECK_EQUAL( 0x14, offsetof( VGears::TexFile::BitData, pixel_max ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( palette_data_offset )
 BOOST_AUTO_TEST_CASE( palette_data_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::TexFile::PaletteData, flag        ) );
-    BOOST_CHECK_EQUAL( 0x04, offsetof( QGears::TexFile::PaletteData, index_bits  ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::TexFile::PaletteData, index_8bit  ) );
-    BOOST_CHECK_EQUAL( 0x0C, offsetof( QGears::TexFile::PaletteData, total_color_count ) );
-    BOOST_CHECK_EQUAL( 0x10, offsetof( QGears::TexFile::PaletteData, colors_per_palette ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::TexFile::PaletteData, flag        ) );
+    BOOST_CHECK_EQUAL( 0x04, offsetof( VGears::TexFile::PaletteData, index_bits  ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::TexFile::PaletteData, index_8bit  ) );
+    BOOST_CHECK_EQUAL( 0x0C, offsetof( VGears::TexFile::PaletteData, total_color_count ) );
+    BOOST_CHECK_EQUAL( 0x10, offsetof( VGears::TexFile::PaletteData, colors_per_palette ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( image_data_offset )
 BOOST_AUTO_TEST_CASE( image_data_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x0, offsetof( QGears::TexFile::ImageData, bit_depth  ) );
-    BOOST_CHECK_EQUAL( 0x4, offsetof( QGears::TexFile::ImageData, width  ) );
-    BOOST_CHECK_EQUAL( 0x8, offsetof( QGears::TexFile::ImageData, height ) );
-    BOOST_CHECK_EQUAL( 0xC, offsetof( QGears::TexFile::ImageData, pitch  ) );
+    BOOST_CHECK_EQUAL( 0x0, offsetof( VGears::TexFile::ImageData, bit_depth  ) );
+    BOOST_CHECK_EQUAL( 0x4, offsetof( VGears::TexFile::ImageData, width  ) );
+    BOOST_CHECK_EQUAL( 0x8, offsetof( VGears::TexFile::ImageData, height ) );
+    BOOST_CHECK_EQUAL( 0xC, offsetof( VGears::TexFile::ImageData, pitch  ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( rgba_data_offset )
 BOOST_AUTO_TEST_CASE( rgba_data_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x0, offsetof( QGears::TexFile::RGBAData, red   ) );
-    BOOST_CHECK_EQUAL( 0x4, offsetof( QGears::TexFile::RGBAData, green ) );
-    BOOST_CHECK_EQUAL( 0x8, offsetof( QGears::TexFile::RGBAData, blue  ) );
-    BOOST_CHECK_EQUAL( 0xC, offsetof( QGears::TexFile::RGBAData, alpha ) );
+    BOOST_CHECK_EQUAL( 0x0, offsetof( VGears::TexFile::RGBAData, red   ) );
+    BOOST_CHECK_EQUAL( 0x4, offsetof( VGears::TexFile::RGBAData, green ) );
+    BOOST_CHECK_EQUAL( 0x8, offsetof( VGears::TexFile::RGBAData, blue  ) );
+    BOOST_CHECK_EQUAL( 0xC, offsetof( VGears::TexFile::RGBAData, alpha ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( pixel_format_offset )
 BOOST_AUTO_TEST_CASE( pixel_format_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::TexFile::PixelFormat, bits_per_pixel   ) );
-    BOOST_CHECK_EQUAL( 0x04, offsetof( QGears::TexFile::PixelFormat, bytes_per_pixel  ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::TexFile::PixelFormat, bit_count        ) );
-    BOOST_CHECK_EQUAL( 0x18, offsetof( QGears::TexFile::PixelFormat, bit_mask         ) );
-    BOOST_CHECK_EQUAL( 0x28, offsetof( QGears::TexFile::PixelFormat, bit_shift        ) );
-    BOOST_CHECK_EQUAL( 0x38, offsetof( QGears::TexFile::PixelFormat, bit_count_unused ) );
-    BOOST_CHECK_EQUAL( 0x48, offsetof( QGears::TexFile::PixelFormat, shades           ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::TexFile::PixelFormat, bits_per_pixel   ) );
+    BOOST_CHECK_EQUAL( 0x04, offsetof( VGears::TexFile::PixelFormat, bytes_per_pixel  ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::TexFile::PixelFormat, bit_count        ) );
+    BOOST_CHECK_EQUAL( 0x18, offsetof( VGears::TexFile::PixelFormat, bit_mask         ) );
+    BOOST_CHECK_EQUAL( 0x28, offsetof( VGears::TexFile::PixelFormat, bit_shift        ) );
+    BOOST_CHECK_EQUAL( 0x38, offsetof( VGears::TexFile::PixelFormat, bit_count_unused ) );
+    BOOST_CHECK_EQUAL( 0x48, offsetof( VGears::TexFile::PixelFormat, shades           ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( header_offset )
 BOOST_AUTO_TEST_CASE( header_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::TexFile::Header, version              ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::TexFile::Header, color_key_flag       ) );
-    BOOST_CHECK_EQUAL( 0x14, offsetof( QGears::TexFile::Header, bit_data             ) );
-    BOOST_CHECK_EQUAL( 0x30, offsetof( QGears::TexFile::Header, palette_count        ) );
-    BOOST_CHECK_EQUAL( 0x34, offsetof( QGears::TexFile::Header, palette_total_color_count  ) );
-    BOOST_CHECK_EQUAL( 0x38, offsetof( QGears::TexFile::Header, image_data           ) );
-    BOOST_CHECK_EQUAL( 0x4C, offsetof( QGears::TexFile::Header, palette_data         ) );
-    BOOST_CHECK_EQUAL( 0x64, offsetof( QGears::TexFile::Header, pixel_format         ) );
-    BOOST_CHECK_EQUAL( 0xBC, offsetof( QGears::TexFile::Header, color_key_array_flag ) );
-    BOOST_CHECK_EQUAL( 0xC4, offsetof( QGears::TexFile::Header, reference_alpha      ) );
-    BOOST_CHECK_EQUAL( 0xCC, offsetof( QGears::TexFile::Header, unknown_0xCC         ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::TexFile::Header, version              ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::TexFile::Header, color_key_flag       ) );
+    BOOST_CHECK_EQUAL( 0x14, offsetof( VGears::TexFile::Header, bit_data             ) );
+    BOOST_CHECK_EQUAL( 0x30, offsetof( VGears::TexFile::Header, palette_count        ) );
+    BOOST_CHECK_EQUAL( 0x34, offsetof( VGears::TexFile::Header, palette_total_color_count  ) );
+    BOOST_CHECK_EQUAL( 0x38, offsetof( VGears::TexFile::Header, image_data           ) );
+    BOOST_CHECK_EQUAL( 0x4C, offsetof( VGears::TexFile::Header, palette_data         ) );
+    BOOST_CHECK_EQUAL( 0x64, offsetof( VGears::TexFile::Header, pixel_format         ) );
+    BOOST_CHECK_EQUAL( 0xBC, offsetof( VGears::TexFile::Header, color_key_array_flag ) );
+    BOOST_CHECK_EQUAL( 0xC4, offsetof( VGears::TexFile::Header, reference_alpha      ) );
+    BOOST_CHECK_EQUAL( 0xCC, offsetof( VGears::TexFile::Header, unknown_0xCC         ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( color_offset )
 BOOST_AUTO_TEST_CASE( color_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x0, offsetof( QGears::TexFile::Color, all        ) );
-    BOOST_CHECK_EQUAL( 0x0, offsetof( QGears::TexFile::Color, comp       ) );
-    BOOST_CHECK_EQUAL( 0x3, offsetof( QGears::TexFile::Color, comp.alpha ) );
-    BOOST_CHECK_EQUAL( 0x2, offsetof( QGears::TexFile::Color, comp.red   ) );
-    BOOST_CHECK_EQUAL( 0x1, offsetof( QGears::TexFile::Color, comp.green ) );
-    BOOST_CHECK_EQUAL( 0x0, offsetof( QGears::TexFile::Color, comp.blue  ) );
+    BOOST_CHECK_EQUAL( 0x0, offsetof( VGears::TexFile::Color, all        ) );
+    BOOST_CHECK_EQUAL( 0x0, offsetof( VGears::TexFile::Color, comp       ) );
+    BOOST_CHECK_EQUAL( 0x3, offsetof( VGears::TexFile::Color, comp.alpha ) );
+    BOOST_CHECK_EQUAL( 0x2, offsetof( VGears::TexFile::Color, comp.red   ) );
+    BOOST_CHECK_EQUAL( 0x1, offsetof( VGears::TexFile::Color, comp.green ) );
+    BOOST_CHECK_EQUAL( 0x0, offsetof( VGears::TexFile::Color, comp.blue  ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
@@ -127,7 +127,7 @@ BOOST_AUTO_TEST_CASE( read_file )
 
 
     BOOST_REQUIRE( input->isReadable() );
     BOOST_REQUIRE( input->isReadable() );
 
 
-    QGears::TexFile tex;
+    VGears::TexFile tex;
     tex.read( input );
     tex.read( input );
 
 
     BOOST_CHECK_EQUAL( 0x80, tex.m_header.image_data.width );
     BOOST_CHECK_EQUAL( 0x80, tex.m_header.image_data.width );

+ 1 - 1
SupportedGames/FinalFantasy7/CMakeLists.txt

@@ -29,7 +29,7 @@ add_library(FinalFantasy7 STATIC
   ${HEADER_FILES}
   ${HEADER_FILES}
   ${SOURCE_FILES}
   ${SOURCE_FILES}
 )
 )
-SET_PROPERTY(TARGET FinalFantasy7 PROPERTY FOLDER "q-gears")
+SET_PROPERTY(TARGET FinalFantasy7 PROPERTY FOLDER "v-gears")
 
 
 set(LIBRARIES
 set(LIBRARIES
     ${OGRE_LIBRARIES}
     ${OGRE_LIBRARIES}

+ 25 - 25
Tests/FinalFantasy7/src/test_FF7FLevelFileSerializer.cpp

@@ -27,25 +27,25 @@ THE SOFTWARE.
 
 
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "data/QGearsFLevelFileSerializer.h"
+#include "data/VGearsFLevelFileSerializer.h"
 
 
-#include "data/QGearsBackgroundFileManager.h"
-#include "data/QGearsCameraMatrixFileManager.h"
-#include "data/QGearsHRCFileManager.h"
-#include "data/QGearsPaletteFileManager.h"
-#include "data/QGearsLZSFLevelFileManager.h"
+#include "data/VGearsBackgroundFileManager.h"
+#include "data/VGearsCameraMatrixFileManager.h"
+#include "data/VGearsHRCFileManager.h"
+#include "data/VGearsPaletteFileManager.h"
+#include "data/VGearsLZSFLevelFileManager.h"
 #include "data/FF7ModelListFileManager.h"
 #include "data/FF7ModelListFileManager.h"
-#include "map/QGearsBackground2DFileManager.h"
-#include "map/QGearsWalkmeshFileManager.h"
+#include "map/VGearsBackground2DFileManager.h"
+#include "map/VGearsWalkmeshFileManager.h"
 
 
 using namespace Ogre;
 using namespace Ogre;
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestFile : public QGears::FLevelFile
+    class TestFile : public VGears::FLevelFile
     {
     {
     public:
     public:
-        TestFile() : QGears::FLevelFile( NULL, "reference.flevel", 0, "General" ) {}
+        TestFile() : VGears::FLevelFile( NULL, "reference.flevel", 0, "General" ) {}
     };
     };
 
 
     class TestTexture : public Texture
     class TestTexture : public Texture
@@ -92,14 +92,14 @@ BOOST_AUTO_TEST_CASE( read_file )
     Root                                root("","");
     Root                                root("","");
     ResourceGroupManager               &rgm( ResourceGroupManager::getSingleton() );
     ResourceGroupManager               &rgm( ResourceGroupManager::getSingleton() );
     TestTextureManager                  tmgr;
     TestTextureManager                  tmgr;
-    QGears::CameraMatrixFileManager     cmgr;
-    QGears::WalkmeshFileManager         wmgr;
-    QGears::PaletteFileManager          pmgr;
-    QGears::BackgroundFileManager       bmgr;
-    QGears::Background2DFileManager     b2mgr;
-    QGears::FF7::ModelListFileManager   mmgr;
-    QGears::HRCFileManager              hmgr;
-    QGears::LZSFLevelFileManager        fmgr;
+    VGears::CameraMatrixFileManager     cmgr;
+    VGears::WalkmeshFileManager         wmgr;
+    VGears::PaletteFileManager          pmgr;
+    VGears::BackgroundFileManager       bmgr;
+    VGears::Background2DFileManager     b2mgr;
+    VGears::FF7::ModelListFileManager   mmgr;
+    VGears::HRCFileManager              hmgr;
+    VGears::LZSFLevelFileManager        fmgr;
     logMgr.createLog( "Default Log", true, true, true );
     logMgr.createLog( "Default Log", true, true, true );
 
 
     rgm.addResourceLocation( "misc", "FileSystem" );
     rgm.addResourceLocation( "misc", "FileSystem" );
@@ -109,15 +109,15 @@ BOOST_AUTO_TEST_CASE( read_file )
     DataStreamPtr   stream( rgm.openResource( file.getName(), file.getGroup() ) );
     DataStreamPtr   stream( rgm.openResource( file.getName(), file.getGroup() ) );
     BOOST_REQUIRE( stream->isReadable() );
     BOOST_REQUIRE( stream->isReadable() );
 
 
-    QGears::FLevelFileSerializer    ser;
+    VGears::FLevelFileSerializer    ser;
     ser.importFLevelFile( stream, &file );
     ser.importFLevelFile( stream, &file );
     BOOST_CHECK_EQUAL( 757890, stream->tell() );
     BOOST_CHECK_EQUAL( 757890, stream->tell() );
 
 
-    QGears::BackgroundFilePtr       background   ( file.getBackground() );
-    QGears::CameraMatrixFilePtr     camera_matrix( file.getCameraMatrix() );
-    QGears::FF7::ModelListFilePtr   model_list   ( file.getModelList() );
-    QGears::PaletteFilePtr          palette      ( file.getPalette() );
-    QGears::WalkmeshFilePtr         walkmesh     ( file.getWalkmesh() );
+    VGears::BackgroundFilePtr       background   ( file.getBackground() );
+    VGears::CameraMatrixFilePtr     camera_matrix( file.getCameraMatrix() );
+    VGears::FF7::ModelListFilePtr   model_list   ( file.getModelList() );
+    VGears::PaletteFilePtr          palette      ( file.getPalette() );
+    VGears::WalkmeshFilePtr         walkmesh     ( file.getWalkmesh() );
 
 
     BOOST_REQUIRE(background != nullptr);
     BOOST_REQUIRE(background != nullptr);
     BOOST_REQUIRE(camera_matrix != nullptr);
     BOOST_REQUIRE(camera_matrix != nullptr);
@@ -145,7 +145,7 @@ BOOST_AUTO_TEST_CASE( read_file )
     //image->save( file.getName() + ".png" );
     //image->save( file.getName() + ".png" );
     delete image;
     delete image;
 
 
-    QGears::FLevelFilePtr lzs_file = fmgr.load( "reference_compressed.flevel", "General" ).staticCast<QGears::FLevelFile>();
+    VGears::FLevelFilePtr lzs_file = fmgr.load( "reference_compressed.flevel", "General" ).staticCast<VGears::FLevelFile>();
     BOOST_CHECK(lzs_file->getPalette() != nullptr);
     BOOST_CHECK(lzs_file->getPalette() != nullptr);
     BOOST_CHECK(lzs_file->getBackground() != nullptr);
     BOOST_CHECK(lzs_file->getBackground() != nullptr);
 
 

+ 15 - 15
Tests/FinalFantasy7/src/test_FF7ModelListFileSerializer.cpp

@@ -2,13 +2,13 @@
 -----------------------------------------------------------------------------
 -----------------------------------------------------------------------------
 Copyright (c) 07.10.2013 Tobias Peters <tobias.peters@kreativeffekt.at>
 Copyright (c) 07.10.2013 Tobias Peters <tobias.peters@kreativeffekt.at>
 
 
-This file is part of Q-Gears
+This file is part of V-Gears
 
 
-Q-Gears is free software: you can redistribute it and/or modify
+V-Gears is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, version 2.0 (GPLv2) of the License.
 the Free Software Foundation, version 2.0 (GPLv2) of the License.
 
 
-Q-Gears is distributed in the hope that it will be useful,
+V-Gears is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.
 GNU General Public License for more details.
@@ -23,10 +23,10 @@ GNU General Public License for more details.
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestFile : public QGears::FF7::ModelListFile
+    class TestFile : public VGears::FF7::ModelListFile
     {
     {
     public:
     public:
-        TestFile() : QGears::FF7::ModelListFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::FF7::ModelListFile( NULL, "", 0, "" ) {}
         size_t getCalculatedSize() const { return calculateSize(); }
         size_t getCalculatedSize() const { return calculateSize(); }
 
 
         virtual void unload( void ) {}
         virtual void unload( void ) {}
@@ -38,7 +38,7 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_REQUIRE( stream->isReadable() );
     BOOST_REQUIRE( stream->isReadable() );
 
 
     Ogre::LogManager                        logMgr;
     Ogre::LogManager                        logMgr;
-    QGears::FF7::ModelListFileSerializer    ser;
+    VGears::FF7::ModelListFileSerializer    ser;
     TestFile                                f;
     TestFile                                f;
 
 
     logMgr.createLog( "Default Log", true, true, true );
     logMgr.createLog( "Default Log", true, true, true );
@@ -48,32 +48,32 @@ BOOST_AUTO_TEST_CASE( read_file )
 
 
     BOOST_CHECK_EQUAL( 512, f.getScale() );
     BOOST_CHECK_EQUAL( 512, f.getScale() );
 
 
-    QGears::FF7::ModelListFile::ModelList &models( f.getModels() );
+    VGears::FF7::ModelListFile::ModelList &models( f.getModels() );
     BOOST_CHECK_EQUAL( 10, models.size() );
     BOOST_CHECK_EQUAL( 10, models.size() );
 
 
-    QGears::FF7::ModelListFile::ModelDescription &m1( models.front() );
+    VGears::FF7::ModelListFile::ModelDescription &m1( models.front() );
     BOOST_CHECK_EQUAL( "md1stinmain_n_cloud.char", m1.name );
     BOOST_CHECK_EQUAL( "md1stinmain_n_cloud.char", m1.name );
     BOOST_CHECK_EQUAL( "AAAA.HRC", m1.hrc_name );
     BOOST_CHECK_EQUAL( "AAAA.HRC", m1.hrc_name );
     BOOST_CHECK_EQUAL( "512", m1.scale );
     BOOST_CHECK_EQUAL( "512", m1.scale );
-    QGears::FF7::ModelListFile::AnimationList &animations1( m1.animations );
+    VGears::FF7::ModelListFile::AnimationList &animations1( m1.animations );
     BOOST_CHECK_EQUAL( 4, animations1.size() );
     BOOST_CHECK_EQUAL( 4, animations1.size() );
-    QGears::FF7::ModelListFile::AnimationDescription &a1_1( animations1.front() );
+    VGears::FF7::ModelListFile::AnimationDescription &a1_1( animations1.front() );
     BOOST_CHECK_EQUAL( "ACFE.aki", a1_1.name );
     BOOST_CHECK_EQUAL( "ACFE.aki", a1_1.name );
     BOOST_CHECK_EQUAL( 1, a1_1.unknown );
     BOOST_CHECK_EQUAL( 1, a1_1.unknown );
-    QGears::FF7::ModelListFile::AnimationDescription &a1_2( animations1.back() );
+    VGears::FF7::ModelListFile::AnimationDescription &a1_2( animations1.back() );
     BOOST_CHECK_EQUAL( "BVJF.yos", a1_2.name );
     BOOST_CHECK_EQUAL( "BVJF.yos", a1_2.name );
     BOOST_CHECK_EQUAL( 1, a1_2.unknown );
     BOOST_CHECK_EQUAL( 1, a1_2.unknown );
 
 
-    QGears::FF7::ModelListFile::ModelDescription &m2( models.back() );
+    VGears::FF7::ModelListFile::ModelDescription &m2( models.back() );
     BOOST_CHECK_EQUAL( "md1stinshinra_guard.char", m2.name );
     BOOST_CHECK_EQUAL( "md1stinshinra_guard.char", m2.name );
     BOOST_CHECK_EQUAL( "AZHE.HRC", m2.hrc_name );
     BOOST_CHECK_EQUAL( "AZHE.HRC", m2.hrc_name );
     BOOST_CHECK_EQUAL( "512", m2.scale );
     BOOST_CHECK_EQUAL( "512", m2.scale );
-    QGears::FF7::ModelListFile::AnimationList &animations2( m2.animations );
+    VGears::FF7::ModelListFile::AnimationList &animations2( m2.animations );
     BOOST_CHECK_EQUAL( 8, animations2.size() );
     BOOST_CHECK_EQUAL( 8, animations2.size() );
-    QGears::FF7::ModelListFile::AnimationDescription &a2_1( animations2.front() );
+    VGears::FF7::ModelListFile::AnimationDescription &a2_1( animations2.front() );
     BOOST_CHECK_EQUAL( "AAFE.aki", a2_1.name );
     BOOST_CHECK_EQUAL( "AAFE.aki", a2_1.name );
     BOOST_CHECK_EQUAL( 1, a2_1.unknown );
     BOOST_CHECK_EQUAL( 1, a2_1.unknown );
-    QGears::FF7::ModelListFile::AnimationDescription &a2_2( animations2.back() );
+    VGears::FF7::ModelListFile::AnimationDescription &a2_2( animations2.back() );
     BOOST_CHECK_EQUAL( "BXIA.yos", a2_2.name );
     BOOST_CHECK_EQUAL( "BXIA.yos", a2_2.name );
     BOOST_CHECK_EQUAL( 1, a2_2.unknown );
     BOOST_CHECK_EQUAL( 1, a2_2.unknown );
 
 

+ 9 - 9
Tests/FinalFantasy7/src/test_FF7WalkmeshFileSerializer.cpp

@@ -2,13 +2,13 @@
 -----------------------------------------------------------------------------
 -----------------------------------------------------------------------------
 Copyright (c) 06.10.2013 Tobias Peters <tobias.peters@kreativeffekt.at>
 Copyright (c) 06.10.2013 Tobias Peters <tobias.peters@kreativeffekt.at>
 
 
-This file is part of Q-Gears
+This file is part of V-Gears
 
 
-Q-Gears is free software: you can redistribute it and/or modify
+V-Gears is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, version 2.0 (GPLv2) of the License.
 the Free Software Foundation, version 2.0 (GPLv2) of the License.
 
 
-Q-Gears is distributed in the hope that it will be useful,
+V-Gears is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.
 GNU General Public License for more details.
@@ -23,10 +23,10 @@ GNU General Public License for more details.
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestFile : public QGears::WalkmeshFile
+    class TestFile : public VGears::WalkmeshFile
     {
     {
     public:
     public:
-        TestFile() : QGears::WalkmeshFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::WalkmeshFile( NULL, "", 0, "" ) {}
         size_t getCalculatedSize() const { return calculateSize(); }
         size_t getCalculatedSize() const { return calculateSize(); }
 
 
         virtual void unload( void ) {}
         virtual void unload( void ) {}
@@ -38,16 +38,16 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_REQUIRE( stream->isReadable() );
     BOOST_REQUIRE( stream->isReadable() );
 
 
     Ogre::LogManager                    logMgr;
     Ogre::LogManager                    logMgr;
-    QGears::FF7::WalkmeshFileSerializer ser;
+    VGears::FF7::WalkmeshFileSerializer ser;
     TestFile                            f;
     TestFile                            f;
 
 
     logMgr.createLog( "Default Log", true, true, true );
     logMgr.createLog( "Default Log", true, true, true );
 
 
     ser.importWalkmeshFile( stream, &f );
     ser.importWalkmeshFile( stream, &f );
-    QGears::WalkmeshFile::TriangleList &triangles( f.getTriangles() );
+    VGears::WalkmeshFile::TriangleList &triangles( f.getTriangles() );
     BOOST_CHECK_EQUAL( 39, triangles.size() );
     BOOST_CHECK_EQUAL( 39, triangles.size() );
 
 
-    QGears::WalkmeshFile::Triangle &t1( triangles.front() );
+    VGears::WalkmeshFile::Triangle &t1( triangles.front() );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3784, 27544, 325 ), t1.a );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3784, 27544, 325 ), t1.a );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3778, 27434, 325 ), t1.b );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3778, 27434, 325 ), t1.b );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3751, 27410, 310 ), t1.c );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3751, 27410, 310 ), t1.c );
@@ -55,7 +55,7 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_CHECK_EQUAL( -1, t1.access_side[1] );
     BOOST_CHECK_EQUAL( -1, t1.access_side[1] );
     BOOST_CHECK_EQUAL(  1, t1.access_side[2] );
     BOOST_CHECK_EQUAL(  1, t1.access_side[2] );
 
 
-    QGears::WalkmeshFile::Triangle &t2( triangles.back() );
+    VGears::WalkmeshFile::Triangle &t2( triangles.back() );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3506, 29251, 432 ), t2.a );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3506, 29251, 432 ), t2.a );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3527, 29405, 432 ), t2.b );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3527, 29405, 432 ), t2.b );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3566, 29245, 400 ), t2.c );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 3566, 29245, 400 ), t2.c );

+ 0 - 78
Tests/QGearsMain/CMakeLists.txt

@@ -1,78 +0,0 @@
-file(COPY misc DESTINATION .)
-
-include_directories(
-    ${VGears_INCLUDE_DIRS}
-    ${V-Gears_SOURCE_DIR}/include
-)
-
-set(LIBRARIES
-    ${VGears_TEST_LIBRARIES}
-    V-Gears
-	v-gears-data
-)
-
-add_executable(TestQGearsAFileSerializer
-    src/test_QGearsAFileSerializer.cpp
-)
-SET_PROPERTY(TARGET TestQGearsAFileSerializer PROPERTY FOLDER "tests")
-
-target_link_libraries(TestQGearsAFileSerializer ${LIBRARIES})
-add_test(NAME TestQGearsAFileSerializer COMMAND TestQGearsAFileSerializer)
-
-
-add_executable(TestQGearsMapFileXMLSerializer
-    src/test_QGearsMapFileXMLSerializer.cpp
-)
-SET_PROPERTY(TARGET TestQGearsMapFileXMLSerializer PROPERTY FOLDER "tests")
-
-target_link_libraries(TestQGearsMapFileXMLSerializer ${LIBRARIES})
-add_test(NAME TestQGearsMapFileXMLSerializer COMMAND TestQGearsMapFileXMLSerializer)
-
-# field walk mesh
-add_executable(TestQGearsWalkmeshFileXMLSerializer
-    src/test_QGearsWalkmeshFileXMLSerializer.cpp
-)
-SET_PROPERTY(TARGET TestQGearsWalkmeshFileXMLSerializer PROPERTY FOLDER "tests")
-
-target_link_libraries(TestQGearsWalkmeshFileXMLSerializer ${LIBRARIES})
-add_test(NAME TestQGearsWalkmeshFileXMLSerializer COMMAND TestQGearsWalkmeshFileXMLSerializer)
-
-# LGP archive
-add_executable(TestQGearsLGPArchive
-    src/test_QGearsLGPArchive.cpp
-)
-SET_PROPERTY(TARGET TestQGearsLGPArchive PROPERTY FOLDER "tests")
-
-target_link_libraries(TestQGearsLGPArchive ${LIBRARIES})
-add_test(NAME TestQGearsLGPArchive COMMAND TestQGearsLGPArchive)
-
-# HRC archive
-add_executable(TestQGearsHRCSerializer
-    src/test_QGearsHRCSerializer.cpp
-)
-SET_PROPERTY(TARGET TestQGearsHRCSerializer PROPERTY FOLDER "tests")
-
-target_link_libraries(TestQGearsHRCSerializer ${LIBRARIES})
-add_test(NAME TestQGearsHRCSerializer COMMAND TestQGearsHRCSerializer)
-
-# world map
-add_executable(TestMapSerializer
-    src/test_MapSerializer.cpp
-)
-SET_PROPERTY(TARGET TestMapSerializer PROPERTY FOLDER "tests")
-
-target_link_libraries(TestMapSerializer ${LIBRARIES})
-# TODO FIX ME - test not currently working
-#add_test(TestMapSerializer TestMapSerializer)
-
-
-add_executable(TestTxzSerializer
-    src/test_TxzSerializer.cpp
-)
-SET_PROPERTY(TARGET TestTxzSerializer PROPERTY FOLDER "tests")
-
-
-target_link_libraries(TestTxzSerializer ${LIBRARIES})
-# TODO FIX ME - test not currently working
-#add_test(TestTxzSerializer TestTxzSerializer)
-

+ 78 - 0
Tests/VGearsMain/CMakeLists.txt

@@ -0,0 +1,78 @@
+file(COPY misc DESTINATION .)
+
+include_directories(
+    ${VGears_INCLUDE_DIRS}
+    ${V-Gears_SOURCE_DIR}/include
+)
+
+set(LIBRARIES
+    ${VGears_TEST_LIBRARIES}
+    V-Gears
+	v-gears-data
+)
+
+add_executable(TestVGearsAFileSerializer
+    src/test_VGearsAFileSerializer.cpp
+)
+SET_PROPERTY(TARGET TestVGearsAFileSerializer PROPERTY FOLDER "tests")
+
+target_link_libraries(TestVGearsAFileSerializer ${LIBRARIES})
+add_test(NAME TestVGearsAFileSerializer COMMAND TestVGearsAFileSerializer)
+
+
+add_executable(TestVGearsMapFileXMLSerializer
+    src/test_VGearsMapFileXMLSerializer.cpp
+)
+SET_PROPERTY(TARGET TestVGearsMapFileXMLSerializer PROPERTY FOLDER "tests")
+
+target_link_libraries(TestVGearsMapFileXMLSerializer ${LIBRARIES})
+add_test(NAME TestVGearsMapFileXMLSerializer COMMAND TestVGearsMapFileXMLSerializer)
+
+# field walk mesh
+add_executable(TestVGearsWalkmeshFileXMLSerializer
+    src/test_VGearsWalkmeshFileXMLSerializer.cpp
+)
+SET_PROPERTY(TARGET TestVGearsWalkmeshFileXMLSerializer PROPERTY FOLDER "tests")
+
+target_link_libraries(TestVGearsWalkmeshFileXMLSerializer ${LIBRARIES})
+add_test(NAME TestVGearsWalkmeshFileXMLSerializer COMMAND TestVGearsWalkmeshFileXMLSerializer)
+
+# LGP archive
+add_executable(TestVGearsLGPArchive
+    src/test_VGearsLGPArchive.cpp
+)
+SET_PROPERTY(TARGET TestVGearsLGPArchive PROPERTY FOLDER "tests")
+
+target_link_libraries(TestVGearsLGPArchive ${LIBRARIES})
+add_test(NAME TestVGearsLGPArchive COMMAND TestVGearsLGPArchive)
+
+# HRC archive
+add_executable(TestVGearsHRCSerializer
+    src/test_VGearsHRCSerializer.cpp
+)
+SET_PROPERTY(TARGET TestVGearsHRCSerializer PROPERTY FOLDER "tests")
+
+target_link_libraries(TestVGearsHRCSerializer ${LIBRARIES})
+add_test(NAME TestVGearsHRCSerializer COMMAND TestVGearsHRCSerializer)
+
+# world map
+add_executable(TestMapSerializer
+    src/test_MapSerializer.cpp
+)
+SET_PROPERTY(TARGET TestMapSerializer PROPERTY FOLDER "tests")
+
+target_link_libraries(TestMapSerializer ${LIBRARIES})
+# TODO FIX ME - test not currently working
+#add_test(TestMapSerializer TestMapSerializer)
+
+
+add_executable(TestTxzSerializer
+    src/test_TxzSerializer.cpp
+)
+SET_PROPERTY(TARGET TestTxzSerializer PROPERTY FOLDER "tests")
+
+
+target_link_libraries(TestTxzSerializer ${LIBRARIES})
+# TODO FIX ME - test not currently working
+#add_test(TestTxzSerializer TestTxzSerializer)
+

+ 0 - 0
Tests/QGearsMain/misc/map.xml → Tests/VGearsMain/misc/map.xml


+ 0 - 0
Tests/QGearsMain/misc/reference.a → Tests/VGearsMain/misc/reference.a


+ 0 - 0
Tests/QGearsMain/misc/reference.background → Tests/VGearsMain/misc/reference.background


+ 0 - 0
Tests/QGearsMain/misc/reference.background2d.xml → Tests/VGearsMain/misc/reference.background2d.xml


+ 0 - 0
Tests/QGearsMain/misc/reference.cam_matrix → Tests/VGearsMain/misc/reference.cam_matrix


+ 0 - 0
Tests/QGearsMain/misc/reference.lgp → Tests/VGearsMain/misc/reference.lgp


+ 0 - 0
Tests/QGearsMain/misc/reference.p → Tests/VGearsMain/misc/reference.p


+ 0 - 0
Tests/QGearsMain/misc/reference.palette → Tests/VGearsMain/misc/reference.palette


+ 0 - 0
Tests/QGearsMain/misc/reference.rsd → Tests/VGearsMain/misc/reference.rsd


+ 0 - 0
Tests/QGearsMain/misc/reference.skeleton → Tests/VGearsMain/misc/reference.skeleton


+ 0 - 0
Tests/QGearsMain/misc/reference_lzs.compressed → Tests/VGearsMain/misc/reference_lzs.compressed


+ 0 - 0
Tests/QGearsMain/misc/reference_lzs.decompressed → Tests/VGearsMain/misc/reference_lzs.decompressed


+ 0 - 0
Tests/QGearsMain/misc/reference_manual_object.mesh.xml → Tests/VGearsMain/misc/reference_manual_object.mesh.xml


+ 0 - 0
Tests/QGearsMain/misc/test_hrc_empty.hrc → Tests/VGearsMain/misc/test_hrc_empty.hrc


+ 0 - 0
Tests/QGearsMain/misc/test_hrc_simple.hrc → Tests/VGearsMain/misc/test_hrc_simple.hrc


+ 0 - 0
Tests/QGearsMain/misc/walkmesh.xml → Tests/VGearsMain/misc/walkmesh.xml


+ 17 - 17
Tests/QGearsMain/src/test_MapSerializer.cpp → Tests/VGearsMain/src/test_MapSerializer.cpp

@@ -8,23 +8,23 @@
 #include "data/worldmap/MapFile.h"
 #include "data/worldmap/MapFile.h"
 #include "data/worldmap/MapFileManager.h"
 #include "data/worldmap/MapFileManager.h"
 
 
-#include "data/QGearsTexCodec.h"
+#include "data/VGearsTexCodec.h"
 #include <functional>
 #include <functional>
 
 
-#include "data/QGearsLGPArchiveFactory.h"
+#include "data/VGearsLGPArchiveFactory.h"
 
 
 using namespace Ogre;
 using namespace Ogre;
 
 
 
 
-static void createReferenceFileInstance(std::function<void(Ogre::DataStreamPtr& stream, QGears::WorldMapFile& file)> callBack)
+static void createReferenceFileInstance(std::function<void(Ogre::DataStreamPtr& stream, VGears::WorldMapFile& file)> callBack)
 {
 {
-    class TestFile : public QGears::WorldMapFile
+    class TestFile : public VGears::WorldMapFile
     {
     {
     public:
     public:
-        TestFile() : QGears::WorldMapFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::WorldMapFile( NULL, "", 0, "" ) {}
     };
     };
 
 
-    const char* file_name = "/home/paul/qgears/q-gears/Tests/FinalFantasy7/misc/reference.map";
+    const char* file_name = "/home/paul/vgears/v-gears/Tests/FinalFantasy7/misc/reference.map";
     std::ifstream ifs( file_name, std::ifstream::binary );
     std::ifstream ifs( file_name, std::ifstream::binary );
     {
     {
 //        BOOST_REQUIRE( ifs.is_open() );
 //        BOOST_REQUIRE( ifs.is_open() );
@@ -45,9 +45,9 @@ static void createReferenceFileInstance(std::function<void(Ogre::DataStreamPtr&
 /*
 /*
 BOOST_AUTO_TEST_CASE( file_size_is_multiple_of_block_size )
 BOOST_AUTO_TEST_CASE( file_size_is_multiple_of_block_size )
 {
 {
-    createReferenceFileInstance([&](Ogre::DataStreamPtr& stream, QGears::WorldMapFile& file)
+    createReferenceFileInstance([&](Ogre::DataStreamPtr& stream, VGears::WorldMapFile& file)
     {
     {
-        QGears::MapFileSerializer s;
+        VGears::MapFileSerializer s;
         s.importMapFile( stream, file );
         s.importMapFile( stream, file );
     });
     });
 }
 }
@@ -117,28 +117,28 @@ int main(int argc, char **argv)
     Viewport *vp = renderWindow->addViewport(mainCam);
     Viewport *vp = renderWindow->addViewport(mainCam);
 
 
 
 
-    Ogre::ArchiveManager::getSingleton().addArchiveFactory( new QGears::LGPArchiveFactory() );
+    Ogre::ArchiveManager::getSingleton().addArchiveFactory( new VGears::LGPArchiveFactory() );
 
 
 
 
     Ogre::TextureManager* tm = root->getTextureManager();
     Ogre::TextureManager* tm = root->getTextureManager();
 
 
 
 
-    QGears::MapFileManager* worldManager = new QGears::MapFileManager();
+    VGears::MapFileManager* worldManager = new VGears::MapFileManager();
 
 
     ResourceGroupManager::getSingleton().addResourceLocation(".", "FileSystem");
     ResourceGroupManager::getSingleton().addResourceLocation(".", "FileSystem");
-    ResourceGroupManager::getSingleton().addResourceLocation("/home/paul/qgears/data/cd1pc/wm", "FileSystem", "TEST");
-    ResourceGroupManager::getSingleton().addResourceLocation("/home/paul/qgears/data/cd1pc/wm/world_us.lgp", QGears::LGPArchiveFactory::ARCHIVE_TYPE, "TEST");
+    ResourceGroupManager::getSingleton().addResourceLocation("/home/paul/vgears/data/cd1pc/wm", "FileSystem", "TEST");
+    ResourceGroupManager::getSingleton().addResourceLocation("/home/paul/vgears/data/cd1pc/wm/world_us.lgp", VGears::LGPArchiveFactory::ARCHIVE_TYPE, "TEST");
 
 
 
 
-    QGears::TexCodec::install();
-    QGears::TexCodec::initialise();
+    VGears::TexCodec::install();
+    VGears::TexCodec::initialise();
 
 
 
 
     ResourceGroupManager::getSingleton().declareResource("bridge.tex", "Texture", "TEST");
     ResourceGroupManager::getSingleton().declareResource("bridge.tex", "Texture", "TEST");
 
 
-    ResourceGroupManager::getSingleton().declareResource("wm0.map", QGears::WorldMapFile::RESOURCE_TYPE, "TEST");
-    ResourceGroupManager::getSingleton().declareResource("wm1.map", QGears::WorldMapFile::RESOURCE_TYPE, "TEST");
-    ResourceGroupManager::getSingleton().declareResource("wm2.map", QGears::WorldMapFile::RESOURCE_TYPE, "TEST");
+    ResourceGroupManager::getSingleton().declareResource("wm0.map", VGears::WorldMapFile::RESOURCE_TYPE, "TEST");
+    ResourceGroupManager::getSingleton().declareResource("wm1.map", VGears::WorldMapFile::RESOURCE_TYPE, "TEST");
+    ResourceGroupManager::getSingleton().declareResource("wm2.map", VGears::WorldMapFile::RESOURCE_TYPE, "TEST");
 
 
 
 
     ResourceGroupManager::getSingleton().initialiseAllResourceGroups();
     ResourceGroupManager::getSingleton().initialiseAllResourceGroups();

+ 5 - 5
Tests/QGearsMain/src/test_TxzSerializer.cpp → Tests/VGearsMain/src/test_TxzSerializer.cpp

@@ -12,12 +12,12 @@
 using namespace Ogre;
 using namespace Ogre;
 
 
 
 
-static void createReferenceFileInstance(std::string filename, std::function<void(Ogre::DataStreamPtr& stream, QGears::TxzFile& file)> callBack)
+static void createReferenceFileInstance(std::string filename, std::function<void(Ogre::DataStreamPtr& stream, VGears::TxzFile& file)> callBack)
 {
 {
-    class TestFile : public QGears::TxzFile
+    class TestFile : public VGears::TxzFile
     {
     {
     public:
     public:
-        TestFile() : QGears::TxzFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::TxzFile( NULL, "", 0, "" ) {}
     };
     };
 
 
     const char* file_name = filename.c_str();
     const char* file_name = filename.c_str();
@@ -41,9 +41,9 @@ static void createReferenceFileInstance(std::string filename, std::function<void
 
 
 BOOST_AUTO_TEST_CASE( read_blocks )
 BOOST_AUTO_TEST_CASE( read_blocks )
 {
 {
-    createReferenceFileInstance( "/home/paul/qgears/data/cd1/world/wm0.txz", [&](Ogre::DataStreamPtr& stream, QGears::TxzFile& file)
+    createReferenceFileInstance( "/home/paul/vgears/data/cd1/world/wm0.txz", [&](Ogre::DataStreamPtr& stream, VGears::TxzFile& file)
     {
     {
-        QGears::TxzFileSerializer s;
+        VGears::TxzFileSerializer s;
         s.import( stream, file );
         s.import( stream, file );
     });
     });
 }
 }

+ 10 - 10
Tests/QGearsMain/src/test_QGearsAFileSerializer.cpp → Tests/VGearsMain/src/test_VGearsAFileSerializer.cpp

@@ -28,27 +28,27 @@ THE SOFTWARE.
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "data/QGearsAFileSerializer.h"
+#include "data/VGearsAFileSerializer.h"
 
 
 BOOST_AUTO_TEST_CASE( header_size )
 BOOST_AUTO_TEST_CASE( header_size )
 {
 {
-    BOOST_CHECK_EQUAL( 0x24, sizeof( QGears::AFileSerializer::Header ) );
+    BOOST_CHECK_EQUAL( 0x24, sizeof( VGears::AFileSerializer::Header ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( header_offset )
 BOOST_AUTO_TEST_CASE( header_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::AFileSerializer::Header, version ) );
-    BOOST_CHECK_EQUAL( 0x04, offsetof( QGears::AFileSerializer::Header, frame_count ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::AFileSerializer::Header, bone_count ) );
-    BOOST_CHECK_EQUAL( 0x0C, offsetof( QGears::AFileSerializer::Header, rotation_order ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::AFileSerializer::Header, version ) );
+    BOOST_CHECK_EQUAL( 0x04, offsetof( VGears::AFileSerializer::Header, frame_count ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::AFileSerializer::Header, bone_count ) );
+    BOOST_CHECK_EQUAL( 0x0C, offsetof( VGears::AFileSerializer::Header, rotation_order ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestFile : public QGears::AFile
+    class TestFile : public VGears::AFile
     {
     {
     public:
     public:
-        TestFile() : QGears::AFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::AFile( NULL, "", 0, "" ) {}
     };
     };
     const char* file_name( "misc/reference.a" );
     const char* file_name( "misc/reference.a" );
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
@@ -57,14 +57,14 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_REQUIRE( stream->isReadable() );
     BOOST_REQUIRE( stream->isReadable() );
 
 
     Ogre::LogManager            logMgr;
     Ogre::LogManager            logMgr;
-    QGears::AFileSerializer     ser;
+    VGears::AFileSerializer     ser;
     TestFile                    f;
     TestFile                    f;
 
 
     logMgr.createLog( "Default Log", true, true, true );
     logMgr.createLog( "Default Log", true, true, true );
 
 
     ser.importAFile( stream, &f );
     ser.importAFile( stream, &f );
 
 
-    QGears::AFile::FrameList &frames( f.getFrames() );
+    VGears::AFile::FrameList &frames( f.getFrames() );
     BOOST_CHECK_EQUAL( 80, frames.size() );
     BOOST_CHECK_EQUAL( 80, frames.size() );
     BOOST_CHECK( Ogre::Vector3( -63.86031f, 71.90821f, -10.97811f    ).positionEquals( frames.front().root_translation ) );
     BOOST_CHECK( Ogre::Vector3( -63.86031f, 71.90821f, -10.97811f    ).positionEquals( frames.front().root_translation ) );
     BOOST_CHECK( Ogre::Vector3(   0.0f      , 13.53528f,   0.07706928f ).positionEquals( frames.back ().root_translation ) );
     BOOST_CHECK( Ogre::Vector3(   0.0f      , 13.53528f,   0.07706928f ).positionEquals( frames.back ().root_translation ) );

+ 4 - 4
Tests/QGearsMain/src/test_QGearsBackground2D.cpp → Tests/VGearsMain/src/test_VGearsBackground2D.cpp

@@ -28,9 +28,9 @@ THE SOFTWARE.
 #include <Ogre.h>
 #include <Ogre.h>
 
 
 #include "core/Background2D.h"
 #include "core/Background2D.h"
-#include "map/QGearsBackground2DFileManager.h"
+#include "map/VGearsBackground2DFileManager.h"
 
 
-BOOST_AUTO_TEST_SUITE( QGearsBackground2D )
+BOOST_AUTO_TEST_SUITE( VGearsBackground2D )
 
 
 BOOST_AUTO_TEST_CASE( load )
 BOOST_AUTO_TEST_CASE( load )
 {
 {
@@ -44,8 +44,8 @@ BOOST_AUTO_TEST_CASE( load )
     logMgr.createLog( "Default Log", true, true, true );
     logMgr.createLog( "Default Log", true, true, true );
     Ogre::Root          root;
     Ogre::Root          root;
     TestFile            file;
     TestFile            file;
-    QGears::Background2DFileManager b_mgr;
-    QGears::Background2DFilePtr     b;
+    VGears::Background2DFileManager b_mgr;
+    VGears::Background2DFilePtr     b;
 
 
 
 
     logMgr.destroyLog( "Default Log" );
     logMgr.destroyLog( "Default Log" );

+ 7 - 7
Tests/QGearsMain/src/test_QGearsBackground2DFileSerializer.cpp → Tests/VGearsMain/src/test_VGearsBackground2DFileSerializer.cpp

@@ -27,16 +27,16 @@ THE SOFTWARE.
 
 
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "map/QGearsBackground2DFileXMLSerializer.h"
+#include "map/VGearsBackground2DFileXMLSerializer.h"
 
 
-BOOST_AUTO_TEST_SUITE( QGearsBackground2DFileSerializer )
+BOOST_AUTO_TEST_SUITE( VGearsBackground2DFileSerializer )
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestFile : public QGears::Background2DFile
+    class TestFile : public VGears::Background2DFile
     {
     {
     public:
     public:
-        TestFile() : QGears::Background2DFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::Background2DFile( NULL, "", 0, "" ) {}
         size_t getCalculatedSize() const { return calculateSize(); }
         size_t getCalculatedSize() const { return calculateSize(); }
 
 
         virtual void unload( void ) {};
         virtual void unload( void ) {};
@@ -47,7 +47,7 @@ BOOST_AUTO_TEST_CASE( read_file )
 
 
     const char*                             file_name( "reference.background2d.xml" );
     const char*                             file_name( "reference.background2d.xml" );
     TestFile                                file;
     TestFile                                file;
-    QGears::Background2DFileXMLSerializer   ser;
+    VGears::Background2DFileXMLSerializer   ser;
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     BOOST_REQUIRE( ifs->is_open() );
     BOOST_REQUIRE( ifs->is_open() );
 
 
@@ -61,10 +61,10 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_CHECK_EQUAL( Ogre::Quaternion( 0.742188, 0.667516, -0.0403783, -0.0450658 ), file.getOrientation() );
     BOOST_CHECK_EQUAL( Ogre::Quaternion( 0.742188, 0.667516, -0.0403783, -0.0450658 ), file.getOrientation() );
     BOOST_CHECK_EQUAL( Ogre::Radian( Ogre::Degree( 34.5389 ) ), file.getFov() );
     BOOST_CHECK_EQUAL( Ogre::Radian( Ogre::Degree( 34.5389 ) ), file.getFov() );
     BOOST_CHECK_EQUAL( 6, file.getTiles().size() );
     BOOST_CHECK_EQUAL( 6, file.getTiles().size() );
-    BOOST_CHECK_EQUAL( QGears::B_ALPHA, file.getTiles()[0].blending );
+    BOOST_CHECK_EQUAL( VGears::B_ALPHA, file.getTiles()[0].blending );
     BOOST_CHECK_EQUAL( 123, file.getTiles()[0].depth );
     BOOST_CHECK_EQUAL( 123, file.getTiles()[0].depth );
 
 
-    BOOST_CHECK_EQUAL( QGears::B_ADD  , file.getTiles()[1].blending );
+    BOOST_CHECK_EQUAL( VGears::B_ADD  , file.getTiles()[1].blending );
     BOOST_CHECK_EQUAL( 100, file.getTiles()[1].depth );
     BOOST_CHECK_EQUAL( 100, file.getTiles()[1].depth );
 
 
     BOOST_CHECK_EQUAL( 48, file.getTiles()[2].width  );
     BOOST_CHECK_EQUAL( 48, file.getTiles()[2].width  );

+ 15 - 15
Tests/QGearsMain/src/test_QGearsBackgroundFileSerializer.cpp → Tests/VGearsMain/src/test_VGearsBackgroundFileSerializer.cpp

@@ -23,30 +23,30 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 THE SOFTWARE.
 -----------------------------------------------------------------------------
 -----------------------------------------------------------------------------
 */
 */
-#define BOOST_TEST_MODULE QGearsBackgroundFileSerializer
+#define BOOST_TEST_MODULE VGearsBackgroundFileSerializer
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 
 
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "data/QGearsBackgroundFileSerializer.h"
+#include "data/VGearsBackgroundFileSerializer.h"
 
 
 BOOST_AUTO_TEST_CASE( header_size )
 BOOST_AUTO_TEST_CASE( header_size )
 {
 {
-    BOOST_CHECK_EQUAL( 0x04, sizeof( QGears::BackgroundFile::Pixel) );
+    BOOST_CHECK_EQUAL( 0x04, sizeof( VGears::BackgroundFile::Pixel) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( pixel_offset )
 BOOST_AUTO_TEST_CASE( pixel_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::BackgroundFile::Pixel, x ) );
-    BOOST_CHECK_EQUAL( 0x02, offsetof( QGears::BackgroundFile::Pixel, y ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::BackgroundFile::Pixel, x ) );
+    BOOST_CHECK_EQUAL( 0x02, offsetof( VGears::BackgroundFile::Pixel, y ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestFile : public QGears::BackgroundFile
+    class TestFile : public VGears::BackgroundFile
     {
     {
     public:
     public:
-        TestFile() : QGears::BackgroundFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::BackgroundFile( NULL, "", 0, "" ) {}
         size_t getCalculatedSize() const { return calculateSize(); }
         size_t getCalculatedSize() const { return calculateSize(); }
 
 
         virtual void unload( void ) {};
         virtual void unload( void ) {};
@@ -57,7 +57,7 @@ BOOST_AUTO_TEST_CASE( read_file )
 
 
     const char*                         file_name( "reference.background" );
     const char*                         file_name( "reference.background" );
     TestFile                            file;
     TestFile                            file;
-    QGears::BackgroundFileSerializer    ser;
+    VGears::BackgroundFileSerializer    ser;
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     BOOST_REQUIRE( ifs->is_open() );
     BOOST_REQUIRE( ifs->is_open() );
 
 
@@ -68,7 +68,7 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_CHECK_EQUAL( 726491, stream->tell() );
     BOOST_CHECK_EQUAL( 726491, stream->tell() );
     BOOST_CHECK_EQUAL( 721078, file.getCalculatedSize() );
     BOOST_CHECK_EQUAL( 721078, file.getCalculatedSize() );
 
 
-    QGears::BackgroundFile::Layer *layer( file.getLayers() );
+    VGears::BackgroundFile::Layer *layer( file.getLayers() );
     BOOST_CHECK( layer[0].enabled );
     BOOST_CHECK( layer[0].enabled );
     BOOST_CHECK_EQUAL( 400, layer[0].width );
     BOOST_CHECK_EQUAL( 400, layer[0].width );
     BOOST_CHECK_EQUAL( 736, layer[0].height );
     BOOST_CHECK_EQUAL( 736, layer[0].height );
@@ -101,15 +101,15 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_CHECK_EQUAL(   0, layer[3].sprites[0].src.x );
     BOOST_CHECK_EQUAL(   0, layer[3].sprites[0].src.x );
     BOOST_CHECK_EQUAL(   0, layer[3].sprites[0].src.y );
     BOOST_CHECK_EQUAL(   0, layer[3].sprites[0].src.y );
 
 
-    QGears::uint8 palatte_expected[] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00 };
-    BOOST_CHECK_EQUAL( sizeof( palatte_expected ), QGears::BackgroundFile::PALETTE_ENTRY_COUNT );
+    VGears::uint8 palatte_expected[] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00 };
+    BOOST_CHECK_EQUAL( sizeof( palatte_expected ), VGears::BackgroundFile::PALETTE_ENTRY_COUNT );
     BOOST_CHECK_EQUAL_COLLECTIONS( palatte_expected , palatte_expected  + sizeof( palatte_expected )
     BOOST_CHECK_EQUAL_COLLECTIONS( palatte_expected , palatte_expected  + sizeof( palatte_expected )
-                                  ,file.getPalette(), file.getPalette() + QGears::BackgroundFile::PALETTE_ENTRY_COUNT );
+                                  ,file.getPalette(), file.getPalette() + VGears::BackgroundFile::PALETTE_ENTRY_COUNT );
 
 
-    QGears::BackgroundFile::Page *page( file.getPages() );
+    VGears::BackgroundFile::Page *page( file.getPages() );
     bool enabled[] = { 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
     bool enabled[] = { 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
-    BOOST_CHECK_EQUAL( sizeof(enabled), QGears::BackgroundFile::PAGE_COUNT );
-    for( size_t i( QGears::BackgroundFile::PAGE_COUNT ); i--; )
+    BOOST_CHECK_EQUAL( sizeof(enabled), VGears::BackgroundFile::PAGE_COUNT );
+    for( size_t i( VGears::BackgroundFile::PAGE_COUNT ); i--; )
     {
     {
         BOOST_CHECK_EQUAL( enabled[i], page[i].enabled );
         BOOST_CHECK_EQUAL( enabled[i], page[i].enabled );
     }
     }

+ 5 - 5
Tests/QGearsMain/src/test_QGearsCameraMatrixFileSerializer.cpp → Tests/VGearsMain/src/test_VGearsCameraMatrixFileSerializer.cpp

@@ -27,16 +27,16 @@ THE SOFTWARE.
 
 
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "data/QGearsCameraMatrixFileSerializer.h"
+#include "data/VGearsCameraMatrixFileSerializer.h"
 
 
-BOOST_AUTO_TEST_SUITE( QGearsCameraMatrixFileSerializer )
+BOOST_AUTO_TEST_SUITE( VGearsCameraMatrixFileSerializer )
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestFile : public QGears::CameraMatrixFile
+    class TestFile : public VGears::CameraMatrixFile
     {
     {
     public:
     public:
-        TestFile() : QGears::CameraMatrixFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::CameraMatrixFile( NULL, "", 0, "" ) {}
         size_t getCalculatedSize() const { return calculateSize(); }
         size_t getCalculatedSize() const { return calculateSize(); }
 
 
         virtual void unload( void ) {};
         virtual void unload( void ) {};
@@ -47,7 +47,7 @@ BOOST_AUTO_TEST_CASE( read_file )
 
 
     const char*                         file_name( "reference.cam_matrix" );
     const char*                         file_name( "reference.cam_matrix" );
     TestFile                            file;
     TestFile                            file;
-    QGears::CameraMatrixFileSerializer  ser;
+    VGears::CameraMatrixFileSerializer  ser;
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     BOOST_REQUIRE( ifs->is_open() );
     BOOST_REQUIRE( ifs->is_open() );
 
 

+ 10 - 10
Tests/QGearsMain/src/test_QGearsHRCSerializer.cpp → Tests/VGearsMain/src/test_VGearsHRCSerializer.cpp

@@ -25,21 +25,21 @@ THE SOFTWARE.
 */
 */
 #include <fstream>
 #include <fstream>
 
 
-//#define BOOST_TEST_MODULE QGearsHRCFileSerializer
+//#define BOOST_TEST_MODULE VGearsHRCFileSerializer
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 
 
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "data/QGearsHRCFileSerializer.h"
+#include "data/VGearsHRCFileSerializer.h"
 
 
 const char* LOG_NAME( "Default Log" );
 const char* LOG_NAME( "Default Log" );
 
 
 BOOST_AUTO_TEST_CASE( simple_hrc )
 BOOST_AUTO_TEST_CASE( simple_hrc )
 {
 {
-    class TestFile : public QGears::HRCFile
+    class TestFile : public VGears::HRCFile
     {
     {
     public:
     public:
-        TestFile() : QGears::HRCFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::HRCFile( NULL, "", 0, "" ) {}
     };
     };
     Ogre::LogManager            logMgr;
     Ogre::LogManager            logMgr;
     logMgr.createLog( LOG_NAME, true, true, true );
     logMgr.createLog( LOG_NAME, true, true, true );
@@ -51,12 +51,12 @@ BOOST_AUTO_TEST_CASE( simple_hrc )
     BOOST_REQUIRE( stream->isReadable() );
     BOOST_REQUIRE( stream->isReadable() );
 
 
     TestFile                    file;
     TestFile                    file;
-    QGears::HRCFileSerializer   ser;
+    VGears::HRCFileSerializer   ser;
     ser.importHRCFile( stream, &file );
     ser.importHRCFile( stream, &file );
 
 
     BOOST_CHECK_EQUAL( "test_skeleton", file.getSkeletonName() );
     BOOST_CHECK_EQUAL( "test_skeleton", file.getSkeletonName() );
 
 
-    const QGears::HRCFile::BoneList& bones( file.getBones() );
+    const VGears::HRCFile::BoneList& bones( file.getBones() );
     BOOST_CHECK_EQUAL( 3, bones.size() );
     BOOST_CHECK_EQUAL( 3, bones.size() );
     BOOST_CHECK_EQUAL( "bone.1", bones.at(0).name );
     BOOST_CHECK_EQUAL( "bone.1", bones.at(0).name );
     BOOST_CHECK_EQUAL( "root", bones.at(0).parent );
     BOOST_CHECK_EQUAL( "root", bones.at(0).parent );
@@ -83,10 +83,10 @@ BOOST_AUTO_TEST_CASE( simple_hrc )
 
 
 BOOST_AUTO_TEST_CASE( empty_hrc )
 BOOST_AUTO_TEST_CASE( empty_hrc )
 {
 {
-    class TestFile : public QGears::HRCFile
+    class TestFile : public VGears::HRCFile
     {
     {
     public:
     public:
-        TestFile() : QGears::HRCFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::HRCFile( NULL, "", 0, "" ) {}
     };
     };
     Ogre::LogManager            logMgr;
     Ogre::LogManager            logMgr;
     logMgr.createLog( LOG_NAME, true, true, true );
     logMgr.createLog( LOG_NAME, true, true, true );
@@ -98,12 +98,12 @@ BOOST_AUTO_TEST_CASE( empty_hrc )
     BOOST_REQUIRE( stream->isReadable() );
     BOOST_REQUIRE( stream->isReadable() );
 
 
     TestFile                    file;
     TestFile                    file;
-    QGears::HRCFileSerializer   ser;
+    VGears::HRCFileSerializer   ser;
     ser.importHRCFile( stream, &file );
     ser.importHRCFile( stream, &file );
 
 
     BOOST_CHECK_EQUAL( "test_empty_skeleton", file.getSkeletonName() );
     BOOST_CHECK_EQUAL( "test_empty_skeleton", file.getSkeletonName() );
 
 
-    const QGears::HRCFile::BoneList& bones( file.getBones() );
+    const VGears::HRCFile::BoneList& bones( file.getBones() );
     BOOST_CHECK_EQUAL( 1, bones.size() );
     BOOST_CHECK_EQUAL( 1, bones.size() );
     BOOST_CHECK_EQUAL( "null", bones.at(0).name );
     BOOST_CHECK_EQUAL( "null", bones.at(0).name );
     BOOST_CHECK_EQUAL( "root", bones.at(0).parent );
     BOOST_CHECK_EQUAL( "root", bones.at(0).parent );

+ 5 - 5
Tests/QGearsMain/src/test_QGearsLGPArchive.cpp → Tests/VGearsMain/src/test_VGearsLGPArchive.cpp

@@ -28,7 +28,7 @@ THE SOFTWARE.
 
 
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "data/QGearsLGPArchiveFactory.h"
+#include "data/VGearsLGPArchiveFactory.h"
 
 
 BOOST_AUTO_TEST_CASE( load )
 BOOST_AUTO_TEST_CASE( load )
 {
 {
@@ -37,18 +37,18 @@ BOOST_AUTO_TEST_CASE( load )
     const char* filename_1( "Filename 1" );
     const char* filename_1( "Filename 1" );
     const char* filename_2( "max length filename!" );
     const char* filename_2( "max length filename!" );
 
 
-    class TestLGPArchive : public QGears::LGPArchive
+    class TestLGPArchive : public VGears::LGPArchive
     {
     {
         public:
         public:
 
 
             TestLGPArchive() :
             TestLGPArchive() :
-                QGears::LGPArchive( "misc/reference.lgp", "LGP" )
+                VGears::LGPArchive( "misc/reference.lgp", "LGP" )
               , test_stream( NULL )
               , test_stream( NULL )
             {}
             {}
 
 
             void load()
             void load()
             {
             {
-                QGears::LGPArchive::load( test_stream );
+                VGears::LGPArchive::load( test_stream );
             }
             }
 
 
         Ogre::DataStream* test_stream;
         Ogre::DataStream* test_stream;
@@ -71,7 +71,7 @@ BOOST_AUTO_TEST_CASE( load )
     BOOST_CHECK_EQUAL( lgp.getFiles().size(), lgp.list()->size() );
     BOOST_CHECK_EQUAL( lgp.getFiles().size(), lgp.list()->size() );
     BOOST_CHECK_EQUAL( lgp.getFiles().size(), lgp.listFileInfo()->size() );
     BOOST_CHECK_EQUAL( lgp.getFiles().size(), lgp.listFileInfo()->size() );
 
 
-    QGears::LGPArchive::FileEntry& entry( lgp.getFiles()[0] );
+    VGears::LGPArchive::FileEntry& entry( lgp.getFiles()[0] );
     BOOST_CHECK_EQUAL( filename_1, entry.file_name );
     BOOST_CHECK_EQUAL( filename_1, entry.file_name );
     BOOST_CHECK_EQUAL( entry.file_name, lgp.list()->at( 0 ) );
     BOOST_CHECK_EQUAL( entry.file_name, lgp.list()->at( 0 ) );
     BOOST_CHECK_EQUAL( 0x00000050, entry.file_offset );
     BOOST_CHECK_EQUAL( 0x00000050, entry.file_offset );

+ 4 - 4
Tests/QGearsMain/src/test_QGearsLZSDataStream.cpp → Tests/VGearsMain/src/test_VGearsLZSDataStream.cpp

@@ -24,12 +24,12 @@ THE SOFTWARE.
 -----------------------------------------------------------------------------
 -----------------------------------------------------------------------------
 */
 */
 
 
-#define BOOST_TEST_MODULE QGearsLZSDataStream
+#define BOOST_TEST_MODULE VGearsLZSDataStream
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 
 
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "QGearsLZSDataStream.h"
+#include "VGearsLZSDataStream.h"
 
 
 const unsigned char hexData[] = {
 const unsigned char hexData[] = {
 
 
@@ -66,7 +66,7 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_REQUIRE( ifs->is_open() );
     BOOST_REQUIRE( ifs->is_open() );
     BOOST_REQUIRE( ofs.is_open() );
     BOOST_REQUIRE( ofs.is_open() );
     Ogre::DataStreamPtr         file_stream( OGRE_NEW Ogre::FileStreamDataStream( ifs ) );
     Ogre::DataStreamPtr         file_stream( OGRE_NEW Ogre::FileStreamDataStream( ifs ) );
-    QGears::LZSDataStreamPtr    lzs_stream( OGRE_NEW QGears::LZSDataStream( file_stream ) );
+    VGears::LZSDataStreamPtr    lzs_stream( OGRE_NEW VGears::LZSDataStream( file_stream ) );
     BOOST_REQUIRE( file_stream->isReadable() );
     BOOST_REQUIRE( file_stream->isReadable() );
     BOOST_REQUIRE( lzs_stream->isReadable() );
     BOOST_REQUIRE( lzs_stream->isReadable() );
 
 
@@ -133,7 +133,7 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_CHECK( lzs_stream->eof() );
     BOOST_CHECK( lzs_stream->eof() );
     BOOST_CHECK_EQUAL( 0, lzs_stream->read( data, 1 ) );
     BOOST_CHECK_EQUAL( 0, lzs_stream->read( data, 1 ) );
 
 
-    QGears::uint32 flip( 0x12345678 );
+    VGears::uint32 flip( 0x12345678 );
     lzs_stream->flipEndian( flip );
     lzs_stream->flipEndian( flip );
     BOOST_CHECK_EQUAL( 0x78563412, flip );
     BOOST_CHECK_EQUAL( 0x78563412, flip );
 
 

+ 3 - 3
Tests/QGearsMain/src/test_QGearsManualObject.cpp → Tests/VGearsMain/src/test_VGearsManualObject.cpp

@@ -25,13 +25,13 @@ THE SOFTWARE.
 */
 */
 #include <fstream>
 #include <fstream>
 
 
-#define BOOST_TEST_MODULE QGearsManualObject
+#define BOOST_TEST_MODULE VGearsManualObject
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 
 
 #include <Ogre.h>
 #include <Ogre.h>
 #include <OgreDefaultHardwareBufferManager.h>
 #include <OgreDefaultHardwareBufferManager.h>
 
 
-#include "QGearsManualObject.h"
+#include "VGearsManualObject.h"
 
 
 BOOST_AUTO_TEST_CASE( mesh_export )
 BOOST_AUTO_TEST_CASE( mesh_export )
 {
 {
@@ -51,7 +51,7 @@ BOOST_AUTO_TEST_CASE( mesh_export )
     Ogre::MeshPtr mesh( Ogre::MeshManager::getSingleton().create( name, "General" ) );
     Ogre::MeshPtr mesh( Ogre::MeshManager::getSingleton().create( name, "General" ) );
     mesh->setSkeletonName( filename_skeleton );
     mesh->setSkeletonName( filename_skeleton );
 
 
-    QGears::ManualObject mo( mesh.getPointer() );
+    VGears::ManualObject mo( mesh.getPointer() );
     mo.begin( "sub_name1", "material1", 3, 3 );
     mo.begin( "sub_name1", "material1", 3, 3 );
     mo.position( Ogre::Vector3( 0, 0, 0 ) );
     mo.position( Ogre::Vector3( 0, 0, 0 ) );
     mo.normal( Ogre::Vector3( 0, 0, 1 ) );
     mo.normal( Ogre::Vector3( 0, 0, 1 ) );

+ 11 - 11
Tests/QGearsMain/src/test_QGearsMapFileXMLSerializer.cpp → Tests/VGearsMain/src/test_VGearsMapFileXMLSerializer.cpp

@@ -2,13 +2,13 @@
 -----------------------------------------------------------------------------
 -----------------------------------------------------------------------------
 Copyright (c) 27.10.2013 Tobias Peters <tobias.peters@kreativeffekt.at>
 Copyright (c) 27.10.2013 Tobias Peters <tobias.peters@kreativeffekt.at>
 
 
-This file is part of Q-Gears
+This file is part of V-Gears
 
 
-Q-Gears is free software: you can redistribute it and/or modify
+V-Gears is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, version 2.0 (GPLv2) of the License.
 the Free Software Foundation, version 2.0 (GPLv2) of the License.
 
 
-Q-Gears is distributed in the hope that it will be useful,
+V-Gears is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.
 GNU General Public License for more details.
@@ -19,14 +19,14 @@ GNU General Public License for more details.
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "map/QGearsMapFileXMLSerializer.h"
+#include "map/VGearsMapFileXMLSerializer.h"
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestFile : public QGears::MapFile
+    class TestFile : public VGears::MapFile
     {
     {
     public:
     public:
-        TestFile() : QGears::MapFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::MapFile( NULL, "", 0, "" ) {}
         size_t getCalculatedSize() const { return calculateSize(); }
         size_t getCalculatedSize() const { return calculateSize(); }
 
 
         virtual void unload( void ) {}
         virtual void unload( void ) {}
@@ -38,7 +38,7 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_REQUIRE( stream->isReadable() );
     BOOST_REQUIRE( stream->isReadable() );
 
 
     Ogre::LogManager                logMgr;
     Ogre::LogManager                logMgr;
-    QGears::MapFileXMLSerializer    ser;
+    VGears::MapFileXMLSerializer    ser;
     TestFile                        f;
     TestFile                        f;
 
 
     logMgr.createLog( "Default Log", true, true, true );
     logMgr.createLog( "Default Log", true, true, true );
@@ -49,16 +49,16 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_CHECK_EQUAL( "walkmesh_resource_name"     , f.getWalkmeshName() );
     BOOST_CHECK_EQUAL( "walkmesh_resource_name"     , f.getWalkmeshName() );
     BOOST_CHECK_CLOSE( -5.625, f.getForwardDirection(), 0.001 );
     BOOST_CHECK_CLOSE( -5.625, f.getForwardDirection(), 0.001 );
 
 
-    QGears::MapFile::PointList     &points( f.getPoints() );
+    VGears::MapFile::PointList     &points( f.getPoints() );
     BOOST_REQUIRE_EQUAL( 1, points.size() );
     BOOST_REQUIRE_EQUAL( 1, points.size() );
-    QGears::MapFile::PointList::value_type    &point( points.at(0) );
+    VGears::MapFile::PointList::value_type    &point( points.at(0) );
     BOOST_CHECK_EQUAL( "Spawn_md1_1", point.GetName() );
     BOOST_CHECK_EQUAL( "Spawn_md1_1", point.GetName() );
     BOOST_CHECK( Ogre::Vector3( 29.0547f, 229.234f, 2.56082f ).positionEquals( point.GetPosition() ) );
     BOOST_CHECK( Ogre::Vector3( 29.0547f, 229.234f, 2.56082f ).positionEquals( point.GetPosition() ) );
     BOOST_CHECK_CLOSE( 67.7647, point.GetRotation(), 0.001 );
     BOOST_CHECK_CLOSE( 67.7647, point.GetRotation(), 0.001 );
 
 
-    QGears::MapFile::TriggerList   &triggers( f.getTriggers() );
+    VGears::MapFile::TriggerList   &triggers( f.getTriggers() );
     BOOST_REQUIRE_EQUAL( 1, triggers.size() );
     BOOST_REQUIRE_EQUAL( 1, triggers.size() );
-    QGears::MapFile::TriggerList::value_type    &trigger( triggers.at(0) );
+    VGears::MapFile::TriggerList::value_type    &trigger( triggers.at(0) );
     BOOST_CHECK_EQUAL( "Gateway0", trigger.GetName() );
     BOOST_CHECK_EQUAL( "Gateway0", trigger.GetName() );
     BOOST_CHECK( Ogre::Vector3( 28.6016f, 228.562f, 2.75781f ).positionEquals( trigger.GetPoint1() ) );
     BOOST_CHECK( Ogre::Vector3( 28.6016f, 228.562f, 2.75781f ).positionEquals( trigger.GetPoint1() ) );
     BOOST_CHECK( Ogre::Vector3( 28.6641f, 229.438f, 2.75781f ).positionEquals( trigger.GetPoint2() ) );
     BOOST_CHECK( Ogre::Vector3( 28.6641f, 229.438f, 2.75781f ).positionEquals( trigger.GetPoint2() ) );

+ 17 - 17
Tests/QGearsMain/src/test_QGearsPFile.cpp → Tests/VGearsMain/src/test_VGearsPFile.cpp

@@ -25,34 +25,34 @@ THE SOFTWARE.
 */
 */
 #include <cstddef>
 #include <cstddef>
 
 
-#define BOOST_TEST_MODULE QGearsPFile
+#define BOOST_TEST_MODULE VGearsPFile
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 
 
-#include "data/QGearsPFile.h"
+#include "data/VGearsPFile.h"
 
 
 BOOST_AUTO_TEST_CASE( header_size )
 BOOST_AUTO_TEST_CASE( header_size )
 {
 {
-    BOOST_CHECK_EQUAL( 0x18, sizeof( QGears::PFile::PolygonDefinition ) );
-    BOOST_CHECK_EQUAL( 0x38, sizeof( QGears::PFile::Group ) );
+    BOOST_CHECK_EQUAL( 0x18, sizeof( VGears::PFile::PolygonDefinition ) );
+    BOOST_CHECK_EQUAL( 0x38, sizeof( VGears::PFile::Group ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( polygon_offset )
 BOOST_AUTO_TEST_CASE( polygon_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x02, offsetof( QGears::PFile::PolygonDefinition, vertex ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::PFile::PolygonDefinition, normal ) );
-    BOOST_CHECK_EQUAL( 0x0E, offsetof( QGears::PFile::PolygonDefinition, edge ) );
+    BOOST_CHECK_EQUAL( 0x02, offsetof( VGears::PFile::PolygonDefinition, vertex ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::PFile::PolygonDefinition, normal ) );
+    BOOST_CHECK_EQUAL( 0x0E, offsetof( VGears::PFile::PolygonDefinition, edge ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( group_offset )
 BOOST_AUTO_TEST_CASE( group_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::PFile::Group, primitive_type ) );
-    BOOST_CHECK_EQUAL( 0x04, offsetof( QGears::PFile::Group, polygon_start_index ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::PFile::Group, num_polygons ) );
-    BOOST_CHECK_EQUAL( 0x0C, offsetof( QGears::PFile::Group, vertex_start_index ) );
-    BOOST_CHECK_EQUAL( 0x10, offsetof( QGears::PFile::Group, num_vertices ) );
-    BOOST_CHECK_EQUAL( 0x14, offsetof( QGears::PFile::Group, edge_start_index ) );
-    BOOST_CHECK_EQUAL( 0x18, offsetof( QGears::PFile::Group, num_edges ) );
-    BOOST_CHECK_EQUAL( 0x2C, offsetof( QGears::PFile::Group, texture_coordinate_start_index ) );
-    BOOST_CHECK_EQUAL( 0x30, offsetof( QGears::PFile::Group, has_texture ) );
-    BOOST_CHECK_EQUAL( 0x34, offsetof( QGears::PFile::Group, texture_index ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::PFile::Group, primitive_type ) );
+    BOOST_CHECK_EQUAL( 0x04, offsetof( VGears::PFile::Group, polygon_start_index ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::PFile::Group, num_polygons ) );
+    BOOST_CHECK_EQUAL( 0x0C, offsetof( VGears::PFile::Group, vertex_start_index ) );
+    BOOST_CHECK_EQUAL( 0x10, offsetof( VGears::PFile::Group, num_vertices ) );
+    BOOST_CHECK_EQUAL( 0x14, offsetof( VGears::PFile::Group, edge_start_index ) );
+    BOOST_CHECK_EQUAL( 0x18, offsetof( VGears::PFile::Group, num_edges ) );
+    BOOST_CHECK_EQUAL( 0x2C, offsetof( VGears::PFile::Group, texture_coordinate_start_index ) );
+    BOOST_CHECK_EQUAL( 0x30, offsetof( VGears::PFile::Group, has_texture ) );
+    BOOST_CHECK_EQUAL( 0x34, offsetof( VGears::PFile::Group, texture_index ) );
 }
 }

+ 19 - 19
Tests/QGearsMain/src/test_QGearsPFileSerializer.cpp → Tests/VGearsMain/src/test_VGearsPFileSerializer.cpp

@@ -25,40 +25,40 @@ THE SOFTWARE.
 */
 */
 #include <fstream>
 #include <fstream>
 
 
-#define BOOST_TEST_MODULE QGearsPFileSerializer
+#define BOOST_TEST_MODULE VGearsPFileSerializer
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "data/QGearsPFileSerializer.h"
+#include "data/VGearsPFileSerializer.h"
 
 
 BOOST_AUTO_TEST_CASE( header_size )
 BOOST_AUTO_TEST_CASE( header_size )
 {
 {
-    BOOST_CHECK_EQUAL( 0x80, sizeof( QGears::PFileSerializer::Header ) );
+    BOOST_CHECK_EQUAL( 0x80, sizeof( VGears::PFileSerializer::Header ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( header_offset )
 BOOST_AUTO_TEST_CASE( header_offset )
 {
 {
-    BOOST_CHECK_EQUAL( 0x00, offsetof( QGears::PFileSerializer::Header, version                 ) );
-    BOOST_CHECK_EQUAL( 0x08, offsetof( QGears::PFileSerializer::Header, vertex_type             ) );
-    BOOST_CHECK_EQUAL( 0x0C, offsetof( QGears::PFileSerializer::Header, num_vertices            ) );
-    BOOST_CHECK_EQUAL( 0x10, offsetof( QGears::PFileSerializer::Header, num_normals             ) );
-    BOOST_CHECK_EQUAL( 0x14, offsetof( QGears::PFileSerializer::Header, num_unknown1            ) );
-    BOOST_CHECK_EQUAL( 0x18, offsetof( QGears::PFileSerializer::Header, num_texture_coordinates ) );
-    BOOST_CHECK_EQUAL( 0x1C, offsetof( QGears::PFileSerializer::Header, num_vertex_colors       ) );
-    BOOST_CHECK_EQUAL( 0x20, offsetof( QGears::PFileSerializer::Header, num_edges               ) );
-    BOOST_CHECK_EQUAL( 0x24, offsetof( QGears::PFileSerializer::Header, num_polygons            ) );
-    BOOST_CHECK_EQUAL( 0x30, offsetof( QGears::PFileSerializer::Header, num_materials           ) );
-    BOOST_CHECK_EQUAL( 0x34, offsetof( QGears::PFileSerializer::Header, num_groups              ) );
-    BOOST_CHECK_EQUAL( 0x38, offsetof( QGears::PFileSerializer::Header, num_bboxes              ) );
-    BOOST_CHECK_EQUAL( 0x3C, offsetof( QGears::PFileSerializer::Header, norm_index_table_flag   ) );
+    BOOST_CHECK_EQUAL( 0x00, offsetof( VGears::PFileSerializer::Header, version                 ) );
+    BOOST_CHECK_EQUAL( 0x08, offsetof( VGears::PFileSerializer::Header, vertex_type             ) );
+    BOOST_CHECK_EQUAL( 0x0C, offsetof( VGears::PFileSerializer::Header, num_vertices            ) );
+    BOOST_CHECK_EQUAL( 0x10, offsetof( VGears::PFileSerializer::Header, num_normals             ) );
+    BOOST_CHECK_EQUAL( 0x14, offsetof( VGears::PFileSerializer::Header, num_unknown1            ) );
+    BOOST_CHECK_EQUAL( 0x18, offsetof( VGears::PFileSerializer::Header, num_texture_coordinates ) );
+    BOOST_CHECK_EQUAL( 0x1C, offsetof( VGears::PFileSerializer::Header, num_vertex_colors       ) );
+    BOOST_CHECK_EQUAL( 0x20, offsetof( VGears::PFileSerializer::Header, num_edges               ) );
+    BOOST_CHECK_EQUAL( 0x24, offsetof( VGears::PFileSerializer::Header, num_polygons            ) );
+    BOOST_CHECK_EQUAL( 0x30, offsetof( VGears::PFileSerializer::Header, num_materials           ) );
+    BOOST_CHECK_EQUAL( 0x34, offsetof( VGears::PFileSerializer::Header, num_groups              ) );
+    BOOST_CHECK_EQUAL( 0x38, offsetof( VGears::PFileSerializer::Header, num_bboxes              ) );
+    BOOST_CHECK_EQUAL( 0x3C, offsetof( VGears::PFileSerializer::Header, norm_index_table_flag   ) );
 }
 }
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestPFile : public QGears::PFile
+    class TestPFile : public VGears::PFile
     {
     {
     public:
     public:
-        TestPFile() : QGears::PFile( NULL, "", 0, "" ) {}
+        TestPFile() : VGears::PFile( NULL, "", 0, "" ) {}
         size_t getCalculatedSize() const { return calculateSize(); }
         size_t getCalculatedSize() const { return calculateSize(); }
     };
     };
 
 
@@ -69,7 +69,7 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_REQUIRE( stream->isReadable() );
     BOOST_REQUIRE( stream->isReadable() );
 
 
 	Ogre::LogManager        logMgr;
 	Ogre::LogManager        logMgr;
-    QGears::PFileSerializer ser;
+    VGears::PFileSerializer ser;
     TestPFile               file;
     TestPFile               file;
 
 
     logMgr.createLog( "Default Log", true, true, true );
     logMgr.createLog( "Default Log", true, true, true );

+ 6 - 6
Tests/QGearsMain/src/test_QGearsPaletteFileSerializer.cpp → Tests/VGearsMain/src/test_VGearsPaletteFileSerializer.cpp

@@ -23,19 +23,19 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
 THE SOFTWARE.
 -----------------------------------------------------------------------------
 -----------------------------------------------------------------------------
 */
 */
-#define BOOST_TEST_MODULE QGearsPaletteFileSerializer
+#define BOOST_TEST_MODULE VGearsPaletteFileSerializer
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 
 
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "data/QGearsPaletteFileSerializer.h"
+#include "data/VGearsPaletteFileSerializer.h"
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestFile : public QGears::PaletteFile
+    class TestFile : public VGears::PaletteFile
     {
     {
     public:
     public:
-        TestFile() : QGears::PaletteFile( NULL, "", 0, "" ) {}
+        TestFile() : VGears::PaletteFile( NULL, "", 0, "" ) {}
         size_t getCalculatedSize() const { return calculateSize(); }
         size_t getCalculatedSize() const { return calculateSize(); }
 
 
         virtual void unload( void ) {};
         virtual void unload( void ) {};
@@ -46,7 +46,7 @@ BOOST_AUTO_TEST_CASE( read_file )
 
 
     const char*                     file_name( "reference.palette" );
     const char*                     file_name( "reference.palette" );
     TestFile                        file;
     TestFile                        file;
-    QGears::PaletteFileSerializer   ser;
+    VGears::PaletteFileSerializer   ser;
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     BOOST_REQUIRE( ifs->is_open() );
     BOOST_REQUIRE( ifs->is_open() );
 
 
@@ -70,7 +70,7 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_CHECK_EQUAL(  256, file.getPages()[11].size() );
     BOOST_CHECK_EQUAL(  256, file.getPages()[11].size() );
     BOOST_CHECK_EQUAL(  256, file.getPages()[12].size() );
     BOOST_CHECK_EQUAL(  256, file.getPages()[12].size() );
     BOOST_CHECK_EQUAL(  256, file.getPages()[13].size() );
     BOOST_CHECK_EQUAL(  256, file.getPages()[13].size() );
-    BOOST_CHECK_EQUAL( 3584 * sizeof( QGears::PaletteFile::Color ), file.getCalculatedSize() );
+    BOOST_CHECK_EQUAL( 3584 * sizeof( VGears::PaletteFile::Color ), file.getCalculatedSize() );
 
 
     BOOST_CHECK_EQUAL( 0x2A12, file.getPages()[0][0] );
     BOOST_CHECK_EQUAL( 0x2A12, file.getPages()[0][0] );
 
 

+ 5 - 5
Tests/QGearsMain/src/test_QGearsRSDSerializer.cpp → Tests/VGearsMain/src/test_VGearsRSDSerializer.cpp

@@ -25,19 +25,19 @@ THE SOFTWARE.
 */
 */
 #include <fstream>
 #include <fstream>
 
 
-#define BOOST_TEST_MODULE QGearsHRCFileSerializer
+#define BOOST_TEST_MODULE VGearsHRCFileSerializer
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 
 
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "data/QGearsRSDFileSerializer.h"
+#include "data/VGearsRSDFileSerializer.h"
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestRSDFile : public QGears::RSDFile
+    class TestRSDFile : public VGears::RSDFile
     {
     {
     public:
     public:
-        TestRSDFile() : QGears::RSDFile( NULL, "", 0, "" ) {}
+        TestRSDFile() : VGears::RSDFile( NULL, "", 0, "" ) {}
         size_t getCalculatedSize() const { return calculateSize(); }
         size_t getCalculatedSize() const { return calculateSize(); }
     };
     };
 
 
@@ -53,7 +53,7 @@ BOOST_AUTO_TEST_CASE( read_file )
 
 
     const char*                 file_name( "reference.rsd" );
     const char*                 file_name( "reference.rsd" );
     TestRSDFile                 file;
     TestRSDFile                 file;
-    QGears::RSDFileSerializer   ser;
+    VGears::RSDFileSerializer   ser;
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     std::ifstream *ifs(  OGRE_NEW_T( std::ifstream, Ogre::MEMCATEGORY_GENERAL )( file_name, std::ifstream::binary ) );
     BOOST_REQUIRE( ifs->is_open() );
     BOOST_REQUIRE( ifs->is_open() );
     Ogre::DataStreamPtr stream( OGRE_NEW Ogre::FileStreamDataStream( ifs ) );
     Ogre::DataStreamPtr stream( OGRE_NEW Ogre::FileStreamDataStream( ifs ) );

+ 4 - 4
Tests/QGearsMain/src/test_QGearsRingBuffer.cpp → Tests/VGearsMain/src/test_VGearsRingBuffer.cpp

@@ -24,15 +24,15 @@ THE SOFTWARE.
 -----------------------------------------------------------------------------
 -----------------------------------------------------------------------------
 */
 */
 
 
-#define BOOST_TEST_MODULE QGearsRingBuffer
+#define BOOST_TEST_MODULE VGearsRingBuffer
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 
 
-#include "QGearsLZSDataStream.h"
+#include "VGearsLZSDataStream.h"
 
 
 BOOST_AUTO_TEST_CASE( overal )
 BOOST_AUTO_TEST_CASE( overal )
 {
 {
     char data[] = { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8 };
     char data[] = { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8 };
-    QGears::RingBuffer<4> buffer;
+    VGears::RingBuffer<4> buffer;
     BOOST_CHECK_EQUAL( 0, buffer.avail() );
     BOOST_CHECK_EQUAL( 0, buffer.avail() );
     BOOST_CHECK_EQUAL( 0, buffer.get( 0 ) );
     BOOST_CHECK_EQUAL( 0, buffer.get( 0 ) );
     BOOST_CHECK_EQUAL( 0, buffer.get( 1 ) );
     BOOST_CHECK_EQUAL( 0, buffer.get( 1 ) );
@@ -72,7 +72,7 @@ BOOST_AUTO_TEST_CASE( overal )
 
 
 BOOST_AUTO_TEST_CASE( read_single_bytes )
 BOOST_AUTO_TEST_CASE( read_single_bytes )
 {
 {
-    QGears::RingBuffer<4> buffer;
+    VGears::RingBuffer<4> buffer;
     char data;
     char data;
     data = 1; buffer.write( &data );
     data = 1; buffer.write( &data );
     data = 2; buffer.write( &data );
     data = 2; buffer.write( &data );

+ 11 - 11
Tests/QGearsMain/src/test_QGearsWalkmeshFileXMLSerializer.cpp → Tests/VGearsMain/src/test_VGearsWalkmeshFileXMLSerializer.cpp

@@ -2,13 +2,13 @@
 -----------------------------------------------------------------------------
 -----------------------------------------------------------------------------
 Copyright (c) 06.10.2013 Tobias Peters <tobias.peters@kreativeffekt.at>
 Copyright (c) 06.10.2013 Tobias Peters <tobias.peters@kreativeffekt.at>
 
 
-This file is part of Q-Gears
+This file is part of V-Gears
 
 
-Q-Gears is free software: you can redistribute it and/or modify
+V-Gears is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, version 2.0 (GPLv2) of the License.
 the Free Software Foundation, version 2.0 (GPLv2) of the License.
 
 
-Q-Gears is distributed in the hope that it will be useful,
+V-Gears is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.
 GNU General Public License for more details.
@@ -20,15 +20,15 @@ GNU General Public License for more details.
 #include <boost/test/unit_test.hpp>
 #include <boost/test/unit_test.hpp>
 #include <Ogre.h>
 #include <Ogre.h>
 
 
-#include "map/QGearsWalkmeshFileXMLSerializer.h"
+#include "map/VGearsWalkmeshFileXMLSerializer.h"
 
 
 BOOST_AUTO_TEST_CASE( read_file )
 BOOST_AUTO_TEST_CASE( read_file )
 {
 {
-    class TestFile : public QGears::WalkmeshFile
+    class TestFile : public VGears::WalkmeshFile
     {
     {
     public:
     public:
-        TestFile() : QGears::WalkmeshFile( NULL, "", 0, "" ) {}
-        size_t getCalculatedSize() const { return QGears::WalkmeshFile::calculateSize(); }
+        TestFile() : VGears::WalkmeshFile( NULL, "", 0, "" ) {}
+        size_t getCalculatedSize() const { return VGears::WalkmeshFile::calculateSize(); }
         virtual void unload( void ) {}
         virtual void unload( void ) {}
     };
     };
 
 
@@ -39,16 +39,16 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_REQUIRE( stream->isReadable() );
     BOOST_REQUIRE( stream->isReadable() );
 
 
     Ogre::LogManager                    logMgr;
     Ogre::LogManager                    logMgr;
-    QGears::WalkmeshFileXMLSerializer   ser;
+    VGears::WalkmeshFileXMLSerializer   ser;
     TestFile                            f;
     TestFile                            f;
 
 
     logMgr.createLog( "Default Log", true, true, true );
     logMgr.createLog( "Default Log", true, true, true );
 
 
     ser.importWalkmeshFile( stream, &f );
     ser.importWalkmeshFile( stream, &f );
-    QGears::WalkmeshFile::TriangleList &triangles( f.getTriangles() );
+    VGears::WalkmeshFile::TriangleList &triangles( f.getTriangles() );
     BOOST_CHECK_EQUAL( 2, triangles.size() );
     BOOST_CHECK_EQUAL( 2, triangles.size() );
 
 
-    QGears::WalkmeshFile::Triangle &t1( triangles.front() );
+    VGears::WalkmeshFile::Triangle &t1( triangles.front() );
     BOOST_CHECK_EQUAL( Ogre::Vector3(  1,   2,   4 ), t1.a );
     BOOST_CHECK_EQUAL( Ogre::Vector3(  1,   2,   4 ), t1.a );
     BOOST_CHECK_EQUAL( Ogre::Vector3(  8,  16,  32 ), t1.b );
     BOOST_CHECK_EQUAL( Ogre::Vector3(  8,  16,  32 ), t1.b );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 64, 128, 256 ), t1.c );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 64, 128, 256 ), t1.c );
@@ -56,7 +56,7 @@ BOOST_AUTO_TEST_CASE( read_file )
     BOOST_CHECK_EQUAL( -1, t1.access_side[1] );
     BOOST_CHECK_EQUAL( -1, t1.access_side[1] );
     BOOST_CHECK_EQUAL( -1, t1.access_side[2] );
     BOOST_CHECK_EQUAL( -1, t1.access_side[2] );
 
 
-    QGears::WalkmeshFile::Triangle &t2( triangles.back() );
+    VGears::WalkmeshFile::Triangle &t2( triangles.back() );
     BOOST_CHECK_EQUAL( Ogre::Vector3(   4,   2,  1 ), t2.a );
     BOOST_CHECK_EQUAL( Ogre::Vector3(   4,   2,  1 ), t2.a );
     BOOST_CHECK_EQUAL( Ogre::Vector3(  32,  16,  8 ), t2.b );
     BOOST_CHECK_EQUAL( Ogre::Vector3(  32,  16,  8 ), t2.b );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 256, 128, 64 ), t2.c );
     BOOST_CHECK_EQUAL( Ogre::Vector3( 256, 128, 64 ), t2.c );

+ 1 - 1
Tests/QGearsMain/src/test_all.cpp → Tests/VGearsMain/src/test_all.cpp

@@ -1,2 +1,2 @@
-#define BOOST_TEST_MODULE Q-Gears
+#define BOOST_TEST_MODULE V-Gears
 #include <boost/test/included/unit_test.hpp>
 #include <boost/test/included/unit_test.hpp>

+ 3 - 3
V-Gears-Installer/CMakeLists.txt

@@ -10,7 +10,7 @@ include_directories(
 # define header and source files for the library
 # define header and source files for the library
 set(HEADER_FILES
 set(HEADER_FILES
 ./common/FontFile.h
 ./common/FontFile.h
-./common/include/QGearsUtility.h
+./common/include/VGearsUtility.h
 ./common/Logger.h
 ./common/Logger.h
 ./common/Surface.h
 ./common/Surface.h
 ./common/TimToVram.h
 ./common/TimToVram.h
@@ -31,7 +31,7 @@ set(SOURCE_FILES
 ./common/TimToVram.cpp
 ./common/TimToVram.cpp
 ./common/Vram.cpp
 ./common/Vram.cpp
 ./common/OgreBase.cpp
 ./common/OgreBase.cpp
-./common/src/QGearsUtility.cpp
+./common/src/VGearsUtility.cpp
 )
 )
 
 
 add_library(Utility STATIC
 add_library(Utility STATIC
@@ -85,7 +85,7 @@ set ( v-gears-launcher_MOCS
 QT5_WRAP_CPP(MOCS ${v-gears-launcher_MOCS})
 QT5_WRAP_CPP(MOCS ${v-gears-launcher_MOCS})
 
 
 add_definitions(
 add_definitions(
-    -DQGEARS_ADD_MANAGERS
+    -DVGEARS_ADD_MANAGERS
 )
 )
 add_executable ( v-gears-launcher ${v-gears-launcher_SRCS} ${UIS} ${RSCS} ${TRS} ${MOCS} )
 add_executable ( v-gears-launcher ${v-gears-launcher_SRCS} ${UIS} ${RSCS} ${TRS} ${MOCS} )
 
 

+ 1 - 1
V-Gears-Installer/common/FontFile.cpp

@@ -19,7 +19,7 @@
 #include "FontFile.h"
 #include "FontFile.h"
 #include "common/TypeDefine.h"
 #include "common/TypeDefine.h"
 
 
-using namespace QGears;
+using namespace VGears;
 
 
 /*
 /*
 FontFile::FontFile(const Ogre::String& file): File(*GAMEFILESYSTEM, file){}
 FontFile::FontFile(const Ogre::String& file): File(*GAMEFILESYSTEM, file){}

+ 1 - 1
V-Gears-Installer/common/OgreBase.cpp

@@ -33,7 +33,7 @@ DisplayFrameListener *frame_listener;
 void InitializeOgreBase(const Ogre::String& name){
 void InitializeOgreBase(const Ogre::String& name){
     std::cout << "[OGRE] Initializing..." << std::endl;
     std::cout << "[OGRE] Initializing..." << std::endl;
     Ogre::LogManager* log_manager = new Ogre::LogManager();
     Ogre::LogManager* log_manager = new Ogre::LogManager();
-    log_manager->createLog("q-gears.log", true, true);
+    log_manager->createLog("v-gears.log", true, true);
     log_manager->getDefaultLog()->setLogDetail((Ogre::LoggingLevel)3);
     log_manager->getDefaultLog()->setLogDetail((Ogre::LoggingLevel)3);
     Ogre::String ressource_cfg("");
     Ogre::String ressource_cfg("");
     Ogre::String plugins_cfg("");
     Ogre::String plugins_cfg("");

+ 2 - 2
V-Gears-Installer/common/include/QGearsUtility.h → V-Gears-Installer/common/include/VGearsUtility.h

@@ -15,10 +15,10 @@
 
 
 #pragma once
 #pragma once
 
 
-#include "common/QGearsApplication.h"
+#include "common/VGearsApplication.h"
 #include "common/OgreBase.h"
 #include "common/OgreBase.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * Provides utilities for the application.
      * Provides utilities for the application.

+ 2 - 2
V-Gears-Installer/common/src/QGearsUtility.cpp → V-Gears-Installer/common/src/VGearsUtility.cpp

@@ -13,9 +13,9 @@
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  */
  */
 
 
-#include "QGearsUtility.h"
+#include "VGearsUtility.h"
 
 
-namespace QGears
+namespace VGears
 {
 {
     Utility::Utility(int argc, char *argv[]) :
     Utility::Utility(int argc, char *argv[]) :
       Application(argc, argv),
       Application(argc, argv),

+ 1 - 1
V-Gears-Installer/flevel/CMakeLists.txt

@@ -11,7 +11,7 @@ flevel.cpp
 )
 )
 
 
 add_definitions(
 add_definitions(
-    -DQGEARS_ADD_MANAGERS
+    -DVGEARS_ADD_MANAGERS
 )
 )
 
 
 add_executable(flevel
 add_executable(flevel

+ 2 - 2
V-Gears-Installer/flevel/flevel.cpp

@@ -31,7 +31,7 @@ THE SOFTWARE.
 
 
 #include "common/FileSystem.h"
 #include "common/FileSystem.h"
 #include "common/Logger.h"
 #include "common/Logger.h"
-//#include "common/QGearsFLevelFile.h"
+//#include "common/VGearsFLevelFile.h"
 
 
 using std::cout;
 using std::cout;
 using std::endl;
 using std::endl;
@@ -44,7 +44,7 @@ void extractSections( const bfs::path &file_in, const bfs::path &path_out )
     /*
     /*
     File f( file_in.string() );
     File f( file_in.string() );
     // TODO alternative implementation adapted to FLevel Resource
     // TODO alternative implementation adapted to FLevel Resource
-    QGears::FLevelFile flevel( &f );
+    VGears::FLevelFile flevel( &f );
     File** sections( flevel.getSections() );
     File** sections( flevel.getSections() );
 
 
     bfs::path file_out;
     bfs::path file_out;

+ 10 - 10
V-Gears-Installer/include/ff7DataInstaller.h

@@ -19,11 +19,11 @@
 #include <vector>
 #include <vector>
 #include <iostream>
 #include <iostream>
 #include "common/make_unique.h"
 #include "common/make_unique.h"
-#include "common/QGearsApplication.h"
+#include "common/VGearsApplication.h"
 #include "common/FinalFantasy7/FF7NameLookup.h"
 #include "common/FinalFantasy7/FF7NameLookup.h"
-#include "data/QGearsTriggersFile.h"
-#include "common/QGearsStringUtil.h"
-#include "data/QGearsFLevelFile.h"
+#include "data/VGearsTriggersFile.h"
+#include "common/VGearsStringUtil.h"
+#include "data/VGearsFLevelFile.h"
 #include "ff7FieldTextWriter.h"
 #include "ff7FieldTextWriter.h"
 
 
 // TODO: Separate classes in files.
 // TODO: Separate classes in files.
@@ -131,7 +131,7 @@ class SpawnPointDb{
                 /**
                 /**
                  * Gateway data.
                  * Gateway data.
                  */
                  */
-                QGears::TriggersFile::Gateway gateway;
+                VGears::TriggersFile::Gateway gateway;
 
 
                 /**
                 /**
                  * Indicates if the gateway is a map jump from a script.
                  * Indicates if the gateway is a map jump from a script.
@@ -183,7 +183,7 @@ class ModelsAndAnimationsDb{
          */
          */
         std::string NormalizeAnimationName(const std::string& name){
         std::string NormalizeAnimationName(const std::string& name){
             Ogre::String base_name;
             Ogre::String base_name;
-            QGears::StringUtil::splitBase(name, base_name);
+            VGears::StringUtil::splitBase(name, base_name);
             std::transform(
             std::transform(
               base_name.begin(), base_name.end(), base_name.begin(), ::tolower
               base_name.begin(), base_name.end(), base_name.begin(), ::tolower
             );
             );
@@ -215,8 +215,8 @@ class ModelsAndAnimationsDb{
         std::string ModelMetaDataName(const std::string& model_name){
         std::string ModelMetaDataName(const std::string& model_name){
             // If not in meta data then just replace .hrc with .mesh.
             // If not in meta data then just replace .hrc with .mesh.
             Ogre::String base_name;
             Ogre::String base_name;
-            QGears::StringUtil::splitBase(model_name, base_name);
-            return QGears::FF7::NameLookup::model(base_name) + ".mesh";
+            VGears::StringUtil::splitBase(model_name, base_name);
+            return VGears::FF7::NameLookup::model(base_name) + ".mesh";
         }
         }
 
 
         //private:
         //private:
@@ -412,7 +412,7 @@ class FF7DataInstaller{
          * It's a singleton so it can't be recreated. It will crash the second
          * It's a singleton so it can't be recreated. It will crash the second
          * time round.
          * time round.
          */
          */
-        QGears::Application application_;
+        VGears::Application application_;
 
 
         /**
         /**
          * LGP archive with field data.
          * LGP archive with field data.
@@ -483,7 +483,7 @@ class FF7DataInstaller{
         /**
         /**
          * Field currently being processed.
          * Field currently being processed.
          */
          */
-        QGears::FLevelFilePtr field_;
+        VGears::FLevelFilePtr field_;
 
 
         /**
         /**
          * List of model files.
          * List of model files.

+ 2 - 2
V-Gears-Installer/include/mainwindow.h

@@ -66,14 +66,14 @@ class MainWindow : public QMainWindow{
          *
          *
          * Sets the selected directory.
          * Sets the selected directory.
          */
          */
-        void on_lineQGearsExe_editingFinished();
+        void on_lineVGearsExe_editingFinished();
 
 
         /**
         /**
          * Triggered when the executable directory button is clicked.
          * Triggered when the executable directory button is clicked.
          *
          *
          * Opens a file manager for file selection.
          * Opens a file manager for file selection.
          */
          */
-        void on_btnQGearsExe_clicked();
+        void on_btnVGearsExe_clicked();
 
 
         /**
         /**
          * Triggered when the launch button is clicked.
          * Triggered when the launch button is clicked.

+ 1 - 1
V-Gears-Installer/lzs/CMakeLists.txt

@@ -11,7 +11,7 @@ lzs.cpp
 )
 )
 
 
 add_definitions(
 add_definitions(
-    -DQGEARS_ADD_MANAGERS
+    -DVGEARS_ADD_MANAGERS
 )
 )
 
 
 add_executable(lzs
 add_executable(lzs

+ 3 - 3
V-Gears-Installer/src/CMakeLists.txt

@@ -10,7 +10,7 @@ include_directories(
 # define header and source files for the library
 # define header and source files for the library
 set(HEADER_FILES
 set(HEADER_FILES
 ./common/FontFile.h
 ./common/FontFile.h
-./common/include/QGearsUtility.h
+./common/include/VGearsUtility.h
 ./common/Logger.h
 ./common/Logger.h
 ./common/Surface.h
 ./common/Surface.h
 ./common/TimToVram.h
 ./common/TimToVram.h
@@ -31,7 +31,7 @@ set(SOURCE_FILES
 ./common/TimToVram.cpp
 ./common/TimToVram.cpp
 ./common/Vram.cpp
 ./common/Vram.cpp
 ./common/OgreBase.cpp
 ./common/OgreBase.cpp
-./common/src/QGearsUtility.cpp
+./common/src/VGearsUtility.cpp
 )
 )
 
 
 add_library(Utility STATIC
 add_library(Utility STATIC
@@ -86,7 +86,7 @@ set ( v-gears-launcher_MOCS
 QT5_WRAP_CPP(MOCS ${v-gears-launcher_MOCS})
 QT5_WRAP_CPP(MOCS ${v-gears-launcher_MOCS})
 
 
 add_definitions(
 add_definitions(
-    -DQGEARS_ADD_MANAGERS
+    -DVGEARS_ADD_MANAGERS
 )
 )
 add_executable ( v-gears-launcher ${v-gears-launcher_SRCS} ${UIS} ${RSCS} ${TRS} ${MOCS} )
 add_executable ( v-gears-launcher ${v-gears-launcher_SRCS} ${UIS} ${RSCS} ${TRS} ${MOCS} )
 
 

+ 73 - 73
V-Gears-Installer/src/ff7DataInstaller.cpp

@@ -30,24 +30,24 @@
 #include <OgreResourceGroupManager.h>
 #include <OgreResourceGroupManager.h>
 #include <OgreLog.h>
 #include <OgreLog.h>
 #include "../include/ff7DataInstaller.h"
 #include "../include/ff7DataInstaller.h"
-#include "QGearsGameState.h"
-#include "data/QGearsAFileManager.h"
-#include "data/QGearsBackgroundFileManager.h"
-#include "data/QGearsCameraMatrixFileManager.h"
-#include "data/QGearsHRCFileManager.h"
-#include "data/QGearsLZSFLevelFileManager.h"
-#include "data/QGearsPaletteFileManager.h"
-#include "data/QGearsPFileManager.h"
-#include "data/QGearsRSDFileManager.h"
-#include "data/QGearsTexFile.h"
-#include "data/QGearsTexCodec.h"
-#include "map/QGearsBackground2DFileManager.h"
-#include "map/QGearsWalkmeshFileManager.h"
+#include "VGearsGameState.h"
+#include "data/VGearsAFileManager.h"
+#include "data/VGearsBackgroundFileManager.h"
+#include "data/VGearsCameraMatrixFileManager.h"
+#include "data/VGearsHRCFileManager.h"
+#include "data/VGearsLZSFLevelFileManager.h"
+#include "data/VGearsPaletteFileManager.h"
+#include "data/VGearsPFileManager.h"
+#include "data/VGearsRSDFileManager.h"
+#include "data/VGearsTexFile.h"
+#include "data/VGearsTexCodec.h"
+#include "map/VGearsBackground2DFileManager.h"
+#include "map/VGearsWalkmeshFileManager.h"
 #include "data/FinalFantasy7/FF7ModelListFileManager.h"
 #include "data/FinalFantasy7/FF7ModelListFileManager.h"
-#include "data/QGearsLGPArchiveFactory.h"
+#include "data/VGearsLGPArchiveFactory.h"
 #include "common/FinalFantasy7/FF7NameLookup.h"
 #include "common/FinalFantasy7/FF7NameLookup.h"
-#include "data/QGearsTexCodec.h"
-#include "data/QGearsMapListFile.h"
+#include "data/VGearsTexCodec.h"
+#include "data/VGearsMapListFile.h"
 #include "decompiler/sudm.h"
 #include "decompiler/sudm.h"
 #include <memory>
 #include <memory>
 #include <QtCore/QDir>
 #include <QtCore/QDir>
@@ -147,7 +147,7 @@ void TexToPng(const std::string name){
     Ogre::DataStreamPtr stream(
     Ogre::DataStreamPtr stream(
       Ogre::ResourceGroupManager::getSingleton().openResource(name, "FFVIITextures", true, NULL)
       Ogre::ResourceGroupManager::getSingleton().openResource(name, "FFVIITextures", true, NULL)
     );
     );
-    QGears::TexFile* tex = new QGears::TexFile();
+    VGears::TexFile* tex = new VGears::TexFile();
     tex->Read(stream);
     tex->Read(stream);
     Ogre::ImageCodec::ImageData* image_data = tex->GetImageData();
     Ogre::ImageCodec::ImageData* image_data = tex->GetImageData();
     Ogre::Image* image = new Ogre::Image(
     Ogre::Image* image = new Ogre::Image(
@@ -170,7 +170,7 @@ void TexToPng(const std::string name){
         }
         }
     }
     }
     Ogre::String base_name;
     Ogre::String base_name;
-    QGears::StringUtil::splitBase(name, base_name);
+    VGears::StringUtil::splitBase(name, base_name);
     // TODO: Detect path
     // TODO: Detect path
     image->save("data/models/ffvii/field/units/" + base_name + ".png");
     image->save("data/models/ffvii/field/units/" + base_name + ".png");
 
 
@@ -187,8 +187,8 @@ void TexToPng(const std::string name){
 static void ExportMesh(std::string outdir, const Ogre::MeshPtr &mesh){
 static void ExportMesh(std::string outdir, const Ogre::MeshPtr &mesh){
 
 
     // TODO: Share function with pc model exporter
     // TODO: Share function with pc model exporter
-    QGears::String base_mesh_name;
-    QGears::StringUtil::splitFull(mesh->getName(), base_mesh_name);
+    VGears::String base_mesh_name;
+    VGears::StringUtil::splitFull(mesh->getName(), base_mesh_name);
     Ogre::MeshSerializer mesh_serializer;
     Ogre::MeshSerializer mesh_serializer;
     Ogre::SkeletonPtr skeleton(mesh->getSkeleton());
     Ogre::SkeletonPtr skeleton(mesh->getSkeleton());
     Ogre::SkeletonSerializer skeleton_serializer;
     Ogre::SkeletonSerializer skeleton_serializer;
@@ -227,7 +227,7 @@ static void ExportMesh(std::string outdir, const Ogre::MeshPtr &mesh){
                                     // rather than tex
                                     // rather than tex
                                     // files.
                                     // files.
                                     Ogre::String base_name;
                                     Ogre::String base_name;
-                                    QGears::StringUtil::splitBase(
+                                    VGears::StringUtil::splitBase(
                                       unit->getTextureName(), base_name
                                       unit->getTextureName(), base_name
                                     );
                                     );
                                     unit->setTextureName(
                                     unit->setTextureName(
@@ -261,7 +261,7 @@ static void ExportMesh(std::string outdir, const Ogre::MeshPtr &mesh){
         }
         }
         ++ i;
         ++ i;
     }
     }
-    mat_ser.exportQueued(outdir + base_mesh_name + QGears::EXT_MATERIAL);
+    mat_ser.exportQueued(outdir + base_mesh_name + VGears::EXT_MATERIAL);
     for (auto& texture_name : textures){
     for (auto& texture_name : textures){
         std::string tex_name = texture_name.c_str();
         std::string tex_name = texture_name.c_str();
         try{
         try{
@@ -270,7 +270,7 @@ static void ExportMesh(std::string outdir, const Ogre::MeshPtr &mesh){
             Ogre::Image image;
             Ogre::Image image;
             texture_ptr->convertToImage(image);
             texture_ptr->convertToImage(image);
             Ogre::String base_name;
             Ogre::String base_name;
-            QGears::StringUtil::splitBase(texture_name, base_name);
+            VGears::StringUtil::splitBase(texture_name, base_name);
             image.save(outdir + base_mesh_name + "_" + base_name + ".png");
             image.save(outdir + base_mesh_name + "_" + base_name + ".png");
         }
         }
         catch (std::exception const& ex){
         catch (std::exception const& ex){
@@ -365,7 +365,7 @@ class BaseFF7FieldScriptFormatter : public SUDM::IScriptFormatter{
         virtual std::string VarName(
         virtual std::string VarName(
           unsigned int bank, unsigned int addr
           unsigned int bank, unsigned int addr
         ) override{
         ) override{
-            return QGears::FF7::NameLookup::FieldScriptVarName(bank, addr);
+            return VGears::FF7::NameLookup::FieldScriptVarName(bank, addr);
         }
         }
 
 
         /**
         /**
@@ -376,7 +376,7 @@ class BaseFF7FieldScriptFormatter : public SUDM::IScriptFormatter{
          * doesn't have one assigned.
          * doesn't have one assigned.
          */
          */
         virtual std::string EntityName(const std::string& entity) override{
         virtual std::string EntityName(const std::string& entity) override{
-            return QGears::FF7::NameLookup::FieldScriptEntityName(entity);
+            return VGears::FF7::NameLookup::FieldScriptEntityName(entity);
         }
         }
 
 
         /**
         /**
@@ -387,7 +387,7 @@ class BaseFF7FieldScriptFormatter : public SUDM::IScriptFormatter{
          * doesn't have one assigned.
          * doesn't have one assigned.
          */
          */
         virtual std::string CharName(int char_id) override{
         virtual std::string CharName(int char_id) override{
-            return QGears::FF7::NameLookup::CharName(char_id);
+            return VGears::FF7::NameLookup::CharName(char_id);
         }
         }
 
 
         /**
         /**
@@ -401,7 +401,7 @@ class BaseFF7FieldScriptFormatter : public SUDM::IScriptFormatter{
         virtual std::string FunctionName(
         virtual std::string FunctionName(
           const std::string& entity, const std::string& function_name
           const std::string& entity, const std::string& function_name
         ) override{
         ) override{
-            return QGears::FF7::NameLookup::FieldScriptFunctionName(
+            return VGears::FF7::NameLookup::FieldScriptFunctionName(
               field_name_, entity, function_name
               field_name_, entity, function_name
             );
             );
         }
         }
@@ -417,7 +417,7 @@ class BaseFF7FieldScriptFormatter : public SUDM::IScriptFormatter{
         virtual std::string FunctionComment(
         virtual std::string FunctionComment(
           const std::string& entity, const std::string& function_name
           const std::string& entity, const std::string& function_name
         ) override{
         ) override{
-            return QGears::FF7::NameLookup::FieldScriptFunctionComment(
+            return VGears::FF7::NameLookup::FieldScriptFunctionComment(
               field_name_, entity, function_name
               field_name_, entity, function_name
             );
             );
         }
         }
@@ -456,7 +456,7 @@ class FF7FieldScriptFormatter : public BaseFF7FieldScriptFormatter{
          * @param spawn_points[in] The list of spawn points.
          * @param spawn_points[in] The list of spawn points.
          */
          */
         FF7FieldScriptFormatter(
         FF7FieldScriptFormatter(
-          const std::string& field_name, const QGears::ModelListFilePtr& models,
+          const std::string& field_name, const VGears::ModelListFilePtr& models,
           const std::vector<std::string>& field_id_to_name_lookup,
           const std::vector<std::string>& field_id_to_name_lookup,
           FieldSpawnPointsMap& spawn_points
           FieldSpawnPointsMap& spawn_points
         ) :
         ) :
@@ -492,9 +492,9 @@ class FF7FieldScriptFormatter : public BaseFF7FieldScriptFormatter{
             const auto raw_name = model_info.animations.at(id).name;
             const auto raw_name = model_info.animations.at(id).name;
             // Trim off ".yos" or whatever extension the model loader adds in.
             // Trim off ".yos" or whatever extension the model loader adds in.
             Ogre::String base_name;
             Ogre::String base_name;
-            QGears::StringUtil::splitBase(raw_name, base_name);
-            QGears::StringUtil::toLowerCase(base_name);
-            return QGears::FF7::NameLookup::Animation(base_name);
+            VGears::StringUtil::splitBase(raw_name, base_name);
+            VGears::StringUtil::toLowerCase(base_name);
+            return VGears::FF7::NameLookup::Animation(base_name);
         }
         }
 
 
     private:
     private:
@@ -502,7 +502,7 @@ class FF7FieldScriptFormatter : public BaseFF7FieldScriptFormatter{
         /**
         /**
          * The field model loader.
          * The field model loader.
          */
          */
-        const QGears::ModelListFilePtr& model_loader_;
+        const VGears::ModelListFilePtr& model_loader_;
 };
 };
 
 
 /**
 /**
@@ -598,9 +598,9 @@ static float FieldScaleFactor(
  * end.
  * end.
  * @param write_output_line[in] Functon to print output to console.
  * @param write_output_line[in] Functon to print output to console.
  */
  */
-static void FF7PcFieldToQGearsField(
+static void FF7PcFieldToVGearsField(
   FF7FieldTextWriter& field_text_writter,
   FF7FieldTextWriter& field_text_writter,
-  QGears::FLevelFilePtr& field,
+  VGears::FLevelFilePtr& field,
   const std::string& out_dir,
   const std::string& out_dir,
   const std::vector<std::string>& field_id_to_name_lookup,
   const std::vector<std::string>& field_id_to_name_lookup,
   FieldSpawnPointsMap& spawn_map,
   FieldSpawnPointsMap& spawn_map,
@@ -612,10 +612,10 @@ static void FF7PcFieldToQGearsField(
     // Generate triggers script to insert into main
     // Generate triggers script to insert into main
     // decompiled FF7 field -> LUA script.
     // decompiled FF7 field -> LUA script.
     std::string gateway_script_data;
     std::string gateway_script_data;
-    const QGears::TriggersFilePtr& triggers = field->GetTriggers();
+    const VGears::TriggersFilePtr& triggers = field->GetTriggers();
     const auto& gateways = triggers->GetGateways();
     const auto& gateways = triggers->GetGateways();
     for (size_t i = 0; i < gateways.size(); i ++){
     for (size_t i = 0; i < gateways.size(); i ++){
-        const QGears::TriggersFile::Gateway& gateway = gateways[i];
+        const VGears::TriggersFile::Gateway& gateway = gateways[i];
         if (gateway.destination_field_id != INACTIVE_GATEWAY_ID){
         if (gateway.destination_field_id != INACTIVE_GATEWAY_ID){
             const std::string gateway_entity_name = "Gateway" + std::to_string(i);
             const std::string gateway_entity_name = "Gateway" + std::to_string(i);
             gateway_script_data += CreateGateWayScript(
             gateway_script_data += CreateGateWayScript(
@@ -625,7 +625,7 @@ static void FF7PcFieldToQGearsField(
             );
             );
         }
         }
     }
     }
-    const QGears::ModelListFilePtr& models = field->GetModelList();
+    const VGears::ModelListFilePtr& models = field->GetModelList();
     SUDM::FF7::Field::DecompiledScript decompiled;
     SUDM::FF7::Field::DecompiledScript decompiled;
     FF7FieldScriptFormatter formatter(field->getName(), models, field_id_to_name_lookup, spawn_map);
     FF7FieldScriptFormatter formatter(field->getName(), models, field_id_to_name_lookup, spawn_map);
     try{
     try{
@@ -705,7 +705,7 @@ static void FF7PcFieldToQGearsField(
             const std::vector<SpawnPointDb::Record>& spawn_point_records
             const std::vector<SpawnPointDb::Record>& spawn_point_records
               = spawn_iterator->second.gateways_to_this_field;
               = spawn_iterator->second.gateways_to_this_field;
             for (size_t i = 0; i < spawn_point_records.size(); i ++){
             for (size_t i = 0; i < spawn_point_records.size(); i ++){
-                const QGears::TriggersFile::Gateway& gateway = spawn_point_records[i].gateway;
+                const VGears::TriggersFile::Gateway& gateway = spawn_point_records[i].gateway;
                 // Entity_point:
                 // Entity_point:
                 std::unique_ptr<TiXmlElement> xml_entity_point(new TiXmlElement("entity_point"));
                 std::unique_ptr<TiXmlElement> xml_entity_point(new TiXmlElement("entity_point"));
                 if (spawn_point_records[i].from_script){
                 if (spawn_point_records[i].from_script){
@@ -800,7 +800,7 @@ static void FF7PcFieldToQGearsField(
             }
             }
             const int char_id = entity.char_id;
             const int char_id = entity.char_id;
             if (char_id != -1){
             if (char_id != -1){
-                const QGears::ModelListFile::ModelDescription& desc
+                const VGears::ModelListFile::ModelDescription& desc
                   = models->GetModels().at(char_id);
                   = models->GetModels().at(char_id);
                 auto& animations = model_animation_db.ModelAnimations(desc.hrc_name);
                 auto& animations = model_animation_db.ModelAnimations(desc.hrc_name);
                 for (auto& anim : desc.animations)
                 for (auto& anim : desc.animations)
@@ -809,13 +809,13 @@ static void FF7PcFieldToQGearsField(
                 xml_entity_script->SetAttribute("name", entity.name);
                 xml_entity_script->SetAttribute("name", entity.name);
                 // TODO: Add to list of HRC's to convert, obtain name of converted .mesh file.
                 // TODO: Add to list of HRC's to convert, obtain name of converted .mesh file.
                 auto lower_case_hrc_name = desc.hrc_name;
                 auto lower_case_hrc_name = desc.hrc_name;
-                QGears::StringUtil::toLowerCase(lower_case_hrc_name);
+                VGears::StringUtil::toLowerCase(lower_case_hrc_name);
                 xml_entity_script->SetAttribute(
                 xml_entity_script->SetAttribute(
                   "file_name",
                   "file_name",
                   FieldModelDir() + "/" + model_animation_db.ModelMetaDataName(lower_case_hrc_name)
                   FieldModelDir() + "/" + model_animation_db.ModelMetaDataName(lower_case_hrc_name)
                 );
                 );
                 xml_entity_script->SetAttribute("index", entity.index);
                 xml_entity_script->SetAttribute("index", entity.index);
-                if (desc.type == QGears::ModelListFile::PLAYER){
+                if (desc.type == VGears::ModelListFile::PLAYER){
                     // For player models the position is set manually in the xml because if a map
                     // For player models the position is set manually in the xml because if a map
                     // is loaded manually this is where the player will end up. Hence we set the
                     // is loaded manually this is where the player will end up. Hence we set the
                     // position to the first entity_point that we have.
                     // position to the first entity_point that we have.
@@ -846,7 +846,7 @@ static void FF7PcFieldToQGearsField(
         const float downscaler_this = 128.0f * FieldScaleFactor(scale_factor_map, this_field_id);
         const float downscaler_this = 128.0f * FieldScaleFactor(scale_factor_map, this_field_id);
         const auto& gateways = triggers->GetGateways();
         const auto& gateways = triggers->GetGateways();
         for (size_t i = 0; i < gateways.size(); i ++){
         for (size_t i = 0; i < gateways.size(); i ++){
-            const QGears::TriggersFile::Gateway& gateway = gateways[i];
+            const VGears::TriggersFile::Gateway& gateway = gateways[i];
             // If non-inactive gateway:
             // If non-inactive gateway:
             if (gateway.destination_field_id != INACTIVE_GATEWAY_ID){
             if (gateway.destination_field_id != INACTIVE_GATEWAY_ID){
                 std::unique_ptr<TiXmlElement> xml_entity_trigger(
                 std::unique_ptr<TiXmlElement> xml_entity_trigger(
@@ -878,8 +878,8 @@ static void FF7PcFieldToQGearsField(
         }
         }
         doc.LinkEndChild(element.release());
         doc.LinkEndChild(element.release());
         doc.SaveFile(out_dir + "/" + FieldMapDir() + "/" + field->getName() + "/map.xml");
         doc.SaveFile(out_dir + "/" + FieldMapDir() + "/" + field->getName() + "/map.xml");
-        const QGears::PaletteFilePtr& pal = field->GetPalette();
-        const QGears::BackgroundFilePtr& bg = field->GetBackground();
+        const VGears::PaletteFilePtr& pal = field->GetPalette();
+        const VGears::BackgroundFilePtr& bg = field->GetBackground();
         std::unique_ptr<Ogre::Image> bg_image(bg->CreateImage(pal));
         std::unique_ptr<Ogre::Image> bg_image(bg->CreateImage(pal));
         bg_image->encode("png");
         bg_image->encode("png");
         bg_image->save(out_dir + "/" + FieldMapDir() + "/" + field->getName() + "/tiles.png");
         bg_image->save(out_dir + "/" + FieldMapDir() + "/" + field->getName() + "/tiles.png");
@@ -893,7 +893,7 @@ static void FF7PcFieldToQGearsField(
             // Get texture atlas size.
             // Get texture atlas size.
             const int width = bg_image->getWidth();
             const int width = bg_image->getWidth();
             const int height = bg_image->getHeight();
             const int height = bg_image->getHeight();
-            const QGears::CameraMatrixFilePtr& camera_matrix = field->GetCameraMatrix();
+            const VGears::CameraMatrixFilePtr& camera_matrix = field->GetCameraMatrix();
             const Ogre::Vector3 position
             const Ogre::Vector3 position
               = camera_matrix->GetPosition() / FieldScaleFactor(scale_factor_map, this_field_id);
               = camera_matrix->GetPosition() / FieldScaleFactor(scale_factor_map, this_field_id);
             const Ogre::Quaternion orientation = camera_matrix->GetOrientation();
             const Ogre::Quaternion orientation = camera_matrix->GetOrientation();
@@ -923,7 +923,7 @@ static void FF7PcFieldToQGearsField(
                 // TODO: Should only the tiles to construct enabled layers be outputted?
                 // TODO: Should only the tiles to construct enabled layers be outputted?
                 //  if (layer.enabled){
                 //  if (layer.enabled){
 
 
-                for (const QGears::BackgroundFile::SpriteData& sprite : layer.sprites){
+                for (const VGears::BackgroundFile::SpriteData& sprite : layer.sprites){
                     std::unique_ptr<TiXmlElement> xml_element(new TiXmlElement("tile"));
                     std::unique_ptr<TiXmlElement> xml_element(new TiXmlElement("tile"));
                     xml_element->SetAttribute(
                     xml_element->SetAttribute(
                       "destination",
                       "destination",
@@ -976,10 +976,10 @@ static void FF7PcFieldToQGearsField(
     }
     }
     {
     {
         // Save out the walk mesh as XML.
         // Save out the walk mesh as XML.
-        const QGears::WalkmeshFilePtr& walkmesh = field->GetWalkmesh();
+        const VGears::WalkmeshFilePtr& walkmesh = field->GetWalkmesh();
         TiXmlDocument doc;
         TiXmlDocument doc;
         std::unique_ptr<TiXmlElement> element(new TiXmlElement("walkmesh"));
         std::unique_ptr<TiXmlElement> element(new TiXmlElement("walkmesh"));
-        for (QGears::WalkmeshFile::Triangle& tri : walkmesh->GetTriangles()){
+        for (VGears::WalkmeshFile::Triangle& tri : walkmesh->GetTriangles()){
             std::unique_ptr<TiXmlElement> xml_element(new TiXmlElement("triangle"));
             std::unique_ptr<TiXmlElement> xml_element(new TiXmlElement("triangle"));
             xml_element->SetAttribute("a", Ogre::StringConverter::toString(tri.a));
             xml_element->SetAttribute("a", Ogre::StringConverter::toString(tri.a));
             xml_element->SetAttribute("b", Ogre::StringConverter::toString(tri.b));
             xml_element->SetAttribute("b", Ogre::StringConverter::toString(tri.b));
@@ -1036,7 +1036,7 @@ class FF7FieldScriptGatewayCollector : public BaseFF7FieldScriptFormatter{
           unsigned int address, int x, int y, int z, int angle
           unsigned int address, int x, int y, int z, int angle
         ) override {
         ) override {
             auto it = spawn_points_.find(map_id);
             auto it = spawn_points_.find(map_id);
-            QGears::TriggersFile::Gateway gw = {};
+            VGears::TriggersFile::Gateway gw = {};
             gw.destination_field_id = map_id;
             gw.destination_field_id = map_id;
             gw.destination.x = x;
             gw.destination.x = x;
             gw.destination.y = y;
             gw.destination.y = y;
@@ -1091,7 +1091,7 @@ class FF7FieldScriptGatewayCollector : public BaseFF7FieldScriptFormatter{
  * of this map.
  * of this map.
  */
  */
 static void CollectSpawnPoints(
 static void CollectSpawnPoints(
-  QGears::FLevelFilePtr& field, const std::vector<std::string>& field_id_to_name_lookup,
+  VGears::FLevelFilePtr& field, const std::vector<std::string>& field_id_to_name_lookup,
   FieldSpawnPointsMap& spawn_points
   FieldSpawnPointsMap& spawn_points
 ){
 ){
     const size_t this_field_id = FieldId(field->getName(), field_id_to_name_lookup);
     const size_t this_field_id = FieldId(field->getName(), field_id_to_name_lookup);
@@ -1112,10 +1112,10 @@ static void CollectSpawnPoints(
     catch (const ::InternalDecompilerError& ex){
     catch (const ::InternalDecompilerError& ex){
         std::cerr << "CollectSpawnPoints: InternalDecompilerError: " << ex.what() << std::endl;
         std::cerr << "CollectSpawnPoints: InternalDecompilerError: " << ex.what() << std::endl;
     }
     }
-    const QGears::TriggersFilePtr& triggers = field->GetTriggers();
+    const VGears::TriggersFilePtr& triggers = field->GetTriggers();
     const auto& gateways = triggers->GetGateways();
     const auto& gateways = triggers->GetGateways();
     for (size_t i = 0; i < gateways.size(); i ++){
     for (size_t i = 0; i < gateways.size(); i ++){
-        const QGears::TriggersFile::Gateway& gateway = gateways[i];
+        const VGears::TriggersFile::Gateway& gateway = gateways[i];
         if (gateway.destination_field_id != INACTIVE_GATEWAY_ID){
         if (gateway.destination_field_id != INACTIVE_GATEWAY_ID){
             auto it = spawn_points.find(gateway.destination_field_id);
             auto it = spawn_points.find(gateway.destination_field_id);
             if (it != std::end(spawn_points)){
             if (it != std::end(spawn_points)){
@@ -1153,9 +1153,9 @@ static void CollectSpawnPoints(
  */
  */
 static bool IsAFieldFile(Ogre::String& resource_name){
 static bool IsAFieldFile(Ogre::String& resource_name){
     return (
     return (
-      !QGears::StringUtil::endsWith(resource_name, ".tex")
-      && !QGears::StringUtil::endsWith(resource_name, ".tut")
-      && !QGears::StringUtil::endsWith(resource_name, ".siz")
+      !VGears::StringUtil::endsWith(resource_name, ".tex")
+      && !VGears::StringUtil::endsWith(resource_name, ".tut")
+      && !VGears::StringUtil::endsWith(resource_name, ".siz")
       && resource_name != "maplist"
       && resource_name != "maplist"
     );
     );
 }
 }
@@ -1228,7 +1228,7 @@ static bool IsTestField(Ogre::String& resource_name){
  * names.
  * names.
  */
  */
 static void CollectFieldScaleFactors(
 static void CollectFieldScaleFactors(
-  QGears::FLevelFilePtr& field, FieldScaleFactorMap& scale_factors,
+  VGears::FLevelFilePtr& field, FieldScaleFactorMap& scale_factors,
   const std::vector<std::string>& field_id_to_name_lookup
   const std::vector<std::string>& field_id_to_name_lookup
 ){
 ){
     scale_factors[FieldId(field->getName(), field_id_to_name_lookup)]
     scale_factors[FieldId(field->getName(), field_id_to_name_lookup)]
@@ -1242,10 +1242,10 @@ void FF7DataInstaller::InitCollectSpawnAndScaleFactors(){
     // List what's in the LGP archive.
     // List what's in the LGP archive.
     flevel_file_list_ = application_.ResMgr()->listResourceNames("FFVIIFields", "*");
     flevel_file_list_ = application_.ResMgr()->listResourceNames("FFVIIFields", "*");
     // Load the map list field.
     // Load the map list field.
-    QGears::MapListFilePtr map_list
-      = QGears::MapListFileManager::GetSingleton().load(
+    VGears::MapListFilePtr map_list
+      = VGears::MapListFileManager::GetSingleton().load(
         "maplist", "FFVIIFields"
         "maplist", "FFVIIFields"
-      ).staticCast<QGears::MapListFile>();
+      ).staticCast<VGears::MapListFile>();
     map_list_ = map_list->GetMapList();
     map_list_ = map_list->GetMapList();
     iterator_counter_ = 0;
     iterator_counter_ = 0;
     conversion_step_ = 0;
     conversion_step_ = 0;
@@ -1263,9 +1263,9 @@ void FF7DataInstaller::CollectionFieldSpawnAndScaleFactors(){
         if (IsAFieldFile(resource_name) && IsTestField(resource_name)){
         if (IsAFieldFile(resource_name) && IsTestField(resource_name)){
             conversion_step_ ++;
             conversion_step_ ++;
             if (conversion_step_ == 1){
             if (conversion_step_ == 1){
-                field_ = QGears::LZSFLevelFileManager::GetSingleton().load(
+                field_ = VGears::LZSFLevelFileManager::GetSingleton().load(
                   resource_name, "FFVIIFields"
                   resource_name, "FFVIIFields"
-                ).staticCast<QGears::FLevelFile>();
+                ).staticCast<VGears::FLevelFile>();
                 //write_output_line("Load field " + resource_name);
                 //write_output_line("Load field " + resource_name);
                 return;
                 return;
             }
             }
@@ -1305,11 +1305,11 @@ void FF7DataInstaller::ConvertFieldsIteration(){
                 //write_output_line("Converting field " + resource_name);
                 //write_output_line("Converting field " + resource_name);
                 std::cout << " - Converting field: " << resource_name << std::endl;
                 std::cout << " - Converting field: " << resource_name << std::endl;
                 CreateDir(FieldMapDir() + "/" + resource_name);
                 CreateDir(FieldMapDir() + "/" + resource_name);
-                QGears::FLevelFilePtr field
-                  = QGears::LZSFLevelFileManager::GetSingleton().load(
+                VGears::FLevelFilePtr field
+                  = VGears::LZSFLevelFileManager::GetSingleton().load(
                     resource_name, "FFVIIFields"
                     resource_name, "FFVIIFields"
-                  ).staticCast<QGears::FLevelFile>();
-                FF7PcFieldToQGearsField(
+                  ).staticCast<VGears::FLevelFile>();
+                FF7PcFieldToVGearsField(
                   field_text_writer_, field, output_dir_, map_list_, spawn_points_, scale_factors_,
                   field_text_writer_, field, output_dir_, map_list_, spawn_points_, scale_factors_,
                   used_models_and_anims_, converted_map_list_, write_output_line
                   used_models_and_anims_, converted_map_list_, write_output_line
                 );
                 );
@@ -1388,21 +1388,21 @@ void FF7DataInstaller::ConvertFieldModelsIteration(){
         }
         }
         else{
         else{
             try{
             try{
-                Ogre::ResourcePtr hrc = QGears::HRCFileManager::GetSingleton().load(
+                Ogre::ResourcePtr hrc = VGears::HRCFileManager::GetSingleton().load(
                     model_animation_map_iterator_->first, "FFVII"
                     model_animation_map_iterator_->first, "FFVII"
                   );
                   );
                 Ogre::String base_name;
                 Ogre::String base_name;
-                QGears::StringUtil::splitBase(model_animation_map_iterator_->first, base_name);
-                auto mesh_name = QGears::FF7::NameLookup::model(base_name) + ".mesh";
+                VGears::StringUtil::splitBase(model_animation_map_iterator_->first, base_name);
+                auto mesh_name = VGears::FF7::NameLookup::model(base_name) + ".mesh";
                 Ogre::MeshPtr mesh(Ogre::MeshManager::getSingleton().load(mesh_name, "FFVII"));
                 Ogre::MeshPtr mesh(Ogre::MeshManager::getSingleton().load(mesh_name, "FFVII"));
                 Ogre::SkeletonPtr skeleton(mesh->getSkeleton());
                 Ogre::SkeletonPtr skeleton(mesh->getSkeleton());
                 for (auto& anim : model_animation_map_iterator_->second){
                 for (auto& anim : model_animation_map_iterator_->second){
-                    QGears::AFileManager &afl_mgr(QGears::AFileManager::GetSingleton());
-                    QGears::AFilePtr a = afl_mgr.load(anim, "FFVII").staticCast<QGears::AFile>();
+                    VGears::AFileManager &afl_mgr(VGears::AFileManager::GetSingleton());
+                    VGears::AFilePtr a = afl_mgr.load(anim, "FFVII").staticCast<VGears::AFile>();
                     // Convert the FF7 name to a more readable name set in the meta data.
                     // Convert the FF7 name to a more readable name set in the meta data.
                     Ogre::String base_name;
                     Ogre::String base_name;
-                    QGears::StringUtil::splitBase(anim, base_name);
-                    a->AddTo(skeleton, QGears::FF7::NameLookup::Animation(base_name));
+                    VGears::StringUtil::splitBase(anim, base_name);
+                    a->AddTo(skeleton, VGears::FF7::NameLookup::Animation(base_name));
                 }
                 }
                 ExportMesh(output_dir_ + "/" + FieldModelDir() + "/", mesh);
                 ExportMesh(output_dir_ + "/" + FieldModelDir() + "/", mesh);
             }
             }

+ 1 - 1
V-Gears-Installer/src/ff7FieldTextWriter.cpp

@@ -15,7 +15,7 @@
 
 
 #include <iostream>
 #include <iostream>
 #include "../include/ff7FieldTextWriter.h"
 #include "../include/ff7FieldTextWriter.h"
-#include "common/QGearsStringUtil.h"
+#include "common/VGearsStringUtil.h"
 
 
 // TODO: Refactor: this is based on/copied from DatFile::DumpText.
 // TODO: Refactor: this is based on/copied from DatFile::DumpText.
 
 

+ 19 - 19
V-Gears-Installer/src/mainwindow.cpp

@@ -42,14 +42,14 @@ MainWindow::MainWindow(QWidget *parent) :
       settings_->value("ConfigDir").toString()
       settings_->value("ConfigDir").toString()
     );
     );
     main_window_->lineDataDir->setText(settings_->value("DataDir").toString());
     main_window_->lineDataDir->setText(settings_->value("DataDir").toString());
-    main_window_->lineQGearsExe->setText(
-      settings_->value("QGearsEXE").toString()
+    main_window_->lineVGearsExe->setText(
+      settings_->value("VGearsEXE").toString()
     );
     );
 #ifdef _DEBUG
 #ifdef _DEBUG
     // Hard coded prebaked paths for debugging to save time
     // Hard coded prebaked paths for debugging to save time
     //main_window_->lineInput->setText("C:\\Games\\FF7\\data");
     //main_window_->lineInput->setText("C:\\Games\\FF7\\data");
     //main_window_->lineDataDir->setText(
     //main_window_->lineDataDir->setText(
-    //  "C:\\Users\\paul\\Desktop\\q-gears\\output\\data"
+    //  "C:\\Users\\paul\\Desktop\\v-gears\\output\\data"
     //);
     //);
 #endif
 #endif
     timer_ = new QTimer(this);
     timer_ = new QTimer(this);
@@ -68,7 +68,7 @@ void MainWindow::InitSettings(void){
         win = true;
         win = true;
     #else
     #else
         settings_ = new QSettings(
         settings_ = new QSettings(
-          QSettings::NativeFormat,QSettings::UserScope, "q-gears", "launcher", 0
+          QSettings::NativeFormat,QSettings::UserScope, "v-gears", "launcher", 0
         );
         );
     #endif
     #endif
     //Check settings
     //Check settings
@@ -98,15 +98,15 @@ void MainWindow::InitSettings(void){
         }
         }
     }
     }
 
 
-    if (settings_->value("QGearsEXE").isNull()){
+    if (settings_->value("VGearsEXE").isNull()){
         if (win){
         if (win){
             settings_->setValue(
             settings_->setValue(
-              "QGearsEXE",QString("%1/v-gears.exe").arg(
+              "VGearsEXE",QString("%1/v-gears.exe").arg(
                  QCoreApplication::applicationDirPath()
                  QCoreApplication::applicationDirPath()
                )
                )
             );
             );
         }
         }
-        else settings_->setValue("QGearsEXE", QString("/usr/games/q-gears"));
+        else settings_->setValue("VGearsEXE", QString("/usr/games/v-gears"));
     }
     }
 }
 }
 
 
@@ -116,7 +116,7 @@ void MainWindow::on_lineConfigDir_editingFinished(){
 
 
 void MainWindow::on_btnConfigDir_clicked(){
 void MainWindow::on_btnConfigDir_clicked(){
     QString temp = QFileDialog::getExistingDirectory(
     QString temp = QFileDialog::getExistingDirectory(
-      this, tr("Select Location of QGears Configuration Data,"),
+      this, tr("Select Location of VGears Configuration Data,"),
       settings_->value("ConfigDir").toString());
       settings_->value("ConfigDir").toString());
     if (!temp.isNull()){
     if (!temp.isNull()){
         settings_->setValue("ConfigDir", temp);
         settings_->setValue("ConfigDir", temp);
@@ -124,29 +124,29 @@ void MainWindow::on_btnConfigDir_clicked(){
     }
     }
 }
 }
 
 
-void MainWindow::on_lineQGearsExe_editingFinished(){
-    settings_->setValue("QGearsEXE",main_window_->lineQGearsExe->text());
+void MainWindow::on_lineVGearsExe_editingFinished(){
+    settings_->setValue("VGearsEXE",main_window_->lineVGearsExe->text());
 }
 }
 
 
-void MainWindow::on_btnQGearsExe_clicked(){
+void MainWindow::on_btnVGearsExe_clicked(){
     QString temp = QFileDialog::getOpenFileName(
     QString temp = QFileDialog::getOpenFileName(
-      this, tr("Location of QGears Executable,"), QDir::rootPath());
+      this, tr("Location of VGears Executable,"), QDir::rootPath());
     if (!temp.isNull()){
     if (!temp.isNull()){
-        settings_->setValue("QGearsEXE", temp);
-        main_window_->lineQGearsExe->setText(temp);
+        settings_->setValue("VGearsEXE", temp);
+        main_window_->lineVGearsExe->setText(temp);
     }
     }
 }
 }
 
 
 void MainWindow::on_btnLaunch_clicked(){
 void MainWindow::on_btnLaunch_clicked(){
     QString configDir(main_window_->lineConfigDir->text());
     QString configDir(main_window_->lineConfigDir->text());
-    QString exe(main_window_->lineQGearsExe->text());
+    QString exe(main_window_->lineVGearsExe->text());
     QStringList args;
     QStringList args;
     args.append(
     args.append(
       QString("--resources-file=%1/resources.cfg").arg(
       QString("--resources-file=%1/resources.cfg").arg(
         main_window_->lineConfigDir->text())
         main_window_->lineConfigDir->text())
     );
     );
     args.append(
     args.append(
-      QString("--config-file=%1/q-gears.cfg").arg(
+      QString("--config-file=%1/v-gears.cfg").arg(
         main_window_->lineConfigDir->text()
         main_window_->lineConfigDir->text()
       )
       )
     );
     );
@@ -156,8 +156,8 @@ void MainWindow::on_btnLaunch_clicked(){
       )
       )
     );
     );
     // Check that the config dir is set up correctly.
     // Check that the config dir is set up correctly.
-    QProcess qGears;
-    qGears.startDetached(exe,args,configDir);
+    QProcess vGears;
+    vGears.startDetached(exe,args,configDir);
 }
 }
 
 
 
 
@@ -174,7 +174,7 @@ void MainWindow::on_lineDataDir_editingFinished(){
 
 
 void MainWindow::on_btnDataDir_clicked(){
 void MainWindow::on_btnDataDir_clicked(){
     QString temp = QFileDialog::getExistingDirectory(
     QString temp = QFileDialog::getExistingDirectory(
-      this, tr("Location of QGears Data),"),
+      this, tr("Location of VGears Data),"),
       settings_->value("DataDir").toString()
       settings_->value("DataDir").toString()
     );
     );
     if(!temp.isNull()){
     if(!temp.isNull()){

+ 7 - 7
V-Gears-Installer/src/mainwindow.ui

@@ -11,7 +11,7 @@
    </rect>
    </rect>
   </property>
   </property>
   <property name="windowTitle">
   <property name="windowTitle">
-   <string>QGears Launcher</string>
+   <string>VGears Launcher</string>
   </property>
   </property>
   <widget class="QWidget" name="centralWidget">
   <widget class="QWidget" name="centralWidget">
    <layout class="QVBoxLayout" name="verticalLayout">
    <layout class="QVBoxLayout" name="verticalLayout">
@@ -22,7 +22,7 @@
       </property>
       </property>
       <widget class="QWidget" name="tab">
       <widget class="QWidget" name="tab">
        <attribute name="title">
        <attribute name="title">
-        <string>Q-Gears Config</string>
+        <string>V-Gears Config</string>
        </attribute>
        </attribute>
        <layout class="QVBoxLayout" name="verticalLayout_2">
        <layout class="QVBoxLayout" name="verticalLayout_2">
         <item>
         <item>
@@ -30,15 +30,15 @@
           <item>
           <item>
            <widget class="QLabel" name="label_2">
            <widget class="QLabel" name="label_2">
             <property name="text">
             <property name="text">
-             <string>QGears Path</string>
+             <string>VGears Path</string>
             </property>
             </property>
            </widget>
            </widget>
           </item>
           </item>
           <item>
           <item>
-           <widget class="QLineEdit" name="lineQGearsExe"/>
+           <widget class="QLineEdit" name="lineVGearsExe"/>
           </item>
           </item>
           <item>
           <item>
-           <widget class="QPushButton" name="btnQGearsExe">
+           <widget class="QPushButton" name="btnVGearsExe">
             <property name="sizePolicy">
             <property name="sizePolicy">
              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
              <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
               <horstretch>0</horstretch>
               <horstretch>0</horstretch>
@@ -94,7 +94,7 @@
         <item>
         <item>
          <widget class="QPushButton" name="btnLaunch">
          <widget class="QPushButton" name="btnLaunch">
           <property name="text">
           <property name="text">
-           <string>Run Q-Gears</string>
+           <string>Run V-Gears</string>
           </property>
           </property>
          </widget>
          </widget>
         </item>
         </item>
@@ -137,7 +137,7 @@
           <item>
           <item>
            <widget class="QLabel" name="label_3">
            <widget class="QLabel" name="label_3">
             <property name="text">
             <property name="text">
-             <string>QGears Data Path:</string>
+             <string>VGears Data Path:</string>
             </property>
             </property>
            </widget>
            </widget>
           </item>
           </item>

+ 115 - 115
V-Gears/CMakeLists.txt

@@ -2,27 +2,27 @@
 set(HEADER_FILES
 set(HEADER_FILES
   include/modules/worldmap/WorldMapModule.h
   include/modules/worldmap/WorldMapModule.h
 
 
-  include/common/QGearsManualObject.h
-  include/common/QGearsResource.h
-  include/common/QGearsStringUtil.h
+  include/common/VGearsManualObject.h
+  include/common/VGearsResource.h
+  include/common/VGearsStringUtil.h
   include/common/TypeDefine.h
   include/common/TypeDefine.h
   include/common/LzsFile.h
   include/common/LzsFile.h
   include/common/File.h
   include/common/File.h
   include/common/FileSystem.h
   include/common/FileSystem.h
   include/common/make_unique.h
   include/common/make_unique.h
-  include/map/QGearsBackground2DFile.h
-  include/map/QGearsBackground2DFileManager.h
-  include/map/QGearsBackground2DFileXMLSerializer.h
-  include/map/QGearsTile.h
-  include/map/QGearsMapFile.h
-  include/map/QGearsMapFileManager.h
-  include/map/QGearsMapFileXMLSerializer.h
-  include/map/QGearsWalkmeshFile.h
-  include/map/QGearsWalkmeshFileManager.h
-  include/map/QGearsWalkmeshFileXMLSerializer.h
+  include/map/VGearsBackground2DFile.h
+  include/map/VGearsBackground2DFileManager.h
+  include/map/VGearsBackground2DFileXMLSerializer.h
+  include/map/VGearsTile.h
+  include/map/VGearsMapFile.h
+  include/map/VGearsMapFileManager.h
+  include/map/VGearsMapFileXMLSerializer.h
+  include/map/VGearsWalkmeshFile.h
+  include/map/VGearsWalkmeshFileManager.h
+  include/map/VGearsWalkmeshFileXMLSerializer.h
   include/LuaIncludes.h
   include/LuaIncludes.h
-  include/QGearsGameState.h
-  include/QGearsPrerequisites.h
+  include/VGearsGameState.h
+  include/VGearsPrerequisites.h
   include/core/particles/emitters/ParticlePointEmitter.h
   include/core/particles/emitters/ParticlePointEmitter.h
   include/core/particles/emitters/ParticlePointEmitterFactory.h
   include/core/particles/emitters/ParticlePointEmitterFactory.h
   include/core/particles/renderer/ParticleEntityAdditionalData.h
   include/core/particles/renderer/ParticleEntityAdditionalData.h
@@ -103,7 +103,7 @@ set(HEADER_FILES
   include/core/TextManager.h
   include/core/TextManager.h
   include/core/TextManagerCommands.h
   include/core/TextManagerCommands.h
   #include/viewer/ViewerModule.h
   #include/viewer/ViewerModule.h
-  include/data/QGearsXMLSerializer.h
+  include/data/VGearsXMLSerializer.h
   include/common/FinalFantasy7/FF7NameLookup.h
   include/common/FinalFantasy7/FF7NameLookup.h
   include/map/FinalFantasy7/FF7WalkmeshFileSerializer.h
   include/map/FinalFantasy7/FF7WalkmeshFileSerializer.h
   include/FF7Character.h
   include/FF7Character.h
@@ -111,106 +111,106 @@ set(HEADER_FILES
 )
 )
 
 
 set(HEADER_FILES_DATA
 set(HEADER_FILES_DATA
-  include/common/QGearsApplication.h
+  include/common/VGearsApplication.h
 include/data/worldmap/MapFile.h
 include/data/worldmap/MapFile.h
   include/data/worldmap/MapFileManager.h
   include/data/worldmap/MapFileManager.h
   include/data/worldmap/MapFileSerializer.h
   include/data/worldmap/MapFileSerializer.h
   include/data/worldmap/TxzFile.h
   include/data/worldmap/TxzFile.h
   include/data/worldmap/TxzFileManager.h
   include/data/worldmap/TxzFileManager.h
   include/data/worldmap/TxzFileSerializer.h
   include/data/worldmap/TxzFileSerializer.h
-  include/data/QGearsAFile.h
-  include/data/QGearsAFileManager.h
-  include/data/QGearsAFileSerializer.h
-  include/data/QGearsBackgroundFile.h
-  include/data/QGearsBackgroundFileManager.h
-  include/data/QGearsBackgroundFileSerializer.h
-  include/data/QGearsBackgroundTextureLoader.h
-  include/data/QGearsCameraMatrixFile.h
-  include/data/QGearsCameraMatrixFileManager.h
-  include/data/QGearsCameraMatrixFileSerializer.h
-  include/data/QGearsFLevelBackground2DLoader.h
-  include/data/QGearsFLevelFile.h
-  include/data/QGearsFLevelFileManager.h
-  include/data/QGearsFLevelFileSerializer.h
-  include/data/QGearsFLevelTextureLoader.h
-  include/data/QGearsHRCFile.h
-  include/data/QGearsHRCFileManager.h
-  include/data/QGearsHRCFileSerializer.h
-  include/data/QGearsHRCMeshLoader.h
-  include/data/QGearsHRCSkeletonLoader.h
-  include/data/QGearsLGPArchive.h
-  include/data/QGearsLGPArchiveFactory.h
-  include/data/QGearsLGPArchiveSerializer.h
-  include/data/QGearsLZSDataStream.h
-  include/data/QGearsLZSFLevelFile.h
-  include/data/QGearsLZSFLevelFileManager.h
-  include/data/QGearsPaletteFile.h
-  include/data/QGearsPaletteFileManager.h
-  include/data/QGearsPaletteFileSerializer.h
-  include/data/QGearsPFile.h
-  include/data/QGearsPFileManager.h
-  include/data/QGearsPFileSerializer.h
-  include/data/QGearsRSDFile.h
-  include/data/QGearsRSDFileManager.h
-  include/data/QGearsRSDFileSerializer.h
-  include/data/QGearsSerializer.h
-  include/data/QGearsTexCodec.h
-  include/data/QGearsTexFile.h
-  include/data/QGearsTriggersFile.h
-  include/data/QGearsMapListFile.h
+  include/data/VGearsAFile.h
+  include/data/VGearsAFileManager.h
+  include/data/VGearsAFileSerializer.h
+  include/data/VGearsBackgroundFile.h
+  include/data/VGearsBackgroundFileManager.h
+  include/data/VGearsBackgroundFileSerializer.h
+  include/data/VGearsBackgroundTextureLoader.h
+  include/data/VGearsCameraMatrixFile.h
+  include/data/VGearsCameraMatrixFileManager.h
+  include/data/VGearsCameraMatrixFileSerializer.h
+  include/data/VGearsFLevelBackground2DLoader.h
+  include/data/VGearsFLevelFile.h
+  include/data/VGearsFLevelFileManager.h
+  include/data/VGearsFLevelFileSerializer.h
+  include/data/VGearsFLevelTextureLoader.h
+  include/data/VGearsHRCFile.h
+  include/data/VGearsHRCFileManager.h
+  include/data/VGearsHRCFileSerializer.h
+  include/data/VGearsHRCMeshLoader.h
+  include/data/VGearsHRCSkeletonLoader.h
+  include/data/VGearsLGPArchive.h
+  include/data/VGearsLGPArchiveFactory.h
+  include/data/VGearsLGPArchiveSerializer.h
+  include/data/VGearsLZSDataStream.h
+  include/data/VGearsLZSFLevelFile.h
+  include/data/VGearsLZSFLevelFileManager.h
+  include/data/VGearsPaletteFile.h
+  include/data/VGearsPaletteFileManager.h
+  include/data/VGearsPaletteFileSerializer.h
+  include/data/VGearsPFile.h
+  include/data/VGearsPFileManager.h
+  include/data/VGearsPFileSerializer.h
+  include/data/VGearsRSDFile.h
+  include/data/VGearsRSDFileManager.h
+  include/data/VGearsRSDFileSerializer.h
+  include/data/VGearsSerializer.h
+  include/data/VGearsTexCodec.h
+  include/data/VGearsTexFile.h
+  include/data/VGearsTriggersFile.h
+  include/data/VGearsMapListFile.h
   include/data/FinalFantasy7/FF7ModelListFile.h
   include/data/FinalFantasy7/FF7ModelListFile.h
   include/data/FinalFantasy7/FF7ModelListFileManager.h
   include/data/FinalFantasy7/FF7ModelListFileManager.h
   include/data/FinalFantasy7/FF7ModelListFileSerializer.h
   include/data/FinalFantasy7/FF7ModelListFileSerializer.h
 )
 )
 
 
 set(SOURCE_FILES_DATA
 set(SOURCE_FILES_DATA
-  src/common/QGearsApplication.cpp
-  src/data/QGearsAFile.cpp
-  src/data/QGearsAFileManager.cpp
-  src/data/QGearsAFileSerializer.cpp
+  src/common/VGearsApplication.cpp
+  src/data/VGearsAFile.cpp
+  src/data/VGearsAFileManager.cpp
+  src/data/VGearsAFileSerializer.cpp
   src/data/worldmap/MapFile.cpp
   src/data/worldmap/MapFile.cpp
   src/data/worldmap/MapFileManager.cpp
   src/data/worldmap/MapFileManager.cpp
   src/data/worldmap/MapFileSerializer.cpp
   src/data/worldmap/MapFileSerializer.cpp
   src/data/worldmap/TxzFile.cpp
   src/data/worldmap/TxzFile.cpp
   src/data/worldmap/TxzFileManager.cpp
   src/data/worldmap/TxzFileManager.cpp
   src/data/worldmap/TxzFileSerializer.cpp
   src/data/worldmap/TxzFileSerializer.cpp
-  src/data/QGearsBackgroundFile.cpp
-  src/data/QGearsBackgroundFileManager.cpp
-  src/data/QGearsBackgroundFileSerializer.cpp
-  src/data/QGearsBackgroundTextureLoader.cpp
-  src/data/QGearsCameraMatrixFile.cpp
-  src/data/QGearsCameraMatrixFileManager.cpp
-  src/data/QGearsCameraMatrixFileSerializer.cpp
-  src/data/QGearsFLevelBackground2DLoader.cpp
-  src/data/QGearsFLevelFile.cpp
-  src/data/QGearsFLevelFileManager.cpp
-  src/data/QGearsFLevelFileSerializer.cpp
-  src/data/QGearsFLevelTextureLoader.cpp
-  src/data/QGearsHRCFile.cpp
-  src/data/QGearsHRCFileManager.cpp
-  src/data/QGearsHRCFileSerializer.cpp
-  src/data/QGearsHRCMeshLoader.cpp
-  src/data/QGearsHRCSkeletonLoader.cpp
-  src/data/QGearsLGPArchive.cpp
-  src/data/QGearsLGPArchiveFactory.cpp
-  src/data/QGearsLGPArchiveSerializer.cpp
-  src/data/QGearsLZSDataStream.cpp
-  src/data/QGearsLZSFLevelFile.cpp
-  src/data/QGearsLZSFLevelFileManager.cpp
-  src/data/QGearsPaletteFile.cpp
-  src/data/QGearsPaletteFileManager.cpp
-  src/data/QGearsPaletteFileSerializer.cpp
-  src/data/QGearsPFile.cpp
-  src/data/QGearsPFileManager.cpp
-  src/data/QGearsPFileSerializer.cpp
-  src/data/QGearsRSDFile.cpp
-  src/data/QGearsRSDFileManager.cpp
-  src/data/QGearsRSDFileSerializer.cpp
-  src/data/QGearsSerializer.cpp
-  src/data/QGearsTexCodec.cpp
-  src/data/QGearsTexFile.cpp
-  src/data/QGearsTriggersFile.cpp
-  src/data/QGearsMapListFile.cpp
+  src/data/VGearsBackgroundFile.cpp
+  src/data/VGearsBackgroundFileManager.cpp
+  src/data/VGearsBackgroundFileSerializer.cpp
+  src/data/VGearsBackgroundTextureLoader.cpp
+  src/data/VGearsCameraMatrixFile.cpp
+  src/data/VGearsCameraMatrixFileManager.cpp
+  src/data/VGearsCameraMatrixFileSerializer.cpp
+  src/data/VGearsFLevelBackground2DLoader.cpp
+  src/data/VGearsFLevelFile.cpp
+  src/data/VGearsFLevelFileManager.cpp
+  src/data/VGearsFLevelFileSerializer.cpp
+  src/data/VGearsFLevelTextureLoader.cpp
+  src/data/VGearsHRCFile.cpp
+  src/data/VGearsHRCFileManager.cpp
+  src/data/VGearsHRCFileSerializer.cpp
+  src/data/VGearsHRCMeshLoader.cpp
+  src/data/VGearsHRCSkeletonLoader.cpp
+  src/data/VGearsLGPArchive.cpp
+  src/data/VGearsLGPArchiveFactory.cpp
+  src/data/VGearsLGPArchiveSerializer.cpp
+  src/data/VGearsLZSDataStream.cpp
+  src/data/VGearsLZSFLevelFile.cpp
+  src/data/VGearsLZSFLevelFileManager.cpp
+  src/data/VGearsPaletteFile.cpp
+  src/data/VGearsPaletteFileManager.cpp
+  src/data/VGearsPaletteFileSerializer.cpp
+  src/data/VGearsPFile.cpp
+  src/data/VGearsPFileManager.cpp
+  src/data/VGearsPFileSerializer.cpp
+  src/data/VGearsRSDFile.cpp
+  src/data/VGearsRSDFileManager.cpp
+  src/data/VGearsRSDFileSerializer.cpp
+  src/data/VGearsSerializer.cpp
+  src/data/VGearsTexCodec.cpp
+  src/data/VGearsTexFile.cpp
+  src/data/VGearsTriggersFile.cpp
+  src/data/VGearsMapListFile.cpp
   src/data/FinalFantasy7/FF7ModelListFile.cpp
   src/data/FinalFantasy7/FF7ModelListFile.cpp
   src/data/FinalFantasy7/FF7ModelListFileManager.cpp
   src/data/FinalFantasy7/FF7ModelListFileManager.cpp
   src/data/FinalFantasy7/FF7ModelListFileSerializer.cpp
   src/data/FinalFantasy7/FF7ModelListFileSerializer.cpp
@@ -219,9 +219,9 @@ set(SOURCE_FILES_DATA
 set(SOURCE_FILES
 set(SOURCE_FILES
   src/modules/worldmap/WorldMapModule.cpp
   src/modules/worldmap/WorldMapModule.cpp
 
 
-  src/common/QGearsManualObject.cpp
-  src/common/QGearsResource.cpp
-  src/common/QGearsStringUtil.cpp
+  src/common/VGearsManualObject.cpp
+  src/common/VGearsResource.cpp
+  src/common/VGearsStringUtil.cpp
   src/common/TypeDefine.cpp
   src/common/TypeDefine.cpp
   src/common/LzsFile.cpp
   src/common/LzsFile.cpp
   src/common/File.cpp
   src/common/File.cpp
@@ -286,18 +286,18 @@ set(SOURCE_FILES
   src/core/XmlTextsFile.cpp
   src/core/XmlTextsFile.cpp
   src/core/DialogsManager.cpp
   src/core/DialogsManager.cpp
   src/core/TextManager.cpp
   src/core/TextManager.cpp
-  src/map/QGearsBackground2DFile.cpp
-  src/map/QGearsBackground2DFileManager.cpp
-  src/map/QGearsBackground2DFileXMLSerializer.cpp
-  src/map/QGearsMapFile.cpp
-  src/map/QGearsMapFileManager.cpp
-  src/map/QGearsMapFileXMLSerializer.cpp
-  src/map/QGearsWalkmeshFile.cpp
-  src/map/QGearsWalkmeshFileManager.cpp
-  src/map/QGearsWalkmeshFileXMLSerializer.cpp
+  src/map/VGearsBackground2DFile.cpp
+  src/map/VGearsBackground2DFileManager.cpp
+  src/map/VGearsBackground2DFileXMLSerializer.cpp
+  src/map/VGearsMapFile.cpp
+  src/map/VGearsMapFileManager.cpp
+  src/map/VGearsMapFileXMLSerializer.cpp
+  src/map/VGearsWalkmeshFile.cpp
+  src/map/VGearsWalkmeshFileManager.cpp
+  src/map/VGearsWalkmeshFileXMLSerializer.cpp
   #src/viewer/ViewerModule.cpp
   #src/viewer/ViewerModule.cpp
-  src/QGearsGameState.cpp
-  src/data/QGearsXMLSerializer.cpp
+  src/VGearsGameState.cpp
+  src/data/VGearsXMLSerializer.cpp
   src/common/FinalFantasy7/FF7NameLookup.cpp
   src/common/FinalFantasy7/FF7NameLookup.cpp
   src/map/FinalFantasy7/FF7WalkmeshFileSerializer.cpp
   src/map/FinalFantasy7/FF7WalkmeshFileSerializer.cpp
   src/FF7Character.cpp
   src/FF7Character.cpp
@@ -393,13 +393,13 @@ set(CPACK_PACKAGE_EXECUTABLES v-gears "v-gears")
 set(CPACK_WIX_PROGRAM_MENU_FOLDER "VGears")
 set(CPACK_WIX_PROGRAM_MENU_FOLDER "VGears")
 
 
 if (APPLE)
 if (APPLE)
-target_link_libraries(q-gears "-framework CoreFoundation -framework Cocoa -framework IOKit" ${ois_lib})
+target_link_libraries(v-gears "-framework CoreFoundation -framework Cocoa -framework IOKit" ${ois_lib})
 endif()
 endif()
 
 
 if( WIN32 AND NOT (CMAKE_BUILD_TYPE MATCHES "Debug") )
 if( WIN32 AND NOT (CMAKE_BUILD_TYPE MATCHES "Debug") )
-    set_target_properties( q-gears PROPERTIES WIN32_EXECUTABLE ON )
+    set_target_properties( v-gears PROPERTIES WIN32_EXECUTABLE ON )
 	if (MSVC)
 	if (MSVC)
-        set_target_properties(q-gears PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
+        set_target_properties(v-gears PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
     endif()
     endif()
 endif()
 endif()
 
 

+ 2 - 2
V-Gears/include/FF7Character.h

@@ -97,11 +97,11 @@ namespace FFVII{
              * @return ID of the character with the specified name, or {@see
              * @return ID of the character with the specified name, or {@see
              * UNKNOWN} if the character doesn't exist.
              * UNKNOWN} if the character doesn't exist.
              */
              */
-            static CharacterId GetIdByName( const QGears::String& name);
+            static CharacterId GetIdByName( const VGears::String& name);
 
 
         private:
         private:
 
 
-            typedef std::map<QGears::String, CharacterId> CharacterIdLookupMap;
+            typedef std::map<VGears::String, CharacterId> CharacterIdLookupMap;
 
 
             /**
             /**
              * Creates a lookup map for character names.
              * Creates a lookup map for character names.

+ 1 - 1
V-Gears/include/FF7Common.h

@@ -17,7 +17,7 @@
 
 
 #include "common/TypeDefine.h"
 #include "common/TypeDefine.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     namespace FF7{
     namespace FF7{
 
 

+ 1 - 1
V-Gears/include/QGearsGameState.h → V-Gears/include/VGearsGameState.h

@@ -15,7 +15,7 @@
 
 
 #pragma once
 #pragma once
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * Indicators for the game state.
      * Indicators for the game state.

+ 6 - 6
V-Gears/include/QGearsPrerequisites.h → V-Gears/include/VGearsPrerequisites.h

@@ -23,14 +23,14 @@
 
 
 #include <OgrePrerequisites.h>
 #include <OgrePrerequisites.h>
 
 
-#if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32 ) && !defined(_MSC_VER) && !defined(QGEARS_STATIC_LIB)
-#   ifdef QGEARS_EXPORTS
-#       define _QGearsExport __declspec(dllexport)
+#if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32 ) && !defined(_MSC_VER) && !defined(VGEARS_STATIC_LIB)
+#   ifdef VGEARS_EXPORTS
+#       define _VGearsExport __declspec(dllexport)
 #   else
 #   else
-#       define _QGearsExport __declspec(dllimport)
+#       define _VGearsExport __declspec(dllimport)
 #   endif
 #   endif
 #elif defined (OGRE_GCC_VISIBILITY)
 #elif defined (OGRE_GCC_VISIBILITY)
-#   define _QGearsExport  __attribute__ ((visibility("default")))
+#   define _VGearsExport  __attribute__ ((visibility("default")))
 #else
 #else
-#   define _QGearsExport
+#   define _VGearsExport
 #endif
 #endif

+ 2 - 2
V-Gears/include/common/FinalFantasy7/FF7NameLookup.h

@@ -16,12 +16,12 @@
 #pragma once
 #pragma once
 
 
 #include "common/TypeDefine.h"
 #include "common/TypeDefine.h"
-#include "common/QGearsStringUtil.h"
+#include "common/VGearsStringUtil.h"
 #include "core/XmlFile.h"
 #include "core/XmlFile.h"
 
 
 // TODO: Move implementations to cpp file.
 // TODO: Move implementations to cpp file.
 
 
-namespace QGears{
+namespace VGears{
 
 
     namespace FF7{
     namespace FF7{
 
 

+ 2 - 2
V-Gears/include/common/LzsFile.h

@@ -96,7 +96,7 @@ class LzsBuffer{
          * @param buffer[in] Buffer with the data of the lzs file.
          * @param buffer[in] Buffer with the data of the lzs file.
          * @return Decompressed data.
          * @return Decompressed data.
          */
          */
-        static std::vector<QGears::uint8> Decompress(
-          const std::vector<QGears::uint8>& buffer
+        static std::vector<VGears::uint8> Decompress(
+          const std::vector<VGears::uint8>& buffer
         );
         );
 };
 };

+ 1 - 1
V-Gears/include/common/TypeDefine.h

@@ -25,7 +25,7 @@ typedef Ogre::int8 s8;
 typedef Ogre::int16 s16;
 typedef Ogre::int16 s16;
 typedef Ogre::int32 s32;
 typedef Ogre::int32 s32;
 
 
-namespace QGears{
+namespace VGears{
 
 
     typedef Ogre::uchar uchar;
     typedef Ogre::uchar uchar;
     typedef Ogre::uint8 uint8;
     typedef Ogre::uint8 uint8;

+ 1 - 1
V-Gears/include/common/QGearsApplication.h → V-Gears/include/common/VGearsApplication.h

@@ -20,7 +20,7 @@
 #include <memory>
 #include <memory>
 #include "TypeDefine.h"
 #include "TypeDefine.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * The V-Gears main applicacion
      * The V-Gears main applicacion

+ 1 - 1
V-Gears/include/common/QGearsManualObject.h → V-Gears/include/common/VGearsManualObject.h

@@ -20,7 +20,7 @@
 #include <Ogre.h>
 #include <Ogre.h>
 #include "common/TypeDefine.h"
 #include "common/TypeDefine.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * A manually handled object.
      * A manually handled object.

+ 4 - 4
V-Gears/include/common/QGearsResource.h → V-Gears/include/common/VGearsResource.h

@@ -19,14 +19,14 @@
 #include <OgreResource.h>
 #include <OgreResource.h>
 #include <OgreResourceGroupManager.h>
 #include <OgreResourceGroupManager.h>
 #include "common/TypeDefine.h"
 #include "common/TypeDefine.h"
-#include "QGearsPrerequisites.h"
+#include "VGearsPrerequisites.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * A resource.
      * A resource.
      */
      */
-    class _QGearsExport Resource : public Ogre::Resource{
+    class _VGearsExport Resource : public Ogre::Resource{
 
 
         public:
         public:
 
 
@@ -41,7 +41,7 @@ namespace QGears{
              * @param handle[in] Ogre object that will handle the resource.
              * @param handle[in] Ogre object that will handle the resource.
              * @param group[in] Name of the group to include the resource in.
              * @param group[in] Name of the group to include the resource in.
              * @pram manual[in] Indicates if the resource is a {@see
              * @pram manual[in] Indicates if the resource is a {@see
-             * QGearsManualObject}.
+             * VGearsManualObject}.
              * @param loader[in] Ogre resource loader for the resource.
              * @param loader[in] Ogre resource loader for the resource.
              */
              */
             Resource(
             Resource(

+ 1 - 1
V-Gears/include/common/QGearsStringUtil.h → V-Gears/include/common/VGearsStringUtil.h

@@ -17,7 +17,7 @@
 
 
 #include "common/TypeDefine.h"
 #include "common/TypeDefine.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * Static class for common string manipulations.
      * Static class for common string manipulations.

+ 1 - 1
V-Gears/include/core/Assert.h

@@ -24,4 +24,4 @@
  * @param text[in] Error message to be displayed when the expression is not
  * @param text[in] Error message to be displayed when the expression is not
  * true.
  * true.
  */
  */
-#define QGEARS_ASSERT(exp, text) assert(exp && text)
+#define VGEARS_ASSERT(exp, text) assert(exp && text)

+ 7 - 7
V-Gears/include/core/Background2D.h

@@ -18,7 +18,7 @@
 #include <OgreHardwareVertexBuffer.h>
 #include <OgreHardwareVertexBuffer.h>
 #include <OgreRenderQueueListener.h>
 #include <OgreRenderQueueListener.h>
 #include <OgreRoot.h>
 #include <OgreRoot.h>
-#include "map/QGearsBackground2DFile.h"
+#include "map/VGearsBackground2DFile.h"
 #include "Background2DAnimation.h"
 #include "Background2DAnimation.h"
 #include "Entity.h"
 #include "Entity.h"
 #include "ScriptManager.h"
 #include "ScriptManager.h"
@@ -30,7 +30,7 @@ class Background2D : public Ogre::RenderQueueListener{
 
 
     public:
     public:
 
 
-        typedef QGears::Blending  Blending;
+        typedef VGears::Blending  Blending;
 
 
         /**
         /**
          * How to scroll the background.
          * How to scroll the background.
@@ -71,7 +71,7 @@ class Background2D : public Ogre::RenderQueueListener{
          * @todo Understand and document.
          * @todo Understand and document.
          * @param event[in] Event.
          * @param event[in] Event.
          */
          */
-        void InputDebug(const QGears::Event& event);
+        void InputDebug(const VGears::Event& event);
 
 
         /**
         /**
          * Run each frame.
          * Run each frame.
@@ -287,7 +287,7 @@ class Background2D : public Ogre::RenderQueueListener{
          *
          *
          * @param tile[in] The tile to add.
          * @param tile[in] The tile to add.
          */
          */
-        void AddTile(const QGears::Tile& tile);
+        void AddTile(const VGears::Tile& tile);
 
 
         /**
         /**
          * Updates the UV vector of a tile
          * Updates the UV vector of a tile
@@ -405,7 +405,7 @@ class Background2D : public Ogre::RenderQueueListener{
          *
          *
          * @param background[in] The background to load.
          * @param background[in] The background to load.
          */
          */
-        virtual void load(const QGears::Background2DFilePtr &background);
+        virtual void load(const VGears::Background2DFilePtr &background);
 
 
     protected:
     protected:
 
 
@@ -414,7 +414,7 @@ class Background2D : public Ogre::RenderQueueListener{
          *
          *
          * @param tiles[in] The list of tiles to load.
          * @param tiles[in] The list of tiles to load.
          */
          */
-        virtual void load(const QGears::Background2DFile::TileList &tiles);
+        virtual void load(const VGears::Background2DFile::TileList &tiles);
 
 
         /**
         /**
          * Loads an animation list to the background.
          * Loads an animation list to the background.
@@ -423,7 +423,7 @@ class Background2D : public Ogre::RenderQueueListener{
          * @param animations[in] List of animations to load.
          * @param animations[in] List of animations to load.
          */
          */
         virtual void load(
         virtual void load(
-          const size_t tile_index, const QGears::AnimationMap &animations
+          const size_t tile_index, const VGears::AnimationMap &animations
         );
         );
 
 
         /**
         /**

+ 2 - 2
V-Gears/include/core/Background2DAnimation.h

@@ -18,7 +18,7 @@
 #include <OgreString.h>
 #include <OgreString.h>
 #include <Ogre.h>
 #include <Ogre.h>
 #include <vector>
 #include <vector>
-#include "map/QGearsTile.h"
+#include "map/VGearsTile.h"
 
 
 class Background2D;
 class Background2D;
 
 
@@ -114,7 +114,7 @@ class Background2DAnimation{
          *
          *
          * @param key_frame[in] The keyframe to add.
          * @param key_frame[in] The keyframe to add.
          */
          */
-        virtual void AddUVKeyFrame(const QGears::KeyFrame key_frame);
+        virtual void AddUVKeyFrame(const VGears::KeyFrame key_frame);
 
 
         /**
         /**
          * Adds a keyframe to the animation.
          * Adds a keyframe to the animation.

+ 1 - 1
V-Gears/include/core/CameraManager.h

@@ -48,7 +48,7 @@ class CameraManager : public Ogre::Singleton<CameraManager>{
          * @param time_since_last_frame[in] For speed calculation.
          * @param time_since_last_frame[in] For speed calculation.
          */
          */
         void Input(
         void Input(
-          const QGears::Event& event , Ogre::Real time_since_last_frame
+          const VGears::Event& event , Ogre::Real time_since_last_frame
         );
         );
 
 
         /**
         /**

+ 5 - 5
V-Gears/include/core/ConfigCmdManagerCommands.h

@@ -25,8 +25,8 @@
 #include "Logger.h"
 #include "Logger.h"
 #include "XmlMapFile.h"
 #include "XmlMapFile.h"
 #include "XmlMapsFile.h"
 #include "XmlMapsFile.h"
-#include "QGearsGameState.h"
-#include "common/QGearsApplication.h"
+#include "VGearsGameState.h"
+#include "common/VGearsApplication.h"
 
 
 /**
 /**
  * Command to quit the application.
  * Command to quit the application.
@@ -34,7 +34,7 @@
  * @param params[in] Command parameters. Ignored.
  * @param params[in] Command parameters. Ignored.
  */
  */
 void CmdQuit(const Ogre::StringVector& params){
 void CmdQuit(const Ogre::StringVector& params){
-    QGears::g_ApplicationState = QGears::G_EXIT;
+    VGears::g_ApplicationState = VGears::G_EXIT;
 }
 }
 
 
 /**
 /**
@@ -347,7 +347,7 @@ void CmdResolution(const Ogre::StringVector& params){
         return;
         return;
     }
     }
     Ogre::RenderWindow* window
     Ogre::RenderWindow* window
-      = QGears::Application::getSingleton().getRenderWindow();
+      = VGears::Application::getSingleton().getRenderWindow();
     if (params.size() >= 4){
     if (params.size() >= 4){
         window->setFullscreen(
         window->setFullscreen(
           Ogre::StringConverter::parseBool(params[3]),
           Ogre::StringConverter::parseBool(params[3]),
@@ -393,7 +393,7 @@ void CmdResolutionCompletition(Ogre::StringVector& complete_params){
  */
  */
 void CmdScreenshot(const Ogre::StringVector& params){
 void CmdScreenshot(const Ogre::StringVector& params){
     Ogre::RenderWindow* window
     Ogre::RenderWindow* window
-      = QGears::Application::getSingleton().getRenderWindow();
+      = VGears::Application::getSingleton().getRenderWindow();
     Ogre::String ret
     Ogre::String ret
       = window->writeContentsToTimestampedFile("screenshot_", ".tga");
       = window->writeContentsToTimestampedFile("screenshot_", ".tga");
     Console::getSingleton().AddTextToOutput("Screenshot " + ret + " saved.");
     Console::getSingleton().AddTextToOutput("Screenshot " + ret + " saved.");

+ 2 - 2
V-Gears/include/core/Console.h

@@ -46,7 +46,7 @@ class Console : public Ogre::Singleton<Console>, public Ogre::LogListener{
          *
          *
          * @param event[in] Event to process.
          * @param event[in] Event to process.
          */
          */
-        void Input(const QGears::Event& event);
+        void Input(const VGears::Event& event);
 
 
         /**
         /**
          * Updates the console.
          * Updates the console.
@@ -165,7 +165,7 @@ class Console : public Ogre::Singleton<Console>, public Ogre::LogListener{
          *
          *
          * @param event[in] Event to translate.
          * @param event[in] Event to translate.
          */
          */
-        char TranslateNumpad(const QGears::Event& event);
+        char TranslateNumpad(const VGears::Event& event);
 
 
         /**
         /**
          * The console width.
          * The console width.

+ 1 - 1
V-Gears/include/core/DialogsManager.h

@@ -229,7 +229,7 @@ class DialogsManager : public Ogre::Singleton<DialogsManager>{
          *
          *
          * @param event[in] Event to process.
          * @param event[in] Event to process.
          */
          */
-        void Input(const QGears::Event& event);
+        void Input(const VGears::Event& event);
 
 
         /**
         /**
          * Updates all the messages in the manager.
          * Updates all the messages in the manager.

+ 1 - 1
V-Gears/include/core/EntityManager.h

@@ -44,7 +44,7 @@ class EntityManager : public Ogre::Singleton<EntityManager>{
          *
          *
          * @param event[in] Event to handle.
          * @param event[in] Event to handle.
          */
          */
-        void Input(const QGears::Event& event);
+        void Input(const VGears::Event& event);
 
 
         /**
         /**
          * Updates the entities in the manager.
          * Updates the entities in the manager.

+ 1 - 1
V-Gears/include/core/Event.h

@@ -19,7 +19,7 @@
 // uses Input function.
 // uses Input function.
 #include <OIS/OIS.h>
 #include <OIS/OIS.h>
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * Type of event.
      * Type of event.

+ 2 - 2
V-Gears/include/core/InputManager.h

@@ -21,7 +21,7 @@
 #include <vector>
 #include <vector>
 #include "Event.h"
 #include "Event.h"
 
 
-typedef std::vector<QGears::Event> InputEventArray;
+typedef std::vector<VGears::Event> InputEventArray;
 typedef std::vector<int> ButtonList;
 typedef std::vector<int> ButtonList;
 
 
 class ConfigCmd;
 class ConfigCmd;
@@ -156,7 +156,7 @@ class InputManager : public Ogre::Singleton<InputManager>{
          * @param button[in] ID of the button.
          * @param button[in] ID of the button.
          * @param type[in] Event type.
          * @param type[in] Event type.
          */
          */
-        void AddGameEvents(const int button, const QGears::EventType type);
+        void AddGameEvents(const int button, const VGears::EventType type);
 
 
     private:
     private:
 
 

+ 1 - 1
V-Gears/include/core/ScriptManager.h

@@ -180,7 +180,7 @@ class ScriptManager : public Ogre::Singleton<ScriptManager>{
          *
          *
          * @param event[in] The event to handle.
          * @param event[in] The event to handle.
          */
          */
-        void Input(const QGears::Event& event);
+        void Input(const VGears::Event& event);
 
 
         /**
         /**
          * Updates the state of all scripts of a given type.
          * Updates the state of all scripts of a given type.

+ 3 - 3
V-Gears/include/core/ScriptManagerBinds.h

@@ -420,8 +420,8 @@ void ScriptManager::InitBinds(){
 
 
     // Commnds to initiate modules
     // Commnds to initiate modules
     luabind::module(lua_state_)[
     luabind::module(lua_state_)[
-        luabind::class_<QGears::WorldMapModule>("world_map_module")
-          .def("init", (void(QGears::WorldMapModule::*)()) &QGears::WorldMapModule::Init)
+        luabind::class_<VGears::WorldMapModule>("world_map_module")
+          .def("init", (void(VGears::WorldMapModule::*)()) &VGears::WorldMapModule::Init)
     ];
     ];
 
 
     // Register all command handlers
     // Register all command handlers
@@ -437,7 +437,7 @@ void ScriptManager::InitBinds(){
     luabind::globals(lua_state_)["dialog"] = boost::ref(*(DialogsManager::getSingletonPtr()));
     luabind::globals(lua_state_)["dialog"] = boost::ref(*(DialogsManager::getSingletonPtr()));
     luabind::globals(lua_state_)["ui_manager"] = boost::ref(*(UiManager::getSingletonPtr()));
     luabind::globals(lua_state_)["ui_manager"] = boost::ref(*(UiManager::getSingletonPtr()));
     luabind::globals(lua_state_)["world_map_module"]
     luabind::globals(lua_state_)["world_map_module"]
-      = boost::ref(*(QGears::WorldMapModule::getSingletonPtr()));
+      = boost::ref(*(VGears::WorldMapModule::getSingletonPtr()));
     luabind::globals(lua_state_)["timer"] = boost::ref(*(Timer::getSingletonPtr()));
     luabind::globals(lua_state_)["timer"] = boost::ref(*(Timer::getSingletonPtr()));
     luabind::globals(lua_state_)["script"] = boost::ref(*this);
     luabind::globals(lua_state_)["script"] = boost::ref(*this);
 }
 }

+ 2 - 2
V-Gears/include/core/Walkmesh.h

@@ -63,7 +63,7 @@ struct WalkmeshTriangle{
     bool locked;
     bool locked;
 };
 };
 
 
-namespace QGears{
+namespace VGears{
     typedef Ogre::SharedPtr<class WalkmeshFile> WalkmeshFilePtr;
     typedef Ogre::SharedPtr<class WalkmeshFile> WalkmeshFilePtr;
 }
 }
 
 
@@ -162,7 +162,7 @@ class Walkmesh{
          *
          *
          * @param walkmesh[in] Walkmesh file.
          * @param walkmesh[in] Walkmesh file.
          */
          */
-        virtual void load(const QGears::WalkmeshFilePtr &walkmesh);
+        virtual void load(const VGears::WalkmeshFilePtr &walkmesh);
 
 
     private:
     private:
 
 

+ 2 - 2
V-Gears/include/data/FinalFantasy7/FF7ModelListFile.h

@@ -16,9 +16,9 @@
 #pragma once
 #pragma once
 
 
 #include <OgreColourValue.h>
 #include <OgreColourValue.h>
-#include "common/QGearsResource.h"
+#include "common/VGearsResource.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     namespace FF7{
     namespace FF7{
 
 

+ 3 - 3
V-Gears/include/data/FinalFantasy7/FF7ModelListFileManager.h

@@ -16,17 +16,17 @@
 #pragma once
 #pragma once
 
 
 #include <OgreResourceManager.h>
 #include <OgreResourceManager.h>
-#include "QGearsPrerequisites.h"
+#include "VGearsPrerequisites.h"
 #include "FF7ModelListFile.h"
 #include "FF7ModelListFile.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     namespace FF7{
     namespace FF7{
 
 
         /**
         /**
          * A manager for model list files.
          * A manager for model list files.
          */
          */
-        class _QGearsExport ModelListFileManager :
+        class _VGearsExport ModelListFileManager :
           public Ogre::ResourceManager,
           public Ogre::ResourceManager,
           public Ogre::Singleton<ModelListFileManager>
           public Ogre::Singleton<ModelListFileManager>
         {
         {

+ 2 - 2
V-Gears/include/data/FinalFantasy7/FF7ModelListFileSerializer.h

@@ -16,11 +16,11 @@
 #pragma once
 #pragma once
 
 
 #include "common/TypeDefine.h"
 #include "common/TypeDefine.h"
-#include "data/QGearsSerializer.h"
+#include "data/VGearsSerializer.h"
 
 
 #include "FF7ModelListFile.h"
 #include "FF7ModelListFile.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     namespace FF7{
     namespace FF7{
 
 

+ 2 - 2
V-Gears/include/data/QGearsAFile.h → V-Gears/include/data/VGearsAFile.h

@@ -18,9 +18,9 @@
 #include <OgreSkeleton.h>
 #include <OgreSkeleton.h>
 #include <Ogre.h>
 #include <Ogre.h>
 #include "common/TypeDefine.h"
 #include "common/TypeDefine.h"
-#include "common/QGearsResource.h"
+#include "common/VGearsResource.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * Handles A files.
      * Handles A files.

+ 4 - 4
V-Gears/include/data/QGearsAFileManager.h → V-Gears/include/data/VGearsAFileManager.h

@@ -16,15 +16,15 @@
 #pragma once
 #pragma once
 
 
 #include <OgreResourceManager.h>
 #include <OgreResourceManager.h>
-#include "QGearsPrerequisites.h"
-#include "QGearsAFile.h"
+#include "VGearsPrerequisites.h"
+#include "VGearsAFile.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * A manager for A files.
      * A manager for A files.
      */
      */
-    class _QGearsExport AFileManager :
+    class _VGearsExport AFileManager :
       public Ogre::ResourceManager, public Ogre::Singleton<AFileManager>
       public Ogre::ResourceManager, public Ogre::Singleton<AFileManager>
     {
     {
 
 

+ 3 - 3
V-Gears/include/data/QGearsAFileSerializer.h → V-Gears/include/data/VGearsAFileSerializer.h

@@ -16,10 +16,10 @@
 #pragma once
 #pragma once
 
 
 #include "common/TypeDefine.h"
 #include "common/TypeDefine.h"
-#include "QGearsAFile.h"
-#include "QGearsSerializer.h"
+#include "VGearsAFile.h"
+#include "VGearsSerializer.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * Handles the serialization of A files.
      * Handles the serialization of A files.

+ 3 - 3
V-Gears/include/data/QGearsBackgroundFile.h → V-Gears/include/data/VGearsBackgroundFile.h

@@ -20,11 +20,11 @@
 #include <OgreImage.h>
 #include <OgreImage.h>
 #include <Ogre.h>
 #include <Ogre.h>
 #include "common/TypeDefine.h"
 #include "common/TypeDefine.h"
-#include "data/QGearsPaletteFile.h"
+#include "data/VGearsPaletteFile.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
-    // TODO inherit from QGears Resource.
+    // TODO inherit from VGears Resource.
 
 
     /**
     /**
      * A background file representation.
      * A background file representation.

+ 4 - 4
V-Gears/include/data/QGearsBackgroundFileManager.h → V-Gears/include/data/VGearsBackgroundFileManager.h

@@ -16,15 +16,15 @@
 #pragma once
 #pragma once
 
 
 #include <OgreResourceManager.h>
 #include <OgreResourceManager.h>
-#include "QGearsPrerequisites.h"
-#include "QGearsBackgroundFile.h"
+#include "VGearsPrerequisites.h"
+#include "VGearsBackgroundFile.h"
 
 
-namespace QGears{
+namespace VGears{
 
 
     /**
     /**
      * A manager for background files.
      * A manager for background files.
      */
      */
-    class _QGearsExport BackgroundFileManager
+    class _VGearsExport BackgroundFileManager
       : public Ogre::ResourceManager,
       : public Ogre::ResourceManager,
         public Ogre::Singleton<BackgroundFileManager>
         public Ogre::Singleton<BackgroundFileManager>
     {
     {

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio