[Glide64] Remove wxString usage from Glide64/rdp.cpp

This commit is contained in:
zilmar 2016-01-21 06:09:35 +11:00
parent 7a0c017571
commit 80cd85b9a9
1 changed files with 10 additions and 11 deletions

View File

@ -47,6 +47,7 @@
#include "TexBuffer.h"
#include "FBtoScreen.h"
#include "CRC.h"
#include <Common/StdString.h>
const int NumOfFormats = 3;
SCREEN_SHOT_FORMAT ScreenShotFormats[NumOfFormats] = { { wxT("BMP"), wxT("bmp"), wxBITMAP_TYPE_BMP }, { wxT("PNG"), wxT("png"), wxBITMAP_TYPE_PNG }, { wxT("JPEG"), wxT("jpeg"), wxBITMAP_TYPE_JPEG } };
@ -312,14 +313,12 @@ void microcheck()
d = ((char*)gfx.RDRAM)[i^3];
ucf.write (&d, 1);
}
ucf.close ();
ucf.close();
#endif
FRDP("ucode = %08lx\n", uc_crc);
wxString str;
str.Printf(wxT("%08lx"), uc_crc);
RegisterSetting(Set_ucodeLookup, Data_DWORD_RDB_Setting, str, "ucode", (unsigned int)-2, NULL);
RegisterSetting(Set_ucodeLookup, Data_DWORD_RDB_Setting, stdstr_f(wxT("%08lx"), uc_crc).c_str(), "ucode", (unsigned int)-2, NULL);
int uc = GetSetting(Set_ucodeLookup);
if (uc == -2 && ucode_error_report)
@ -327,8 +326,7 @@ void microcheck()
settings.ucode = GetSetting(Set_ucode);
ReleaseGfx();
str.Printf(_T("Error: uCode crc not found in INI, using currently selected uCode\n\n%08lx"), uc_crc);
wxMessageBox(str, _T("Error"), wxOK | wxICON_EXCLAMATION, GFXWindow);
wxMessageBox(stdstr_f("Error: uCode crc not found in INI, using currently selected uCode\n\n%08lx", uc_crc).c_str(), "Error", wxOK | wxICON_EXCLAMATION, GFXWindow);
ucode_error_report = FALSE; // don't report any more ucode errors from this game
}
@ -337,8 +335,7 @@ void microcheck()
settings.ucode = GetSetting(Set_ucode);
ReleaseGfx();
str.Printf(_T("Error: Unsupported uCode!\n\ncrc: %08lx"), uc_crc);
wxMessageBox(str, _T("Error"), wxOK | wxICON_EXCLAMATION, GFXWindow);
wxMessageBox(stdstr_f("Error: Unsupported uCode!\n\ncrc: %08lx", uc_crc).c_str(), "Error", wxOK | wxICON_EXCLAMATION, GFXWindow);
ucode_error_report = FALSE; // don't report any more ucode errors from this game
}
@ -353,8 +350,10 @@ void microcheck()
rdp.persp_supported = FALSE;
}
else if (settings.texture_correction)
{
rdp.persp_supported = TRUE;
}
}
}
static uint32_t d_ul_x, d_ul_y, d_lr_x, d_lr_y;
@ -601,7 +600,7 @@ EXPORT void CALL ProcessDList(void)
{
hhkLowLevelKybd = SetWindowsHookEx(WH_KEYBOARD_LL,
LowLevelKeyboardProc, hInstance, 0);
}
}
#endif
LOG("ProcessDList ()\n");
@ -822,7 +821,7 @@ EXPORT void CALL ProcessDList(void)
CI_SET = FALSE;
}
LRDP("ProcessDList end\n");
}
}
// undef - undefined instruction, always ignore
static void undef()