diff --git a/swilib/include/swilib/file.h b/swilib/include/swilib/file.h index 9d57518f..1f7715c6 100644 --- a/swilib/include/swilib/file.h +++ b/swilib/include/swilib/file.h @@ -258,6 +258,13 @@ __swi_begin(0x010) int sys_mkdir(const char *dirname, uint32_t *err) __swi_end(0x010, sys_mkdir, (dirname, err)); +/** + * @copydoc sys_mkdir + * */ +__swi_begin(0x3B7) +int sys_mkdir_ws(const WSHDR *dirname, uint32_t *err) +__swi_end(0x3B7, sys_mkdir_ws, (dirname, err)); + /** * Remove directory. * @param dirname path to the directory @@ -361,6 +368,13 @@ __swi_begin(0x091) int isdir(const char *path, uint32_t *err) __swi_end(0x091, isdir, (path, err)); +/** + * @copydoc isdir + * */ +__swi_begin(0x3BC) +int isdir_ws(const WSHDR *path, uint32_t *err) +__swi_end(0x3BC, isdir_ws, (path, err)); + /** * Check if a file or directory exists. * @param path path to the file or directory diff --git a/swilib/include/swilib/ui.h b/swilib/include/swilib/ui.h index 85c7a9e8..16e4e2c0 100644 --- a/swilib/include/swilib/ui.h +++ b/swilib/include/swilib/ui.h @@ -608,6 +608,16 @@ __swi_begin(0x050) int MsgBoxOkCancel(int flags, int message, void (*callback)(int canceled)) __swi_end(0x050, MsgBoxOkCancel, (flags, message, callback)); +/** + * Show wait popup. + * @param flags + * @param message id from the langpack or pointer to the C-string + * @return GUI_ID + * */ +__swi_begin(0x3C0) +int ShowWaitBox(int flags, int message) +__swi_end(0x3C0, ShowWaitBox, (flags, message)); + /** * Create custom Popup. * @param flags see #PopupDialogFlags