1 | static SS ctxLoadGlobals(S botID) { |
2 | SS out = new TreeMap; |
3 | File f = loadLibrary(botID); |
4 | L<S> names = endingWithIC("/di.globals", listFilesInZip(f)); |
5 | for (S name : names) { |
6 | L<S> lines = toLinesFullTrim(loadTextFileFromZip(f, name)); |
7 | for i, S s over lines: { |
8 | new Matches m; |
9 | L<S> tok = javaTok(s); |
10 | int idx = jfind(tok, "*=*;"); |
11 | if (idx >= 0) |
12 | out.put(tok.get(idx), unquoteCtx(tok.get(idx+4))); |
13 | } |
14 | } |
15 | ret out; |
16 | } |
Began life as a copy of #1008849
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: | #1008901 |
Snippet name: | ctxLoadGlobals |
Eternal ID of this version: | #1008901/8 |
Text MD5: | 7cc6598f3e49276ba94a956880366bab |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-07-04 19:44:55 |
Source code size: | 474 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 496 / 556 |
Version history: | 7 change(s) |
Referenced in: | [show references] |