Added Saving Harman encrypted SWFs

Added Editing encrypted flag on header panel
Added `-encrypt` command on CLI for Harman encryption
This commit is contained in:
Jindra Petřík
2023-11-22 22:20:53 +01:00
parent c4cfad716b
commit 8ad981ff25
10 changed files with 614 additions and 177 deletions

View File

@@ -1320,7 +1320,7 @@ public class Main {
result.sourceInfo = sourceInfo;
boolean hasVideoStreams = false;
boolean hasEncrypted = false;
//boolean hasEncrypted = false;
for (Openable openable : result) {
openable.setOpenableList(result);
@@ -1342,9 +1342,9 @@ public class Main {
}
}
if (swf.encrypted) {
/*if (swf.encrypted) {
hasEncrypted = true;
}
}*/
swf.addEventListener(new EventListener() {
@Override
@@ -1402,7 +1402,7 @@ public class Main {
});
}
if (hasEncrypted) {
/*if (hasEncrypted) {
View.execInEventDispatchLater(new Runnable() {
@Override
public void run() {
@@ -1410,7 +1410,7 @@ public class Main {
}
});
}
}*/
return result;
}