if (patch_firm_all() != 0)
return;
- if (config->options[OPTION_REBOOT]) {
+ if (get_opt_raw(OPTION_REBOOT)) {
fprintf(stderr, "Saving FIRM for reboot...\n");
if (!write_file(firm_loc, PATH_NATIVE_P, firm_size))
abort("Failed to save prepatched native\n");
}
void dump_log(unsigned int force) {
- if(!config->options[OPTION_SAVE_LOGS])
+ if(!get_opt_raw(OPTION_SAVE_LOGS))
return;
if (force == 0 && log_size < LOG_BUFFER_SIZE-1)
screen[j + 1] = top_bg[i];
screen[j + 2] = top_bg[i + 1];
screen[j + 3] = top_bg[i + 2];
- if (!kill_output && config->options[OPTION_DIM_MODE]) {
+ if (!kill_output && get_opt_raw(OPTION_DIM_MODE)) {
screen[j + 1] = alphamap[screen[j + 1]];
screen[j + 2] = alphamap[screen[j + 2]];
screen[j + 3] = alphamap[screen[j + 3]];
screen[j + 1] = bottom_bg[i];
screen[j + 2] = bottom_bg[i + 1];
screen[j + 3] = bottom_bg[i + 2];
- if (!kill_output && config->options[OPTION_DIM_MODE]) {
+ if (!kill_output && get_opt_raw(OPTION_DIM_MODE)) {
screen[j + 1] = alphamap[screen[j + 1]];
screen[j + 2] = alphamap[screen[j + 2]];
screen[j + 3] = alphamap[screen[j + 3]];
screen[pos + 1] = buffer_bg[pos_b];
screen[pos + 2] = buffer_bg[pos_b + 1];
screen[pos + 3] = buffer_bg[pos_b + 2];
- if (config->options[OPTION_DIM_MODE]) {
+ if (get_opt_raw(OPTION_DIM_MODE)) {
screen[pos + 1] = alphamap[screen[pos + 1]];
screen[pos + 2] = alphamap[screen[pos + 2]];
screen[pos + 3] = alphamap[screen[pos + 3]];
screen[pos + 1] = buffer_bg[pos_b];
screen[pos + 2] = buffer_bg[pos_b + 1];
screen[pos + 3] = buffer_bg[pos_b + 2];
- if (config->options[OPTION_DIM_MODE]) {
+ if (get_opt_raw(OPTION_DIM_MODE)) {
screen[pos + 1] = alphamap[screen[pos + 1]];
screen[pos + 2] = alphamap[screen[pos + 2]];
screen[pos + 3] = alphamap[screen[pos + 3]];