move archive-related files to their own directory (res/file was way too cluttered.. vfs will probably also be separated.)

This was SVN commit r5387.
This commit is contained in:
janwas
2007-10-03 09:48:45 +00:00
parent 4b481bdd2c
commit 7421fa79ba
14 changed files with 14 additions and 13 deletions
+1
View File
@@ -399,6 +399,7 @@ function setup_all_libs ()
"lib/sysdep/ia32",
"lib/res",
"lib/res/file",
"lib/res/file/archive",
"lib/res/graphics",
"lib/res/sound",
"lib/external_libraries"
@@ -15,7 +15,7 @@
#include "lib/timer.h"
#include "lib/allocators.h"
#include "lib/res/res.h"
#include "file_internal.h"
#include "../file_internal.h"
#include <boost/shared_ptr.hpp>
@@ -13,7 +13,7 @@
#define INCLUDED_ARCHIVE
#include "lib/res/handle.h"
#include "file.h" // FileCB for afile_enum
#include "../file.h" // FileCB for afile_enum
#include "compression.h" // CompressionMethod
namespace ERR
@@ -114,7 +114,7 @@ extern ssize_t afile_read(File* f, off_t ofs, size_t size, FileIOBuf* pbuf, File
// would have to be inflated sequentially, which defeats the point of mapping.
// map the entire file <zf> into memory. mapping compressed files
// map the entire file <f> into memory. mapping compressed files
// isn't allowed, since the compression algorithm is unspecified.
// output parameters are zeroed on failure.
//
@@ -123,7 +123,7 @@ extern ssize_t afile_read(File* f, off_t ofs, size_t size, FileIOBuf* pbuf, File
// may be removed when no longer needed.
extern LibError afile_map(File* f, u8*& p, size_t& size);
// remove the mapping of file <zf>; fail if not mapped.
// remove the mapping of file <f>; fail if not mapped.
//
// the mapping will be removed (if still open) when its archive is closed.
// however, map/unmap calls should be paired so that the archive mapping
@@ -12,7 +12,7 @@
#include "archive_builder.h"
#include "lib/timer.h"
#include "file_internal.h"
#include "../file_internal.h"
// un-nice dependencies:
#include "ps/Loader.h"
@@ -17,7 +17,7 @@
#include "lib/res/mem.h"
#include "lib/allocators.h"
#include "lib/timer.h"
#include "file_io.h" // IO_EOF
#include "../file_io.h" // IO_EOF
#include <boost/shared_ptr.hpp>
@@ -28,7 +28,7 @@ enum CompressionMethod
{
CM_NONE,
// zlib "deflate" - see RFC 1750, 1751.
// zlib "deflate" (RFC 1750, 1751) and Adler32 checksum
CM_DEFLATE,
CM_UNSUPPORTED
@@ -5,8 +5,8 @@
#include "lib/res/file/file.h"
#include "lib/res/file/file_cache.h"
#include "lib/res/file/vfs.h"
#include "lib/res/file/archive.h"
#include "lib/res/file/archive_builder.h"
#include "lib/res/file/archive/archive.h"
#include "lib/res/file/archive/archive_builder.h"
#include "lib/res/h_mgr.h"
#include "lib/res/mem.h"
#include "lib/rand.h"
@@ -1,7 +1,7 @@
#include "lib/self_test.h"
#include "lib/self_test.h"
#include "lib/res/file/compression.h"
#include "lib/res/file/archive/compression.h"
class TestCompression : public CxxTest::TestSuite
{
@@ -2,7 +2,7 @@
#include <time.h>
#include "lib/res/file/zip.h"
#include "lib/res/file/archive/zip.h"
class TestZip : public CxxTest::TestSuite
{
@@ -15,7 +15,7 @@
#include "lib/allocators.h"
#include "lib/timer.h"
#include "lib/sysdep/cpu.h"
#include "file_internal.h"
#include "../file_internal.h"
ERROR_ASSOCIATE(ERR::TRACE_EMPTY, "No valid entries in trace", -1);
@@ -19,7 +19,7 @@
#include "lib/allocators.h"
#include "lib/timer.h"
#include "lib/res/res.h"
#include "file_internal.h"
#include "../file_internal.h"
//-----------------------------------------------------------------------------