Commit a00b6408 authored by hybrid's avatar hybrid

Fix warnings about deprecated methods. Fix bug with unsupported driver causing a test error.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3684 dfc29bdd-3216-0410-991c-e03cc46cb475
parent f36090db
...@@ -159,7 +159,7 @@ bool filesystem(void) ...@@ -159,7 +159,7 @@ bool filesystem(void)
assert(changed); assert(changed);
// adding a folder archive which just should not really change anything // adding a folder archive which just should not really change anything
device->getFileSystem()->addFolderFileArchive( "./" ); device->getFileSystem()->addFileArchive( "./" );
if ( fs->existFile(empty) ) if ( fs->existFile(empty) )
{ {
......
...@@ -21,7 +21,7 @@ static bool runTestWithDriver(E_DRIVER_TYPE driverType) ...@@ -21,7 +21,7 @@ static bool runTestWithDriver(E_DRIVER_TYPE driverType)
ISceneManager * smgr = device->getSceneManager(); ISceneManager * smgr = device->getSceneManager();
bool result = true; bool result = true;
bool added = device->getFileSystem()->addZipFileArchive("../media/map-20kdm2.pk3"); bool added = device->getFileSystem()->addFileArchive("../media/map-20kdm2.pk3");
assert(added); assert(added);
if(added) if(added)
......
...@@ -60,7 +60,7 @@ bool loadFromFileFolder(void) ...@@ -60,7 +60,7 @@ bool loadFromFileFolder(void)
readFile->drop(); readFile->drop();
// adding a folder archive // adding a folder archive
device->getFileSystem()->addFolderFileArchive( "../media/" ); device->getFileSystem()->addFileArchive( "../media/" );
ITexture * tex3 = driver->getTexture("tools.png"); ITexture * tex3 = driver->getTexture("tools.png");
assert(tex3); assert(tex3);
......
...@@ -56,7 +56,7 @@ static bool drawScaledOctree(void) ...@@ -56,7 +56,7 @@ static bool drawScaledOctree(void)
video::IVideoDriver* driver = device->getVideoDriver(); video::IVideoDriver* driver = device->getVideoDriver();
ISceneManager * smgr = device->getSceneManager(); ISceneManager * smgr = device->getSceneManager();
bool added = device->getFileSystem()->addZipFileArchive("../media/map-20kdm2.pk3"); bool added = device->getFileSystem()->addFileArchive("../media/map-20kdm2.pk3");
assert(added); assert(added);
if(added) if(added)
......
...@@ -13,7 +13,7 @@ using namespace video; ...@@ -13,7 +13,7 @@ using namespace video;
bool testTransparentAlphaChannelRef(video::E_DRIVER_TYPE driverType) bool testTransparentAlphaChannelRef(video::E_DRIVER_TYPE driverType)
{ {
IrrlichtDevice* device = createDevice(driverType, core::dimension2d<u32>(160, 120), 32); IrrlichtDevice* device = createDevice(driverType, core::dimension2d<u32>(160, 120), 32);
if(!device) if (!device)
return true; return true;
video::IVideoDriver* driver = device->getVideoDriver(); video::IVideoDriver* driver = device->getVideoDriver();
...@@ -53,7 +53,7 @@ bool testTransparentAlphaChannelRef(video::E_DRIVER_TYPE driverType) ...@@ -53,7 +53,7 @@ bool testTransparentAlphaChannelRef(video::E_DRIVER_TYPE driverType)
bool testTransparentAlphaChannel(video::E_DRIVER_TYPE driverType) bool testTransparentAlphaChannel(video::E_DRIVER_TYPE driverType)
{ {
IrrlichtDevice* device = createDevice(driverType, core::dimension2d<u32>(160, 120), 32); IrrlichtDevice* device = createDevice(driverType, core::dimension2d<u32>(160, 120), 32);
if(!device) if (!device)
return true; return true;
video::IVideoDriver* driver = device->getVideoDriver(); video::IVideoDriver* driver = device->getVideoDriver();
...@@ -93,7 +93,7 @@ bool testTransparentAlphaChannel(video::E_DRIVER_TYPE driverType) ...@@ -93,7 +93,7 @@ bool testTransparentAlphaChannel(video::E_DRIVER_TYPE driverType)
bool testTransparentVertexAlpha(video::E_DRIVER_TYPE driverType) bool testTransparentVertexAlpha(video::E_DRIVER_TYPE driverType)
{ {
IrrlichtDevice* device = createDevice(driverType, core::dimension2d<u32>(160, 120), 32); IrrlichtDevice* device = createDevice(driverType, core::dimension2d<u32>(160, 120), 32);
if(!device) if (!device)
return true; return true;
video::IVideoDriver* driver = device->getVideoDriver(); video::IVideoDriver* driver = device->getVideoDriver();
...@@ -140,7 +140,7 @@ bool testTransparentVertexAlpha(video::E_DRIVER_TYPE driverType) ...@@ -140,7 +140,7 @@ bool testTransparentVertexAlpha(video::E_DRIVER_TYPE driverType)
bool testTransparentReflection2Layer(video::E_DRIVER_TYPE driverType) bool testTransparentReflection2Layer(video::E_DRIVER_TYPE driverType)
{ {
IrrlichtDevice* device = createDevice(driverType, core::dimension2d<u32>(160, 120), 32); IrrlichtDevice* device = createDevice(driverType, core::dimension2d<u32>(160, 120), 32);
if(!device) if (!device)
return true; return true;
video::IVideoDriver* driver = device->getVideoDriver(); video::IVideoDriver* driver = device->getVideoDriver();
...@@ -190,7 +190,7 @@ bool testTransparentReflection2Layer(video::E_DRIVER_TYPE driverType) ...@@ -190,7 +190,7 @@ bool testTransparentReflection2Layer(video::E_DRIVER_TYPE driverType)
bool testTransparentAddColor(video::E_DRIVER_TYPE driverType) bool testTransparentAddColor(video::E_DRIVER_TYPE driverType)
{ {
IrrlichtDevice* device = createDevice(driverType, core::dimension2d<u32>(160, 120), 32); IrrlichtDevice* device = createDevice(driverType, core::dimension2d<u32>(160, 120), 32);
if(!device) if (!device)
return true; return true;
video::IVideoDriver* driver = device->getVideoDriver(); video::IVideoDriver* driver = device->getVideoDriver();
...@@ -229,6 +229,8 @@ bool testTransparentAddColor(video::E_DRIVER_TYPE driverType) ...@@ -229,6 +229,8 @@ bool testTransparentAddColor(video::E_DRIVER_TYPE driverType)
bool testTransparentVertexAlphaMore(E_DRIVER_TYPE driverType) bool testTransparentVertexAlphaMore(E_DRIVER_TYPE driverType)
{ {
IrrlichtDevice *device = createDevice(driverType, dimension2d<u32>(160, 120)); IrrlichtDevice *device = createDevice(driverType, dimension2d<u32>(160, 120));
if (!device)
return true;
IVideoDriver* driver = device->getVideoDriver(); IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager(); ISceneManager* smgr = device->getSceneManager();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment