mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Merge pull request #127 from lioncash/cheat-dlg-simplification
Make the base calculation in CheatsWindow simpler.
This commit is contained in:
commit
32e0544088
1 changed files with 2 additions and 1 deletions
|
@ -647,7 +647,8 @@ void CreateCodeDialog::PressOK(wxCommandEvent& ev)
|
||||||
}
|
}
|
||||||
|
|
||||||
long code_value;
|
long code_value;
|
||||||
if (!textctrl_value->GetValue().ToLong(&code_value, 10 + checkbox_use_hex->GetValue()*6))
|
int base = checkbox_use_hex->IsChecked() ? 16 : 10;
|
||||||
|
if (!textctrl_value->GetValue().ToLong(&code_value, base))
|
||||||
{
|
{
|
||||||
PanicAlertT("Invalid Value!");
|
PanicAlertT("Invalid Value!");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue