Added #2038, #2028, #2034, #2036 Support for Harman AIR encrypted SWFs (Read-only)

This commit is contained in:
Jindra Petřík
2023-06-24 21:06:47 +02:00
parent 11d19da76c
commit ec10ded3ad
12 changed files with 226 additions and 5 deletions

View File

@@ -1268,6 +1268,7 @@ public class Main {
result.sourceInfo = sourceInfo;
boolean hasVideoStreams = false;
boolean hasEncrypted = false;
for (Openable openable : result) {
openable.setOpenableList(result);
@@ -1289,6 +1290,10 @@ public class Main {
}
}
if (swf.encrypted) {
hasEncrypted = true;
}
swf.addEventListener(new EventListener() {
@Override
public void handleExportingEvent(String type, int index, int count, Object data) {
@@ -1344,6 +1349,16 @@ public class Main {
});
}
if (hasEncrypted) {
View.execInEventDispatchLater(new Runnable() {
@Override
public void run() {
ViewMessages.showMessageDialog(getDefaultMessagesComponent(), AppStrings.translate("warning.cannotencrypt").replace("%file%", sourceInfo.getFileTitleOrName()), AppStrings.translate("message.warning"), JOptionPane.WARNING_MESSAGE, Configuration.warningCannotEncrypt);
}
});
}
return result;
}