|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
#include <stdio.h>#include <stdlib.h>#include <stdbool.h>#include <dirent.h>#include <libgen.h>#include <sys/stat.h>#include <dc/video.h>#include <fat/fs_fat.h>#include <kos/string.h>#include <kos/fs_romdisk.h>#include <kos/fs_ramdisk.h>#include <dc/sd.h>#include <dc/biosfont.h>#include <dc/maple.h>#include <dc/maple/controller.h>#include <dc/maple/vmu.h>#include "browse.h"Macros | |
| #define | SCREEN_WIDTH 640 |
| #define | SCREEN_HEIGHT 480 |
Functions | |
| int | main (int argc, char **argv) |
| static bool | mount_sd_fat () |
| static void | unmount_sd_fat () |
| static void | show_prompt (char *current_directory, bool mounted_sd, bool highlight_yes) |
| static void | delete_file (char *filename, bool mounted_sd) |
| static int | browse_directory (char *directory, directory_file_t *directory_contents) |
| static void | prompt_message (char *message, bool highlight_yes) |
| static void | draw_directory_selector (int index) |
| static void | draw_directory_contents (directory_file_t *directory_contents, int num) |
| static bool | draw_stat (const char *path) |
| static cont_state_t * | get_cont_state () |
| static bool | button_pressed (unsigned int current_buttons, unsigned int changed_buttons, unsigned int button) |
Variables | |
| static kos_blockdev_t | sd_dev |
| static uint8_t | partition_type |
| #define SCREEN_HEIGHT 480 |
Referenced by draw_directory_contents().
| #define SCREEN_WIDTH 640 |
Referenced by draw_directory_contents(), draw_directory_selector(), draw_stat(), and prompt_message().
|
static |
References closedir(), DT_DIR, directory_file_t::filename, fprintf, directory_file_t::is_dir, opendir(), and readdir().
Referenced by main().
|
static |
Referenced by main().
|
static |
References basename(), free(), fs_ramdisk_detach(), and NULL.
Referenced by main().
|
static |
References bfont_draw_str(), BFONT_HEIGHT, bfont_set_background_color(), bfont_set_foreground_color(), color, SCREEN_HEIGHT, SCREEN_WIDTH, vram_s, x, and y.
Referenced by main().
|
static |
References bfont_draw_str(), BFONT_HEIGHT, bfont_set_background_color(), bfont_set_foreground_color(), color, SCREEN_WIDTH, vram_s, x, and y.
Referenced by main().
|
static |
References bfont_draw_str_fmt(), BFONT_HEIGHT, SCREEN_WIDTH, vram_s, x, and y.
Referenced by main().
|
static |
References maple_dev_status(), maple_enum_type(), MAPLE_FUNC_CONTROLLER, and NULL.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
References basename(), browse_directory(), BUFFER_LENGTH, button_pressed(), cond, CONT_A, CONT_B, CONT_DPAD_DOWN, CONT_DPAD_UP, CONT_START, CONT_Y, delete_file(), DM_640x480, draw_directory_contents(), draw_directory_selector(), draw_stat(), fs_copy(), fs_path_append(), get_cont_state(), mount_sd_fat(), PM_RGB555, show_prompt(), unmount_sd_fat(), vid_clear(), and vid_set_mode().
|
static |
References fprintf, fs_fat_init(), fs_fat_mount(), FS_FAT_MOUNT_READWRITE, partition_type, sd_blockdev_for_partition(), sd_dev, and sd_init().
Referenced by main().
|
static |
References bfont_draw_str(), BFONT_HEIGHT, bfont_set_background_color(), bfont_set_foreground_color(), color, message, SCREEN_WIDTH, vram_s, x, and y.
Referenced by show_prompt().
|
static |
References prompt_message().
Referenced by main().
|
static |
References fs_fat_shutdown(), fs_fat_unmount(), and sd_shutdown().
Referenced by main().
|
static |
Referenced by main(), and mount_sd_fat().
|
static |
Referenced by main(), mount_sd_fat(), and run_speed_test().