diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -2303,6 +2303,19 @@ iBool handleCommand_App(const char *cmd) { | |||
2303 | } | 2303 | } |
2304 | setCurrent_Root(oldRoot); | 2304 | setCurrent_Root(oldRoot); |
2305 | } | 2305 | } |
2306 | else if (equal_Command(cmd, "file.open")) { | ||
2307 | const char *path = suffixPtr_Command(cmd, "path"); | ||
2308 | if (path) { | ||
2309 | postCommandf_App("open temp:%d url:%s", | ||
2310 | argLabel_Command(cmd, "temp"), | ||
2311 | makeFileUrl_CStr(path)); | ||
2312 | return iTrue; | ||
2313 | } | ||
2314 | #if defined (iPlatformAppleMobile) | ||
2315 | pickFileForOpening_iOS(); | ||
2316 | #endif | ||
2317 | return iTrue; | ||
2318 | } | ||
2306 | else if (equal_Command(cmd, "file.delete")) { | 2319 | else if (equal_Command(cmd, "file.delete")) { |
2307 | const char *path = suffixPtr_Command(cmd, "path"); | 2320 | const char *path = suffixPtr_Command(cmd, "path"); |
2308 | if (argLabel_Command(cmd, "confirm")) { | 2321 | if (argLabel_Command(cmd, "confirm")) { |