Improved loop detection (own algorithm)

Boomerang part removed (was not working well)
This commit is contained in:
Jindra Pet��k
2013-06-18 23:00:24 +02:00
parent b1d9159182
commit 4f41b1eb22
28 changed files with 900 additions and 3266 deletions
@@ -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);