Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1024962 // standalone_start2

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9574L/62K).

1  
// returns true if you should exit
2  
sbool standalone_start2(bool standalone, S programName, S framesID) {
3  
  ret standalone_start2(standalone, programName, framesID, programName);
4  
}
5  
6  
sbool standalone_start2(bool standalone, S programName, S framesID, S virtualDirName) {
7  
  File virtualHome = javaxVirtualDir(virtualDirName);
8  
  File mainJar = getMainJarLocation();
9  
  File unpackDir = newFile(virtualHome, "unpacked");
10  
  if (standalone)
11  
    ret standalone_start(null, programName, virtualHome, mainJar, unpackDir, framesID);
12  
  else
13  
    setUserDir(virtualHome);
14  
  false;
15  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024962
Snippet name: standalone_start2
Eternal ID of this version: #1024962/6
Text MD5: 6482379a5bde36bf6a8e56c75f446790
Transpilation MD5: 6e3be652b55a2da2130bd3dfaabae2ee
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-24 13:38:43
Source code size: 581 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 210 / 305
Version history: 5 change(s)
Referenced in: [show references]