get rid of JIT and other things
This commit is contained in:
@@ -349,6 +349,7 @@ void PIF::UpdateController() {
|
||||
} else {
|
||||
yclamped /= SDL_JOYSTICK_AXIS_MAX;
|
||||
}
|
||||
|
||||
yclamped *= 86;
|
||||
|
||||
joybusDevices[channel].controller.joy_x = xclamped;
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
|
||||
namespace n64 {
|
||||
void PIF::InitDevices(SaveType saveType) {
|
||||
for (int i = 0; i < 4; i++) { //TODO: make this configurable
|
||||
joybusDevices[0].type = JOYBUS_CONTROLLER;
|
||||
joybusDevices[0].accessoryType = ACCESSORY_MEMPACK;
|
||||
for (int i = 1; i < 4; i++) { //TODO: make this configurable
|
||||
joybusDevices[i].type = JOYBUS_NONE;
|
||||
joybusDevices[i].accessoryType = ACCESSORY_NONE;
|
||||
}
|
||||
joybusDevices[0].type = JOYBUS_CONTROLLER;
|
||||
joybusDevices[0].accessoryType = ACCESSORY_MEMPACK;
|
||||
|
||||
if (saveType == SAVE_EEPROM_4k) {
|
||||
joybusDevices[4].type = JOYBUS_4KB_EEPROM;
|
||||
|
||||
@@ -69,7 +69,7 @@ void VI::Write(MI& mi, Registers& regs, u32 paddr, u32 val) {
|
||||
case 0x04400018: {
|
||||
vsync = val & 0x3FF;
|
||||
numHalflines = vsync >> 1;
|
||||
cyclesPerHalfline = N64_CYCLES_PER_FRAME(false) / numHalflines;
|
||||
cyclesPerHalfline = N64_CYCLES_PER_FRAME(isPal) / numHalflines;
|
||||
} break;
|
||||
case 0x0440001C: {
|
||||
hsync = val & 0x3FF;
|
||||
|
||||
@@ -88,6 +88,7 @@ struct VI {
|
||||
u32 origin, width, current;
|
||||
u32 vsync, hsync, intr;
|
||||
AxisStart hstart{}, vstart{};
|
||||
bool isPal = false;
|
||||
int swaps{};
|
||||
int numHalflines;
|
||||
int numFields;
|
||||
|
||||
Reference in New Issue
Block a user