Libraryless. Click here for Pure Java version (4334L/29K).
1 | static File loadBinarySnippet(S snippetID) { |
2 | ifndef NoResourceLoader |
3 | IResourceLoader rl = vm_getResourceLoader(); |
4 | if (rl != null) |
5 | ret rl.loadLibrary(snippetID); |
6 | endifndef |
7 | |
8 | ret loadBinarySnippet_noResourceLoader(snippetID); |
9 | } |
10 | |
11 | static File loadBinarySnippet_noResourceLoader(S snippetID) ctex { |
12 | long id = parseSnippetID(snippetID); |
13 | if (isImageServerSnippet(id)) ret loadImageAsFile(snippetID); |
14 | File f = DiskSnippetCache_getLibrary(id); |
15 | if (fileSize(f) == 0) |
16 | f = loadDataSnippetToFile_noResourceLoader(snippetID); |
17 | return f; |
18 | } |
Began life as a copy of #1000677
download show line numbers debug dex old transpilations
Travelled to 21 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, imzmzdywqqli, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, ofpaelxlmzfo, omdjrrnzbjjv, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, wnsclhtenguj, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1008032 |
Snippet name: | loadBinarySnippet |
Eternal ID of this version: | #1008032/8 |
Text MD5: | 667012ee11510829380a7d40cde8b089 |
Transpilation MD5: | 31a35c717e1a1f9006d92fa9b79c0739 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-10-14 16:02:29 |
Source code size: | 571 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 660 / 1223 |
Version history: | 7 change(s) |
Referenced in: | [show references] |