mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-24 23:50:47 +00:00
Added: "Starting Flash content debugger" in status bar when debugging starts
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
### Added
|
||||||
|
- "Starting Flash content debugger" in status bar when debugging starts
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Resize export dialogs labels to match localized strings
|
- Resize export dialogs labels to match localized strings
|
||||||
- AS1/2 debugger - deletion of SWD file after debugging
|
- AS1/2 debugger - deletion of SWD file after debugging
|
||||||
|
|||||||
@@ -497,6 +497,7 @@ public class Main {
|
|||||||
instrSWF.addEventListener(prepEventListener);
|
instrSWF.addEventListener(prepEventListener);
|
||||||
try {
|
try {
|
||||||
File fTempFile = new File(instrSWF.getFile());
|
File fTempFile = new File(instrSWF.getFile());
|
||||||
|
startWork(AppStrings.translate("work.injecting_debuginfo"), swfPrepareWorker, true);
|
||||||
instrSWF.enableDebugging(true, new File("."), true, doPCode, swfHash);
|
instrSWF.enableDebugging(true, new File("."), true, doPCode, swfHash);
|
||||||
try (FileOutputStream fos = new FileOutputStream(fTempFile)) {
|
try (FileOutputStream fos = new FileOutputStream(fTempFile)) {
|
||||||
instrSWF.saveTo(fos);
|
instrSWF.saveTo(fos);
|
||||||
@@ -534,6 +535,7 @@ public class Main {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
startWork(AppStrings.translate("work.generating_swd"), swfPrepareWorker, true);
|
||||||
if (doPCode) {
|
if (doPCode) {
|
||||||
instrSWF.generatePCodeSwdFile(swdFile, getPackBreakPoints(true, swfHash), swfHash);
|
instrSWF.generatePCodeSwdFile(swdFile, getPackBreakPoints(true, swfHash), swfHash);
|
||||||
} else {
|
} else {
|
||||||
@@ -830,6 +832,7 @@ public class Main {
|
|||||||
runningPreparation = new SwfDebugPrepare(doPCode);
|
runningPreparation = new SwfDebugPrepare(doPCode);
|
||||||
}
|
}
|
||||||
Main.stopWork();
|
Main.stopWork();
|
||||||
|
Main.startWork(AppStrings.translate("work.debugging.start") + "...", null, true);
|
||||||
Main.startDebugger();
|
Main.startDebugger();
|
||||||
runPlayer(AppStrings.translate("work.debugging.wait"), playerLocation, fTempFile.getAbsolutePath(), flashVars);
|
runPlayer(AppStrings.translate("work.debugging.wait"), playerLocation, fTempFile.getAbsolutePath(), flashVars);
|
||||||
}
|
}
|
||||||
@@ -1004,10 +1007,16 @@ public class Main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void startWork(String name, CancellableWorker worker) {
|
public static void startWork(String name, CancellableWorker worker) {
|
||||||
startWork(name, -1, worker);
|
startWork(name, -1, worker, false);
|
||||||
|
}
|
||||||
|
public static void startWork(String name, CancellableWorker worker, boolean force) {
|
||||||
|
startWork(name, -1, worker, force);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void startWork(final String name, final int percent, final CancellableWorker worker) {
|
public static void startWork(final String name, final int percent, final CancellableWorker worker) {
|
||||||
|
startWork(name, percent, worker, false);
|
||||||
|
}
|
||||||
|
public static void startWork(final String name, final int percent, final CancellableWorker worker, boolean force) {
|
||||||
working = true;
|
working = true;
|
||||||
long nowTime = System.currentTimeMillis();
|
long nowTime = System.currentTimeMillis();
|
||||||
if (mainFrame != null && nowTime < lastTimeStartWork + 1000) {
|
if (mainFrame != null && nowTime < lastTimeStartWork + 1000) {
|
||||||
@@ -1036,6 +1045,7 @@ public class Main {
|
|||||||
|
|
||||||
public static void stopWork() {
|
public static void stopWork() {
|
||||||
working = false;
|
working = false;
|
||||||
|
lastTimeStartWork = 0;
|
||||||
View.execInEventDispatchLater(() -> {
|
View.execInEventDispatchLater(() -> {
|
||||||
if (mainFrame != null) {
|
if (mainFrame != null) {
|
||||||
mainFrame.getPanel().setWorkStatus("", null);
|
mainFrame.getPanel().setWorkStatus("", null);
|
||||||
|
|||||||
@@ -1050,4 +1050,7 @@ zoom = Zoom
|
|||||||
zoom.hint = Zoom level. Click to change.
|
zoom.hint = Zoom level. Click to change.
|
||||||
zoom.enter = Enter zoom percentage value:
|
zoom.enter = Enter zoom percentage value:
|
||||||
|
|
||||||
contextmenu.showInEasy = Show in Simple editor
|
contextmenu.showInEasy = Show in Simple editor
|
||||||
|
|
||||||
|
#after 23.0.1
|
||||||
|
work.debugging.start = Starting Flash content debugger
|
||||||
@@ -1051,3 +1051,6 @@ zoom.hint = \u00darove\u0148 p\u0159ibl\u00ed\u017een\u00ed. Klikn\u011bte pro z
|
|||||||
zoom.enter = Zadejte hodnotu p\u0159ibl\u00ed\u017een\u00ed v procentech:
|
zoom.enter = Zadejte hodnotu p\u0159ibl\u00ed\u017een\u00ed v procentech:
|
||||||
|
|
||||||
contextmenu.showInEasy = Zobrazit v Jednoduch\u00e9m editoru
|
contextmenu.showInEasy = Zobrazit v Jednoduch\u00e9m editoru
|
||||||
|
|
||||||
|
#after 23.0.1
|
||||||
|
work.debugging.start = Spou\u0161t\u00ed se Flash content debugger
|
||||||
Reference in New Issue
Block a user