Performance tunings.
This commit is contained in:
parent
d02c45b27f
commit
43d86a873b
|
@ -38,7 +38,7 @@ class MFile {
|
||||||
void WriteBuffer(void *data, unsigned int size);
|
void WriteBuffer(void *data, unsigned int size);
|
||||||
|
|
||||||
bool IsReadOnly() { return readonly; }
|
bool IsReadOnly() { return readonly; }
|
||||||
|
void SetReadOnly(bool rd) { readonly = rd; } //USE WITH CARE!!!!
|
||||||
protected:
|
protected:
|
||||||
std::string filename;
|
std::string filename;
|
||||||
std::vector<File *> files;
|
std::vector<File *> files;
|
||||||
|
|
|
@ -91,7 +91,7 @@ bool Nexus::Load(const string &file, bool readonly) {
|
||||||
//TODO support readonly
|
//TODO support readonly
|
||||||
if(!patches.Load(file + ".nxp", signature, chunk_size, readonly))
|
if(!patches.Load(file + ".nxp", signature, chunk_size, readonly))
|
||||||
return false;
|
return false;
|
||||||
if(!borders.Load(file + ".nxb", readonly, 1, 100)) return false;
|
if(!borders.Load(file + ".nxb", readonly, 1, 500)) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue