Skip to content

Commit 6f35076

Browse files
committed
--patch-nc1020tw-nor
1 parent ab871d7 commit 6f35076

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

comm.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ misc
143143
*/
144144
bool shift_down =false;;
145145
int battery_level=11;
146+
bool patch_nc1020tw_nor=false;
146147

147148

148149

comm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ misc
236236
const int int_inf=10*10000*10000;
237237
extern bool shift_down;
238238
extern int battery_level;
239+
extern bool patch_nc1020tw_nor;
239240
/*
240241
===================
241242
common functions

nor.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@ void LoadNor(){
6969
else assert(false);
7070
}
7171

72-
void try_fix_dump();
73-
try_fix_dump();
72+
if(patch_nc1020tw_nor){
73+
void try_fix_dump();
74+
try_fix_dump();
75+
}
7476

7577
free(temp_buff);
7678
fclose(file);

settings.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ void process_args(int argc, char *argv[])
6464
{"log-all-dsp-io", no_argument, 0, 1},
6565
{"battery-level", required_argument, 0, 1},
6666
{"nc1020tw", no_argument, 0, 1},
67+
{"patch-nc1020tw-nor", no_argument, 0, 1},
6768
{"oops", no_argument, 0, 1},
6869
{"quit-after-debug-next-n", no_argument, 0, 1},
6970
{"rgb-scale", required_argument, 0, 1},
@@ -282,6 +283,9 @@ void process_args(int argc, char *argv[])
282283
else if (strcmp(long_options[option_index].name,"rgb-scale")==0){
283284
sscanf(optarg,"%lf,%lf,%lf",&r_scale,&g_scale,&b_scale);
284285
}
286+
else if (strcmp(long_options[option_index].name,"patch-nc1020tw-nor")==0){
287+
patch_nc1020tw_nor = true;
288+
}
285289
else
286290
{
287291
printf("unknown option\n");

0 commit comments

Comments
 (0)