PAD: s/OnePad/PAD/g

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2020-12-12 08:57:07 +01:00 committed by lightningterror
parent cd70ba753e
commit f38c132efe
3 changed files with 3 additions and 15 deletions

View File

@ -173,7 +173,7 @@ s32 PADfreeze(int mode, freezeData* data)
Pad::stop_vibrate_all();
if (data->size != sizeof(PadPluginFreezeData) || pdata->version != PAD_SAVE_STATE_VERSION ||
strncmp(pdata->format, "OnePad", sizeof(pdata->format)))
strncmp(pdata->format, "LinPad", sizeof(pdata->format)))
return 0;
query = pdata->query;
@ -213,7 +213,7 @@ s32 PADfreeze(int mode, freezeData* data)
// - PCSX2 only saves port0 (save #1), then port1 (save #2)
memset(pdata, 0, data->size);
strncpy(pdata->format, "OnePad", sizeof(pdata->format));
strncpy(pdata->format, "LinPad", sizeof(pdata->format));
pdata->version = PAD_SAVE_STATE_VERSION;
pdata->query = query;

View File

@ -75,18 +75,6 @@ u8 QueryInfo::start_poll(int _port)
void Pad::set_mode(int _mode)
{
mode = _mode;
#if 0
fprintf(stdout, "OnePad: set new pad mode=");
if (mode == MODE_DIGITAL)
fprintf(stdout, "DIGITAL\n");
else if (mode == MODE_ANALOG)
fprintf(stdout, "ANALOG\n");
else if (mode == MODE_DS2_NATIVE)
fprintf(stdout, "DS2 NATIVE\n");
else
fprintf(stdout, "??? 0x%x\n", mode);
#endif
}
void Pad::set_vibrate(int motor, u8 val)

View File

@ -309,7 +309,7 @@ static std::string KeyName(int pad, int key, int keysym)
PADDialog::PADDialog()
: wxDialog(NULL, // Parent
wxID_ANY, // ID
_T("OnePad configuration"), // Title
_T("GamePad configuration"), // Title
wxDefaultPosition, // Position
wxSize(DEFAULT_WIDTH, DEFAULT_HEIGHT), // Width + Lenght
// Style