Libraryless. Click here for Pure Java version (7140L/42K).
// TODO: simplify, use new method JavaXClassLoader.addFile sbool addLibraryToCurrentProgram(S libID) { ret addLibraryToCurrentProgram(loadLibrary(libID)); } sbool addLibraryToCurrentProgram(File f) ctex { if (f == null || currentProgramHasLibrary(f)) false; ClassLoader cl = myClassLoader(); ret isTrue(call(cl, "addFile", f)); /*Cl<File> files = cast get(cl, 'files); synchronized(cl) { files.add(f); call(cl, 'addURL, f.toURI().toURL()); } true;*/ }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016156 |
Snippet name: | addLibraryToCurrentProgram |
Eternal ID of this version: | #1016156/10 |
Text MD5: | 7d4a9209dc1d78a9be687b37c2da72b1 |
Transpilation MD5: | e14b0d8550a1dc5e66fb04be36b0ddc2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-06 00:49:59 |
Source code size: | 495 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 440 / 594 |
Version history: | 9 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1034411 - canAddLibrariesToCurrentProgram |