Skip to content

Commit

Permalink
fix crash when CPC content or Protek joy was used
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanvb committed Apr 22, 2022
1 parent 7cd2565 commit 5a42580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ LibretroCore::LibretroCore(retro_log_printf_t log_cb_, int machineDetailedType_,
config->memory.rom[0x03].offset=0;
}
}
else if(machineType == VM_config.at("MACHINE_CPC"))
else if(machineType == MACHINE_CPC)
{
// TODO machineDetailedType for 464/664
// TODO locale support
Expand Down
4 changes: 2 additions & 2 deletions core/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ TAPir format support
opengl display support
demo record/play
support for content in zip
egér
EP Mouse support
*/

Expand Down Expand Up @@ -251,7 +251,7 @@ static void check_variables(void)
if (var.value[9] == '1') userMap[i]=Ep128Emu::joystick_type.at("SINCLAIR1");
else userMap[i] = Ep128Emu::joystick_type.at("SINCLAIR2");
}
else if(var.value[0] == 'P') { userMap[i]=Ep128Emu::joystick_type.at("JOY_PROTEK");}
else if(var.value[0] == 'P') { userMap[i]=Ep128Emu::joystick_type.at("PROTEK");}
}
if(core)
core->initialize_joystick_map(zoomKey,infoKey,userMap[0],userMap[1],userMap[2],userMap[3],userMap[4],userMap[5]);
Expand Down

0 comments on commit 5a42580

Please sign in to comment.