From d90a024fc62637214054c22814760e44305cd8bc Mon Sep 17 00:00:00 2001 From: Xele02 Date: Tue, 19 Feb 2013 23:34:00 +0100 Subject: [PATCH] Parse in UInt or big int fail to decode. --- Qt/ctrlmemview.cpp | 2 +- Qt/debugger_displaylist.cpp | 4 ++-- Qt/debugger_memory.cpp | 2 +- Qt/debugger_memorytex.cpp | 18 +++++++++--------- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Qt/ctrlmemview.cpp b/Qt/ctrlmemview.cpp index 0ebaa97775..98571d03d2 100644 --- a/Qt/ctrlmemview.cpp +++ b/Qt/ctrlmemview.cpp @@ -259,7 +259,7 @@ void CtrlMemView::Change() if (ok && !text.isEmpty()) { EmuThread_LockDraw(true); - Memory::WriteUnchecked_U32(text.toInt(0,16),selection); + Memory::WriteUnchecked_U32(text.toUInt(0,16),selection); EmuThread_LockDraw(false); redraw(); } diff --git a/Qt/debugger_displaylist.cpp b/Qt/debugger_displaylist.cpp index 9cbcadb07a..baf4d3824d 100644 --- a/Qt/debugger_displaylist.cpp +++ b/Qt/debugger_displaylist.cpp @@ -1822,7 +1822,7 @@ void Debugger_DisplayList::on_displayListData_customContextMenuRequested(const Q void Debugger_DisplayList::RunToDLPC() { - u32 addr = displayListDataSelected->text(0).toInt(0,16); + u32 addr = displayListDataSelected->text(0).toUInt(0,16); host->SetGPUStep(true, 2, addr); host->NextGPUStep(); } @@ -1845,7 +1845,7 @@ void Debugger_DisplayList::on_texturesList_customContextMenuRequested(const QPoi void Debugger_DisplayList::RunToDrawTex() { - u32 addr = textureDataSelected->text(0).toInt(0,16); + u32 addr = textureDataSelected->text(0).toUInt(0,16); host->SetGPUStep(true, 3, addr); host->NextGPUStep(); } diff --git a/Qt/debugger_memory.cpp b/Qt/debugger_memory.cpp index 3b5cdedf08..d044145f5d 100644 --- a/Qt/debugger_memory.cpp +++ b/Qt/debugger_memory.cpp @@ -51,7 +51,7 @@ void Debugger_Memory::Goto(u32 addr) void Debugger_Memory::on_editAddress_textChanged(const QString &arg1) { - ui->memView->gotoAddr(arg1.toInt(0,16) & ~3); + ui->memView->gotoAddr(arg1.toUInt(0,16) & ~3); } void Debugger_Memory::on_normalBtn_clicked() diff --git a/Qt/debugger_memorytex.cpp b/Qt/debugger_memorytex.cpp index cdbf4ae640..e3fbc38285 100644 --- a/Qt/debugger_memorytex.cpp +++ b/Qt/debugger_memorytex.cpp @@ -61,15 +61,15 @@ void Debugger_MemoryTex::on_readBtn_clicked() EmuThread_LockDraw(true); GPUgstate state; - state.texaddr[0] = ui->texaddr->text().toInt(0,16); - state.texbufwidth[0] = ui->texbufwidth0->text().toInt(0,16); - state.texformat = ui->texformat->text().toInt(0,16); - state.texsize[0] = ui->texsize->text().toInt(0,16); - state.texmode = ui->texmode->text().toInt(0,16); - state.clutformat = ui->clutformat->text().toInt(0,16); - state.clutaddr = ui->clutaddr->text().toInt(0,16); - state.clutaddrupper = ui->clutaddrupper->text().toInt(0,16); - state.loadclut = ui->loadclut->text().toInt(0,16); + state.texaddr[0] = ui->texaddr->text().toUInt(0,16); + state.texbufwidth[0] = ui->texbufwidth0->text().toUInt(0,16); + state.texformat = ui->texformat->text().toUInt(0,16); + state.texsize[0] = ui->texsize->text().toUInt(0,16); + state.texmode = ui->texmode->text().toUInt(0,16); + state.clutformat = ui->clutformat->text().toUInt(0,16); + state.clutaddr = ui->clutaddr->text().toUInt(0,16); + state.clutaddrupper = ui->clutaddrupper->text().toUInt(0,16); + state.loadclut = ui->loadclut->text().toUInt(0,16); int bufW = state.texbufwidth[0] & 0x3ff; int w = 1 << (state.texsize[0] & 0xf); int h = 1 << ((state.texsize[0]>>8) & 0xf);