Added support for extracting/sandboxing FTL 1.6.1's resources (patching is WIP)
This commit is contained in:
parent
34a71e0aa5
commit
f0df7faab8
10 changed files with 344 additions and 198 deletions
|
@ -75,6 +75,15 @@ public abstract class AbstractPack {
|
|||
public void close() throws IOException {
|
||||
}
|
||||
|
||||
/**
|
||||
* Tidies up the dat before closing (possibly mandatory).
|
||||
*
|
||||
* @returns a result, or null if nothing happened
|
||||
*/
|
||||
public RepackResult repack() throws IOException {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -466,6 +466,7 @@ public class FTLPack extends AbstractPack {
|
|||
* Repacks the dat file. This will remove gaps, which could
|
||||
* be created when adding, removing or replacing files.
|
||||
*/
|
||||
@Override
|
||||
public RepackResult repack() throws IOException {
|
||||
long bytesChanged = 0;
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ package net.vhati.ftldat;
|
|||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.InputStream;
|
||||
import java.io.IOException;
|
||||
|
|
|
@ -733,6 +733,7 @@ public class PkgPack extends AbstractPack {
|
|||
* All innerPaths will be rewritten to the paths region, sorted by
|
||||
* dataOffset.
|
||||
*/
|
||||
@Override
|
||||
public RepackResult repack() throws IOException {
|
||||
long bytesChanged = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue