mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 05:51:17 +00:00
Improved loop detection (own algorithm)
Boomerang part removed (was not working well)
This commit is contained in:
@@ -89,16 +89,16 @@ public class FlashPlayerPanel extends Panel {
|
||||
|
||||
SHELLEXECUTEINFO sei = new SHELLEXECUTEINFO();
|
||||
sei.fMask = 0x00000040;
|
||||
String appDir="";
|
||||
String appDir = "";
|
||||
try {
|
||||
appDir=new File(URLDecoder.decode(Main.class.getProtectionDomain().getCodeSource().getLocation().getPath(),"UTF-8")).getParentFile().getAbsolutePath();
|
||||
appDir = new File(URLDecoder.decode(Main.class.getProtectionDomain().getCodeSource().getLocation().getPath(), "UTF-8")).getParentFile().getAbsolutePath();
|
||||
} catch (UnsupportedEncodingException ex) {
|
||||
Logger.getLogger(FlashPlayerPanel.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
if(!appDir.endsWith("\\")){
|
||||
appDir+="\\";
|
||||
if (!appDir.endsWith("\\")) {
|
||||
appDir += "\\";
|
||||
}
|
||||
sei.lpFile = new WString(appDir+"lib\\FlashPlayer.exe");
|
||||
sei.lpFile = new WString(appDir + "lib\\FlashPlayer.exe");
|
||||
sei.lpParameters = new WString(hwnd.getPointer().hashCode() + " " + hwndFrame.getPointer().hashCode());
|
||||
sei.nShow = WinUser.SW_NORMAL;
|
||||
Shell32.INSTANCE.ShellExecuteEx(sei);
|
||||
|
||||
Reference in New Issue
Block a user