Skip to content

Commit

Permalink
Remove autobias, since it wasn't working as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrysmagin committed Dec 6, 2016
1 parent 7351cbd commit a7adf8b
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 193 deletions.
7 changes: 2 additions & 5 deletions src/port/sdl/frontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,9 @@ static char *framelimit_show()
static int cycle_alter(u32 keys)
{
if (keys & KEY_RIGHT) {
if (autobias) { autobias = 0; BIAS = 1; }
else if (BIAS < 4) BIAS++;
if (BIAS < 4) BIAS++;
} else if (keys & KEY_LEFT) {
if (BIAS > 1) BIAS--;
else { autobias = 1; BIAS = 2; }
}

return 0;
Expand All @@ -688,8 +686,7 @@ static int cycle_alter(u32 keys)
static char *cycle_show()
{
static char buf[16] = "\0";
if (autobias) strcpy(buf, "auto");
else sprintf(buf, "%d", BIAS);
sprintf(buf, "%d", BIAS);
return buf;
}

Expand Down
7 changes: 3 additions & 4 deletions src/port/sdl/port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,10 +816,9 @@ int main (int argc, char **argv)
if (strcmp(argv[i],"-bias")==0) {
BIAS=atoi(argv[i+1]); // Set BIAS
if (((int)BIAS)<1) {
autobias=1;
BIAS=2;
} else {
autobias=0;
BIAS=1;
} else if (((int)BIAS)>4) {
BIAS=4;
}
}
if (strcmp(argv[i],"-adjust")==0) { PSXCLK=(u32)((double)PSXCLK*atof(argv[i+1])); }
Expand Down
Loading

0 comments on commit a7adf8b

Please sign in to comment.