edolz.blogg.se

Rcm loader one injector
Rcm loader one injector








~ u8 payload_num = get_payload_num() + 1 Size_t path_size = strlen(finfo.fname) + strlen(folder) + 2 ĭisplay_logo_with_message(2, "Launching ", payload_path) Įlse if((strlen(finfo.fname) = 0) & (res != FR_NO_PATH))ĭisplay_logo_with_message(5, "No payload found in ", folder, "!", "\n", "Press any button to reboot into RCM.") ĭisplay_logo_with_message(7, "Folder not found!", "\n", "Please create ", folder, " on your SD card and add your payload to it.", "\n", "Press any button to reboot into RCM.") If(res = FR_OK & (strlen(finfo.fname) != 0)) ~ FRESULT res = f_findfirst(&dir, &finfo, folder, "*.bin") įRESULT res = f_findfirst(&dir, &finfo, folder, "reboot_payload.bin") Void find_and_launch_payload(const char *folder) * Reset number of characters to print to zero for next line.

rcm loader one injector

* Next string to worry about is after current string. * Print each string, starting at calculated x position. G_gfx_con.x = CENTERED_TEXT_START(total_len) * and print characters that haven't been printed yet.

rcm loader one injector

* Handle newlines separately, so text centering isn't thrown off, */ * and starting index to keep track of already processed strings */Ĭhar **str_ptrs = malloc(count * sizeof(char *)) * along with var to hold total number of chars to print */ * Allocate space for pointers to each string, */

rcm loader one injector

* The logo is comprised of 4 rows and 12 columns. * Logo chars are stored as part of the font, */ * save the scale factor so we can restore it later. * vardiac arg list for multiple strings. Void display_logo_with_message(int count. #define CENTERED_TEXT_START(n) (((1280 - n * CHAR_WIDTH * g_gfx_con.scale) / 2)) * You should have received a copy of the GNU General Public License * ANY WARRANTY without even the implied warranty of MERCHANTABILITY or * This program is distributed in the hope it will be useful, but WITHOUT * version 2, as published by the Free Software Foundation.

rcm loader one injector

* under the terms and conditions of the GNU General Public License, * This program is free software you can redistribute it and/or modify it










Rcm loader one injector