From: chaoskagami Date: Thu, 8 Sep 2016 13:31:55 +0000 (-0400) Subject: Delete temporary junk X-Git-Tag: v0.3.0~15 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=abb6bdaec6608c8b1ba8df7d8caa8c4b3491b9c6;p=corbenik%2Fcorbenik.git Delete temporary junk --- diff --git a/source/menu.c b/source/menu.c index d38b73c..6a7da9b 100644 --- a/source/menu.c +++ b/source/menu.c @@ -233,69 +233,9 @@ void patch_func(char* fpath) { } //=================================================================================================== -#if 0 -char* get_nfirm(void* val) { - return config->firms[0]; -} - -char* get_tfirm(void* val) { - return config->firms[1]; -} - -char* get_afirm(void* val) { - return config->firms[2]; -} - -char* patch_get_enable(void* val) { - uint32_t opt = (uint32_t)val; - uint32_t raw = enable_list[opt]; - static char ret[2] = " "; - ret[0] = ' '; - if (raw == 1) - ret[0] = '*'; - return ret; -} - -void patch_set_enable(void* val) { - uint32_t opt = (uint32_t)val; - enable_list[opt] = !enable_list[opt]; -} - -void patch_func(char* fpath) { - FILINFO f2; - if (f_stat(fpath, &f2) != FR_OK) - return; - - if (!(f2.fattrib & AM_DIR)) { - struct system_patch p; - read_file(&p, fpath, sizeof(struct system_patch)); - - if (memcmp(p.magic, "AIDA", 4)) - return; - - patches[current_menu_index_patches].name = strdup_self(p.name); - if (desc_is_fname_sto) - patches[current_menu_index_patches].param = strdup_self(fpath); - else - patches[current_menu_index_patches].desc = strdup_self(p.desc); - uint32_t val = p.uuid; - - patches[current_menu_index_patches].param = (void*)val; +// TODO - Enumerate FIRMs and list - patches[current_menu_index_patches].handle = option; - patches[current_menu_index_patches].indent = 0; - - patches[current_menu_index_patches].func = patch_set_enable; - patches[current_menu_index_patches].value = patch_get_enable; - - if (desc_is_fname_sto) - enable_list[p.uuid] = 0; - - current_menu_index_patches++; - } -} -#endif //=================================================================================================== void