Parse in UInt or big int fail to decode.

This commit is contained in:
Xele02
2013-02-20 00:29:28 +01:00
parent 804bd08374
commit d90a024fc6
4 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -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();
}
+2 -2
View File
@@ -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();
}
+1 -1
View File
@@ -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()
+9 -9
View File
@@ -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);