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