Changed FTLDat to allow opening dats in read-only mode
This commit is contained in:
parent
7b65cc5d73
commit
b94440e0a0
7 changed files with 55 additions and 14 deletions
|
@ -25,7 +25,7 @@ public class FTLModManager {
|
|||
private static final Logger log = LogManager.getLogger(FTLModManager.class);
|
||||
|
||||
public static final String APP_NAME = "Slipstream Mod Manager";
|
||||
public static final ComparableVersion APP_VERSION = new ComparableVersion( "1.4" );
|
||||
public static final ComparableVersion APP_VERSION = new ComparableVersion( "???" );
|
||||
public static final String APP_URL = "http://www.ftlgame.com/forum/viewtopic.php?f=12&t=17102";
|
||||
public static final String APP_AUTHOR = "Vhati";
|
||||
|
||||
|
|
|
@ -201,7 +201,7 @@ public class SlipstreamCLI {
|
|||
dstP = new FTLDat.FolderPack( extractDir );
|
||||
|
||||
for ( File datFile : datFiles ) {
|
||||
srcP = new FTLDat.FTLPack( datFile, false );
|
||||
srcP = new FTLDat.FTLPack( datFile, "r" );
|
||||
List<String> innerPaths = srcP.list();
|
||||
|
||||
for ( String innerPath : innerPaths ) {
|
||||
|
|
|
@ -156,8 +156,8 @@ public class ModPatchThread extends Thread {
|
|||
return true;
|
||||
}
|
||||
|
||||
dataP = new FTLPack( dataDat.datFile, false );
|
||||
resP = new FTLPack( resDat.datFile, false );
|
||||
dataP = new FTLPack( dataDat.datFile, "r+" );
|
||||
resP = new FTLPack( resDat.datFile, "r+" );
|
||||
|
||||
Map<String,AbstractPack> topFolderMap = new HashMap<String,AbstractPack>();
|
||||
topFolderMap.put( "data", dataP );
|
||||
|
|
|
@ -84,7 +84,7 @@ public class DatExtractDialog extends ProgressDialog {
|
|||
dstP = new FTLDat.FolderPack( extractDir );
|
||||
|
||||
for ( File datFile : datFiles ) {
|
||||
srcP = new FTLDat.FTLPack( datFile, false );
|
||||
srcP = new FTLDat.FTLPack( datFile, "r" );
|
||||
progress = 0;
|
||||
List<String> innerPaths = srcP.list();
|
||||
setProgressLater( progress, innerPaths.size() );
|
||||
|
|
|
@ -322,7 +322,7 @@ public class ModXMLSandbox extends JFrame implements ActionListener {
|
|||
FTLDat.FTLPack dataP = null;
|
||||
InputStream is = null;
|
||||
try {
|
||||
dataP = new FTLDat.FTLPack( dataDatFile, false );
|
||||
dataP = new FTLDat.FTLPack( dataDatFile, "r" );
|
||||
List<String> innerPaths = dataP.list();
|
||||
|
||||
String innerPath = promptForInnerPath( innerPaths );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue