Improve Flash logging support on OS X

This commit is contained in:
Joshua Granick
2015-06-02 19:15:42 -07:00
parent f33eede96a
commit 0e8991b2f3
3 changed files with 6 additions and 5 deletions

View File

@@ -577,7 +577,7 @@ class FlashHelper {
var path = switch (PlatformHelper.hostPlatform) {
case WINDOWS: Sys.getEnv ("HOMEDRIVE") + "/" + Sys.getEnv ("HOMEPATH") + "/mm.cfg";
case MAC: "/Library/Application Support/Macromedia/mm.cfg";
//case MAC: "/Library/Application Support/Macromedia/mm.cfg";
default: Sys.getEnv ("HOME") + "/mm.cfg";
}
@@ -970,7 +970,6 @@ class FlashHelper {
while (true) {
Sys.sleep (1);
var input = null;
try {
@@ -1003,6 +1002,8 @@ class FlashHelper {
}
Sys.sleep (1);
}
}

View File

@@ -57,11 +57,11 @@ class ProcessHelper {
if (targetPath.substr (0, 1) == "/") {
runCommand (workingDirectory, executable, [ targetPath ]);
runCommand (workingDirectory, executable, [ "-W", targetPath ]);
} else {
runCommand (workingDirectory, executable, [ "./" + targetPath ]);
runCommand (workingDirectory, executable, [ "-W", "./" + targetPath ]);
}

View File

@@ -198,7 +198,7 @@ class FlashPlatform extends PlatformTarget {
if (traceEnabled) {
FlashHelper.enableLogging ();
//logLength = FlashHelper.getLogLength ();
logLength = FlashHelper.getLogLength ();
}