mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-27 13:54:49 +00:00
Added: #2427 Commandline export with use of imported SWFs (importAssets tag)
This commit is contained in:
@@ -2330,7 +2330,7 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
if (importedSwfs.containsKey(url)) {
|
||||
iSwf = importedSwfs.get(url);
|
||||
} else {
|
||||
iSwf = resolver.resolveUrl(url);
|
||||
iSwf = resolver.resolveUrl(this.file, url);
|
||||
importedSwfs.put(url, iSwf);
|
||||
}
|
||||
if (iSwf != null) {
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
*/
|
||||
package com.jpexs.decompiler.flash;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* URL resolver interface.
|
||||
*
|
||||
@@ -26,8 +28,9 @@ public interface UrlResolver {
|
||||
/**
|
||||
* Resolves URL to SWF object.
|
||||
*
|
||||
* @param basePath Base SWF path
|
||||
* @param url URL
|
||||
* @return SWF object or null if not valid
|
||||
*/
|
||||
public SWF resolveUrl(String url);
|
||||
public SWF resolveUrl(String basePath, String url);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user