mirror of
https://github.com/codestation/mhtools
synced 2024-11-10 05:44:17 +00:00
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:
parent
e6cb17f644
commit
7aba2b96f3
3 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue