Added: #2427 Commandline export with use of imported SWFs (importAssets tag)

This commit is contained in:
Jindra Petřík
2025-03-23 12:23:51 +01:00
parent a992adb5c0
commit d47accdcfa
7 changed files with 266 additions and 7 deletions

View File

@@ -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) {

View File

@@ -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);
}