mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-01-24 12:31:32 +00:00
Turned off caching in the packer as it's currently creating more problems than it solves.
This commit is contained in:
parent
df02ca2367
commit
95e4651123
@ -1634,16 +1634,19 @@ class A2PackPartitions
|
|||||||
|
|
||||||
def readCache()
|
def readCache()
|
||||||
{
|
{
|
||||||
|
/* This isn't working reliably lately
|
||||||
File cacheFile = new File("build/world.cache")
|
File cacheFile = new File("build/world.cache")
|
||||||
if (cacheFile.exists()) {
|
if (cacheFile.exists()) {
|
||||||
ObjectInputStream inStream = new ObjectInputStream(new FileInputStream(cacheFile));
|
ObjectInputStream inStream = new ObjectInputStream(new FileInputStream(cacheFile));
|
||||||
cache = inStream.readObject();
|
cache = inStream.readObject();
|
||||||
inStream.close()
|
inStream.close()
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
def writeCache()
|
def writeCache()
|
||||||
{
|
{
|
||||||
|
/* This isn't working reliably lately
|
||||||
File cacheFile = new File("build/world.cache")
|
File cacheFile = new File("build/world.cache")
|
||||||
File newCacheFile = new File("build/world.cache.new")
|
File newCacheFile = new File("build/world.cache.new")
|
||||||
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(newCacheFile));
|
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(newCacheFile));
|
||||||
@ -1651,6 +1654,7 @@ class A2PackPartitions
|
|||||||
out.close()
|
out.close()
|
||||||
cacheFile.delete() // needed on Windows
|
cacheFile.delete() // needed on Windows
|
||||||
newCacheFile.renameTo(cacheFile)
|
newCacheFile.renameTo(cacheFile)
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
def pack(xmlPath)
|
def pack(xmlPath)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user