Adding a flag to prevent unpacking (for building Steam depots).
This commit is contained in:
@@ -1077,6 +1077,7 @@ public class Application
|
|||||||
}
|
}
|
||||||
|
|
||||||
MetaProgressObserver mpobs = new MetaProgressObserver(obs, totalSize);
|
MetaProgressObserver mpobs = new MetaProgressObserver(obs, totalSize);
|
||||||
|
boolean noUnpack = Boolean.getBoolean("no_unpack");
|
||||||
for (Resource rsrc : rsrcs) {
|
for (Resource rsrc : rsrcs) {
|
||||||
if (Thread.interrupted()) {
|
if (Thread.interrupted()) {
|
||||||
throw new InterruptedException("m.applet_stopped");
|
throw new InterruptedException("m.applet_stopped");
|
||||||
@@ -1094,7 +1095,7 @@ public class Application
|
|||||||
try {
|
try {
|
||||||
if (_digest.validateResource(rsrc, mpobs)) {
|
if (_digest.validateResource(rsrc, mpobs)) {
|
||||||
// unpack this resource if appropriate
|
// unpack this resource if appropriate
|
||||||
if (!rsrc.shouldUnpack() || rsrc.unpack()) {
|
if (noUnpack || !rsrc.shouldUnpack() || rsrc.unpack()) {
|
||||||
// finally note that this resource is kosher
|
// finally note that this resource is kosher
|
||||||
rsrc.markAsValid();
|
rsrc.markAsValid();
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user