Result clipboard_set_contents(FS_ArchiveID archiveId, FS_Path* archivePath, const char* path, bool contentsOnly) { clipboard_clear(); clipboard_has = true; clipboard_contents_only = contentsOnly; strncpy(clipboard_path, path, FILE_PATH_MAX); Result res = 0; if(R_FAILED(res = FSUSER_OpenArchive(&clipboard_archive, archiveId, *archivePath))) { clipboard_clear(); } return res; }
void cleanup() { clipboard_clear(); task_exit(); ui_exit(); screen_exit(); socExit(); if(soc_buffer != NULL) { free(soc_buffer); soc_buffer = NULL; } amExit(); httpcExit(); ptmuExit(); acExit(); cfguExit(); romfsExit(); gfxExit(); }
static void copy_selected_outpath_event(GtkMenuItem *menuitem, gpointer user_data){ clipboard_clear(); handle_selected_event(menuitem, user_data, copy_selected_outpath, "Copy Output Path of "); }
static void copy_selected_event(GtkMenuItem *menuitem, gpointer user_data){ clipboard_clear(); handle_selected_event(menuitem, user_data, copy_selected, "Copy"); }