OSDN Git Service

Merge branch 'master' of https://github.com/mtsgi/kit into async-launch
authortaichanne30 <ne300209@senshu-u.jp>
Fri, 22 Nov 2019 05:49:22 +0000 (14:49 +0900)
committertaichanne30 <ne300209@senshu-u.jp>
Fri, 22 Nov 2019 05:49:22 +0000 (14:49 +0900)
1  2 
system.js

diff --cc system.js
+++ b/system.js
@@@ -487,17 -485,15 +485,18 @@@ function kit() 
      }
  }
  
 -function launch( str, args, dir ) {
 +async function launch( str, args, dir ) {
 +    while(System.launchLock) await System.ajaxWait();
 +    System.launchLock = true;
 +
      let _pid = pid;
      System.args[_pid] = args;
-     System.launchpath[_pid] = dir || System.appdir + str;
+     let _path = dir || System.appdir + str;
+     System.launchpath[_pid] = _path;
  
-     if( System.appCache[str] ) {
+     if( System.appCache[_path] ) {
          if( KWS.fullscreen.pid ) KWS.unmax(KWS.fullscreen.pid);
-         appData( System.appCache[str] );
+         appData( System.appCache[_path] );
      }
      else {
          try{