Commit 06a7811d authored by hybrid's avatar hybrid

pak reader extension fixed.

Copyright year pushed to 2009.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2154 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 04efb300
...@@ -32,7 +32,7 @@ CArchiveLoaderPAK::~CArchiveLoaderPAK() ...@@ -32,7 +32,7 @@ CArchiveLoaderPAK::~CArchiveLoaderPAK()
//! returns true if the file maybe is able to be loaded by this class //! returns true if the file maybe is able to be loaded by this class
bool CArchiveLoaderPAK::isALoadableFileFormat(const core::string<c16>& filename) const bool CArchiveLoaderPAK::isALoadableFileFormat(const core::string<c16>& filename) const
{ {
return core::hasFileExtension ( filename, "zip", "pk3" ); return core::hasFileExtension ( filename, "pak" );
} }
...@@ -66,6 +66,7 @@ IFileArchive* CArchiveLoaderPAK::createArchive(io::IReadFile* file, bool ignoreC ...@@ -66,6 +66,7 @@ IFileArchive* CArchiveLoaderPAK::createArchive(io::IReadFile* file, bool ignoreC
return archive; return archive;
} }
//! Check if the file might be loaded by this class //! Check if the file might be loaded by this class
/** Check might look into the file. /** Check might look into the file.
\param file File handle to check. \param file File handle to check.
...@@ -98,6 +99,7 @@ CPakReader::CPakReader(IReadFile* file, bool ignoreCase, bool ignorePaths) ...@@ -98,6 +99,7 @@ CPakReader::CPakReader(IReadFile* file, bool ignoreCase, bool ignorePaths)
} }
} }
CPakReader::~CPakReader() CPakReader::~CPakReader()
{ {
if (File) if (File)
...@@ -105,8 +107,7 @@ CPakReader::~CPakReader() ...@@ -105,8 +107,7 @@ CPakReader::~CPakReader()
} }
//! splits filename into useful filenames and paths
//! splits filename from zip file into useful filenames and paths
void CPakReader::extractFilename(SPakFileEntry* entry) void CPakReader::extractFilename(SPakFileEntry* entry)
{ {
s32 lorfn = 56; // length of real file name s32 lorfn = 56; // length of real file name
...@@ -194,7 +195,6 @@ bool CPakReader::scanLocalHeader() ...@@ -194,7 +195,6 @@ bool CPakReader::scanLocalHeader()
} }
//! opens a file by file name //! opens a file by file name
IReadFile* CPakReader::openFile(const core::string<c16>& filename) IReadFile* CPakReader::openFile(const core::string<c16>& filename)
{ {
...@@ -207,7 +207,6 @@ IReadFile* CPakReader::openFile(const core::string<c16>& filename) ...@@ -207,7 +207,6 @@ IReadFile* CPakReader::openFile(const core::string<c16>& filename)
} }
//! opens a file by index //! opens a file by index
IReadFile* CPakReader::openFile(s32 index) IReadFile* CPakReader::openFile(s32 index)
{ {
...@@ -215,7 +214,6 @@ IReadFile* CPakReader::openFile(s32 index) ...@@ -215,7 +214,6 @@ IReadFile* CPakReader::openFile(s32 index)
} }
//! returns count of files in archive //! returns count of files in archive
u32 CPakReader::getFileCount() u32 CPakReader::getFileCount()
{ {
...@@ -223,7 +221,6 @@ u32 CPakReader::getFileCount() ...@@ -223,7 +221,6 @@ u32 CPakReader::getFileCount()
} }
//! returns data of file //! returns data of file
const IFileArchiveEntry* CPakReader::getFileInfo(u32 index) const IFileArchiveEntry* CPakReader::getFileInfo(u32 index)
{ {
...@@ -231,7 +228,6 @@ const IFileArchiveEntry* CPakReader::getFileInfo(u32 index) ...@@ -231,7 +228,6 @@ const IFileArchiveEntry* CPakReader::getFileInfo(u32 index)
} }
//! returns fileindex //! returns fileindex
s32 CPakReader::findFile(const core::string<c16>& filename) s32 CPakReader::findFile(const core::string<c16>& filename)
{ {
...@@ -262,7 +258,6 @@ s32 CPakReader::findFile(const core::string<c16>& filename) ...@@ -262,7 +258,6 @@ s32 CPakReader::findFile(const core::string<c16>& filename)
} }
} // end namespace io } // end namespace io
} // end namespace irr } // end namespace irr
...@@ -30,7 +30,7 @@ namespace io ...@@ -30,7 +30,7 @@ namespace io
u32 length; u32 length;
}; };
//! Archiveloader capable of loading ZIP Archives //! Archiveloader capable of loading PAK Archives
class CArchiveLoaderPAK : public IArchiveLoader class CArchiveLoaderPAK : public IArchiveLoader
{ {
public: public:
......
// Copyright (C) 2002-2008 Nikolaus Gebhardt / Thomas Alten // Copyright (C) 2002-2009 Nikolaus Gebhardt / Thomas Alten
// This file is part of the "Irrlicht Engine". // This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h // For conditions of distribution and use, see copyright notice in irrlicht.h
...@@ -1944,7 +1944,7 @@ u32 CBurningVideoDriver::getMaximalPrimitiveCount() const ...@@ -1944,7 +1944,7 @@ u32 CBurningVideoDriver::getMaximalPrimitiveCount() const
//! Returns the graphics card vendor name. //! Returns the graphics card vendor name.
core::stringc CBurningVideoDriver::getVendorInfo() core::stringc CBurningVideoDriver::getVendorInfo()
{ {
return "Burningsvideo: Ing. Thomas Alten (c) 2006-2008"; return "Burningsvideo: Ing. Thomas Alten (c) 2006-2009";
} }
......
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