mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
GLideNHQ: Change file extension for cache files.
This commit is contained in:
parent
f4bb31e50e
commit
54506d9a2d
|
@ -56,7 +56,7 @@ TxHiResCache::~TxHiResCache()
|
|||
#if DUMP_CACHE
|
||||
if ((_options & DUMP_HIRESTEXCACHE) && !_haveCache && !_abortLoad) {
|
||||
/* dump cache to disk */
|
||||
std::wstring filename = _ident + L"_HIRESTEXTURES.dat";
|
||||
std::wstring filename = _ident + L"_HIRESTEXTURES." + TEXCACHE_EXT;
|
||||
boost::filesystem::wpath cachepath(_path);
|
||||
cachepath /= boost::filesystem::wpath(L"cache");
|
||||
int config = _options & (HIRESTEXTURES_MASK|TILE_HIRESTEX|FORCE16BPP_HIRESTEX|GZ_HIRESTEXCACHE|LET_TEXARTISTS_FLY);
|
||||
|
@ -94,7 +94,7 @@ TxHiResCache::TxHiResCache(int maxwidth, int maxheight, int maxbpp, int options,
|
|||
/* read in hires texture cache */
|
||||
if (_options & DUMP_HIRESTEXCACHE) {
|
||||
/* find it on disk */
|
||||
std::wstring filename = _ident + L"_HIRESTEXTURES.dat";
|
||||
std::wstring filename = _ident + L"_HIRESTEXTURES." + TEXCACHE_EXT;
|
||||
boost::filesystem::wpath cachepath(_path);
|
||||
cachepath /= boost::filesystem::wpath(L"cache");
|
||||
int config = _options & (HIRESTEXTURES_MASK|TILE_HIRESTEX|FORCE16BPP_HIRESTEX|GZ_HIRESTEXCACHE|LET_TEXARTISTS_FLY);
|
||||
|
|
|
@ -39,7 +39,7 @@ TxTexCache::~TxTexCache()
|
|||
#if DUMP_CACHE
|
||||
if (_options & DUMP_TEXCACHE) {
|
||||
/* dump cache to disk */
|
||||
std::wstring filename = _ident + L"_MEMORYCACHE.dat";
|
||||
std::wstring filename = _ident + L"_MEMORYCACHE." + TEXCACHE_EXT;
|
||||
boost::filesystem::wpath cachepath(_path);
|
||||
cachepath /= boost::filesystem::wpath(L"cache");
|
||||
int config = _options & (FILTER_MASK|ENHANCEMENT_MASK|FORCE16BPP_TEX|GZ_TEXCACHE);
|
||||
|
@ -60,7 +60,7 @@ TxTexCache::TxTexCache(int options, int cachesize, const wchar_t *path, const wc
|
|||
#if DUMP_CACHE
|
||||
if (_options & DUMP_TEXCACHE) {
|
||||
/* find it on disk */
|
||||
std::wstring filename = _ident + L"_MEMORYCACHE.dat";
|
||||
std::wstring filename = _ident + L"_MEMORYCACHE." + TEXCACHE_EXT;
|
||||
boost::filesystem::wpath cachepath(_path);
|
||||
cachepath /= boost::filesystem::wpath(L"cache");
|
||||
int config = _options & (FILTER_MASK|ENHANCEMENT_MASK|FORCE16BPP_TEX|GZ_TEXCACHE);
|
||||
|
|
|
@ -27,6 +27,9 @@
|
|||
/* maximum number of CPU cores allowed */
|
||||
#define MAX_NUMCORE 8
|
||||
|
||||
/* extension for cache files */
|
||||
#define TEXCACHE_EXT L"htc"
|
||||
|
||||
#include "TxInternal.h"
|
||||
#include <string>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user