mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
* Allow more than three choices in prompts. * Allow specifying a title version when installing CDN titles outside of the ticket list. * Fix titles displayed during TitleDB update. * Update title version and install status after TitleDB install/update.
25 lines
876 B
C
25 lines
876 B
C
#include <stdio.h>
|
|
|
|
#include <3ds.h>
|
|
|
|
#include "action.h"
|
|
#include "../task/task.h"
|
|
#include "../../error.h"
|
|
#include "../../list.h"
|
|
#include "../../ui.h"
|
|
#include "../../../core/linkedlist.h"
|
|
|
|
static void action_install_titledb_draw_top(ui_view* view, void* data, float x1, float y1, float x2, float y2, u32 index) {
|
|
ui_draw_titledb_info(view, ((list_item*) data)->data, x1, y1, x2, y2);
|
|
}
|
|
|
|
static void action_update_titledb_finished(void* data) {
|
|
task_populate_titledb_update_status((list_item*) data);
|
|
}
|
|
|
|
void action_install_titledb(linked_list* items, list_item* selected) {
|
|
char url[64];
|
|
snprintf(url, INSTALL_URL_MAX, "https://3ds.titledb.com/v1/cia/%lu/download", ((titledb_info*) selected->data)->id);
|
|
|
|
action_install_url("Install the selected title from TitleDB?", url, selected, action_update_titledb_finished, action_install_titledb_draw_top);
|
|
} |