Bläddra i källkod

Bugfix : Removed const_cast from CIOSystemWrapper::Exists. ( merged from GitHub, thanks to Riku Palomäki ).

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1220 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
kimmi 13 år sedan
förälder
incheckning
9f6e45d651
1 ändrade filer med 2 tillägg och 3 borttagningar
  1. 2 3
      code/CInterfaceIOWrapper.h

+ 2 - 3
code/CInterfaceIOWrapper.h

@@ -114,10 +114,9 @@ public:
 
 	// ...................................................................
 	bool Exists( const char* pFile) const {
-		CIOSystemWrapper* pip = const_cast<CIOSystemWrapper*>(this);
-		IOStream* p = pip->Open(pFile);
+		aiFile* p = mFileSystem->OpenProc(mFileSystem,pFile,"rb");		
 		if (p){
-			pip->Close(p);
+			mFileSystem->CloseProc(mFileSystem,p);
 			return true;
 		}
 		return false;