Fixed path of extract plugins to create the file in the current

directory when the binary file is in another dir
This commit is contained in:
codestation 2010-12-13 13:18:35 +00:00
parent e6cb17f644
commit 7aba2b96f3
3 changed files with 3 additions and 0 deletions

View file

@ -49,6 +49,7 @@ public class ExtractPluginA extends Decoder {
for (int i = 0; i < tables_count; i++) { for (int i = 0; i < tables_count; i++) {
table_offset[i] = readInt(file); table_offset[i] = readInt(file);
} }
filename = new File(filename).getName();
String directory = filename.split("\\.")[0]; String directory = filename.split("\\.")[0];
new File(directory).mkdir(); new File(directory).mkdir();
// create the list of string tables used in the rebuild // create the list of string tables used in the rebuild

View file

@ -58,6 +58,7 @@ public class ExtractPluginB extends Decoder {
} }
table_offset.add(pointer); table_offset.add(pointer);
} }
filename = new File(filename).getName();
String directory = filename.split("\\.")[0]; String directory = filename.split("\\.")[0];
new File(directory).mkdir(); new File(directory).mkdir();
PrintStream filelist = new PrintStream(new FileOutputStream( PrintStream filelist = new PrintStream(new FileOutputStream(

View file

@ -49,6 +49,7 @@ public class ExtractPluginC extends Decoder {
offset_tables.add(offset); offset_tables.add(offset);
} }
filename = new File(filename).getName();
String directory = filename.split("\\.")[0]; String directory = filename.split("\\.")[0];
new File(directory).mkdir(); new File(directory).mkdir();
// create the list of string tables used in the rebuild // create the list of string tables used in the rebuild