mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 14:40:51 +00:00
Flex (Mxml) export stub
This commit is contained in:
@@ -39,6 +39,10 @@ public class ClassPath {
|
||||
return packageStr.add(className).toPrintableString(true);
|
||||
}
|
||||
|
||||
public String toRawString() {
|
||||
return packageStr.add(className).toRawString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 7;
|
||||
|
||||
@@ -130,16 +130,21 @@ public class ScriptPack extends AS3ClassTreeItem {
|
||||
return scriptName;
|
||||
}
|
||||
|
||||
public File getExportFile(String directory, String extension) {
|
||||
|
||||
String scriptName = getPathScriptName();
|
||||
DottedChain packageName = getPathPackage();
|
||||
File outDir = new File(directory + File.separatorChar + packageName.toFilePath());
|
||||
String fileName = outDir.toString() + File.separator + Helper.makeFileName(scriptName) + extension;
|
||||
return new File(fileName);
|
||||
}
|
||||
|
||||
public File getExportFile(String directory, ScriptExportSettings exportSettings) {
|
||||
if (exportSettings.singleFile) {
|
||||
return null;
|
||||
}
|
||||
|
||||
String scriptName = getPathScriptName();
|
||||
DottedChain packageName = getPathPackage();
|
||||
File outDir = new File(directory + File.separatorChar + packageName.toFilePath());
|
||||
String fileName = outDir.toString() + File.separator + Helper.makeFileName(scriptName) + exportSettings.getFileExtension();
|
||||
return new File(fileName);
|
||||
return getExportFile(directory, exportSettings.getFileExtension());
|
||||
}
|
||||
|
||||
/*public String getPath() {
|
||||
|
||||
Reference in New Issue
Block a user