16
LINES
< > BotCompany Repo | #1000963
// hotwire using internalBot (CURRENT in core)
JavaX fragment (include)
1 | static Class<?> hotwire(String src) {
|
2 | if (isAndroid()) {
|
3 | Class j = getJavaX();
|
4 | synchronized(j) { // hopefully this goes well...
|
5 | List<File> libraries = new ArrayList<File>();
|
6 | File srcDir = (File) call(j, "transpileMain", src, libraries);
|
7 | if (srcDir == null)
|
8 | fail("transpileMain returned null (src=" + quote(src) + ")");
|
9 |
|
10 | Object androidContext = get(j, "androidContext");
|
11 | return (Class) call(j, "loadx2android", srcDir, src);
|
12 | }
|
13 | }
|
14 |
|
15 | ret hotwire_overInternalBot(src);
|
16 | } |
Author comment
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
| ID |
Author/Program |
Comment |
Date |
| 1124 | stefan | Note: hotwire sets the variable programID to the loaded program's ID (not the outer one's). | 2015-10-11 15:09:17 |
add comment
| Snippet ID: |
#1000963 |
| Snippet name: |
hotwire using internalBot (CURRENT in core) |
| Eternal ID of this version: |
#1000963/3 |
| Text MD5: |
156dec4e61ed48312af257de29dc6f4c |
| Author: |
stefan |
| Category: |
|
| Type: |
JavaX fragment (include) |
| Public (visible to everyone): |
Yes |
| Archived (hidden from active list): |
No |
| Created/modified: |
2017-03-15 13:17:38 |
| Source code size: |
543 bytes / 16 lines |
| Pitched / IR pitched: |
No / No |
| Views / Downloads: |
1273 / 7930 |
| Version history: |
2 change(s) |
| Referenced in: |
[show references] |