Skip to content

Commit

Permalink
Change Fake DS3 Workaround setting to be clearer for all languages
Browse files Browse the repository at this point in the history
  • Loading branch information
KrahJohlito committed Aug 17, 2021
1 parent 9682c33 commit bd1a2ad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lng/lang_English.lng
Expand Up @@ -255,8 +255,8 @@ Multitap Emulation
Turns on/off Multitap emulation for selected game.
Multitap Emulator On Port:
Select port for Multitap emulation.
Disable Fake DS3 Workaround
Some fake DS3s need workaround, this option will disable it.
Fake DS3 Workaround
Some fake DS3s need a workaround, this option will enable it.
Emulate FIELD Flipping
Fix for games that glitch under progressive video modes.
Parental Lock Settings
Expand Down
6 changes: 3 additions & 3 deletions modules/pademu/ds34bt.c
Expand Up @@ -348,7 +348,7 @@ static u8 l2cap_cmd_buf[MAX_BUFFER_SIZE + 32] __attribute((aligned(4))) = {0};

static u8 identifier = 0;
static u8 press_emu = 0;
static u8 disable_fake = 0;
static u8 enable_fake = 0;

static ds34bt_pad_t ds34pad[MAX_PADS];

Expand Down Expand Up @@ -660,7 +660,7 @@ static void HCI_event_task(int result)
pad = i;
mips_memcpy(ds34pad[pad].bdaddr, hci_buf + 2, 6);
ds34pad[pad].isfake = 0;
if (!disable_fake) {
if (enable_fake) {
ds34pad[pad].isfake = 1; // fake ds3
for (i = 0; i < sizeof(GenuineMacAddress) / 3; i++) { // check if ds3 is genuine
if (ds34pad[pad].bdaddr[5] == GenuineMacAddress[i][0] &&
Expand Down Expand Up @@ -1475,7 +1475,7 @@ int ds34bt_init(u8 pads, u8 options)

ds34pad_init();

disable_fake = options & 1;
enable_fake = options & 1;

bt_dev.hid_sema = CreateMutex(IOP_MUTEX_UNLOCKED);

Expand Down
2 changes: 1 addition & 1 deletion modules/pademu/pademu.c
Expand Up @@ -102,7 +102,7 @@ int _start(int argc, char *argv[])
pad_vibration = argv[1][1];
mtap_enabled = argv[1][2] & 1;
mtap_port = (argv[1][2] >> 1) & 1;
pad_options = (argv[1][2] >> 2) & 1; // disable workaround for fake ds3
pad_options = (argv[1][2] >> 2) & 1; // enable workaround for fake ds3
}

if (RegisterLibraryEntries(&_exp_pademu) != 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/lang.c
Expand Up @@ -242,8 +242,8 @@ static char *internalEnglish[LANG_STR_COUNT] = {
"Turns on/off Multitap emulation for selected game.",
"Multitap Emulator On Port:",
"Select port for Multitap emulation.",
"Disable Fake DS3 Workaround",
"Some fake DS3s need workaround, this option will disable it.",
"Fake DS3 Workaround",
"Some fake DS3s need a workaround, this option will enable it.",
"Emulate FIELD Flipping",
"Fix for games that glitch under progressive video modes.",
"Parental Lock Settings",
Expand Down

0 comments on commit bd1a2ad

Please sign in to comment.