mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
Fix some variable hiding warnings.
This commit is contained in:
parent
c8716d9a02
commit
008052e6d6
@ -401,8 +401,8 @@ std::wstring PSPOskDialog::CombinationKorean(bool isInput)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
int tmp = GetIndex(kor_vowel, sw);
|
||||
if(tmp == -1) {
|
||||
int tmp3 = GetIndex(kor_vowel, sw);
|
||||
if (tmp3 == -1) {
|
||||
string += inputChars[i];
|
||||
if (inputChars.size() < FieldMaxLength()) {
|
||||
string += sw;
|
||||
@ -431,29 +431,29 @@ std::wstring PSPOskDialog::CombinationKorean(bool isInput)
|
||||
u16 code = 0xAC00 + i_value[0] * 0x24C + i_value[1] * 0x1C + kor_lconsSpr[tmp2 + 1];
|
||||
string += code;
|
||||
|
||||
code = 0xAC00 + kor_lconsSpr[tmp2 + 2] * 0x24C + tmp * 0x1C;
|
||||
code = 0xAC00 + kor_lconsSpr[tmp2 + 2] * 0x24C + tmp3 * 0x1C;
|
||||
string += code;
|
||||
|
||||
if(isInput == true) {
|
||||
i_value[0] = kor_lconsSpr[tmp2 + 2];
|
||||
i_value[1] = tmp;
|
||||
i_value[1] = tmp3;
|
||||
i_level = 2;
|
||||
}
|
||||
} else {
|
||||
int tmp2 = GetIndex(kor_cons, kor_lcons[i_value[2]]);
|
||||
int tmp4 = GetIndex(kor_cons, kor_lcons[i_value[2]]);
|
||||
|
||||
if(tmp2 != -1) {
|
||||
if (tmp4 != -1) {
|
||||
u16 code = 0xAC00 + i_value[0] * 0x24C + i_value[1] * 0x1C;
|
||||
|
||||
string += code;
|
||||
|
||||
code = 0xAC00 + tmp2 * 0x24C + tmp * 0x1C;
|
||||
code = 0xAC00 + tmp4 * 0x24C + tmp3 * 0x1C;
|
||||
|
||||
string += code;
|
||||
|
||||
if(isInput == true) {
|
||||
i_value[0] = tmp2;
|
||||
i_value[1] = tmp;
|
||||
i_value[0] = tmp4;
|
||||
i_value[1] = tmp3;
|
||||
i_level = 2;
|
||||
}
|
||||
} else {
|
||||
|
@ -558,7 +558,6 @@ PSPFileInfo VirtualDiscFileSystem::GetFileInfo(std::string filename) {
|
||||
|
||||
x.size = File::GetSize(fullName);
|
||||
|
||||
int fileIndex = getFileListIndex(filename);
|
||||
x.startSector = fileList[fileIndex].firstBlock;
|
||||
x.numSectors = (x.size+2047)/2048;
|
||||
|
||||
|
@ -664,7 +664,6 @@ u32 sceKernelReferEventFlagStatus(SceUID id, u32 statusPtr)
|
||||
if (!Memory::IsValidAddress(statusPtr))
|
||||
return -1;
|
||||
|
||||
u32 error;
|
||||
for (auto iter = e->waitingThreads.begin(); iter != e->waitingThreads.end(); ++iter)
|
||||
{
|
||||
SceUID waitID = __KernelGetWaitID(iter->tid, WAITTYPE_EVENTFLAG, error);
|
||||
|
@ -1228,7 +1228,6 @@ int sceKernelReferVplStatus(SceUID uid, u32 infoPtr)
|
||||
{
|
||||
DEBUG_LOG(HLE, "sceKernelReferVplStatus(%i, %08x)", uid, infoPtr);
|
||||
|
||||
u32 error;
|
||||
for (auto iter = vpl->waitingThreads.begin(); iter != vpl->waitingThreads.end(); ++iter)
|
||||
{
|
||||
SceUID waitID = __KernelGetWaitID(iter->threadID, WAITTYPE_VPL, error);
|
||||
|
@ -694,7 +694,6 @@ int sceKernelReferMutexStatus(SceUID id, u32 infoAddr)
|
||||
// Don't write if the size is 0. Anything else is A-OK, though, apparently.
|
||||
if (Memory::Read_U32(infoAddr) != 0)
|
||||
{
|
||||
u32 error;
|
||||
for (auto iter = m->waitingThreads.begin(); iter != m->waitingThreads.end(); ++iter)
|
||||
{
|
||||
SceUID waitID = __KernelGetWaitID(*iter, WAITTYPE_MUTEX, error);
|
||||
@ -1153,7 +1152,6 @@ int __KernelReferLwMutexStatus(SceUID uid, u32 infoPtr)
|
||||
{
|
||||
auto workarea = m->nm.workarea;
|
||||
|
||||
u32 error;
|
||||
for (auto iter = m->waitingThreads.begin(); iter != m->waitingThreads.end(); ++iter)
|
||||
{
|
||||
SceUID waitID = __KernelGetWaitID(*iter, WAITTYPE_LWMUTEX, error);
|
||||
|
@ -333,7 +333,6 @@ int sceKernelReferSemaStatus(SceUID id, u32 infoPtr)
|
||||
if (!Memory::IsValidAddress(infoPtr))
|
||||
return -1;
|
||||
|
||||
u32 error;
|
||||
for (auto iter = s->waitingThreads.begin(); iter != s->waitingThreads.end(); ++iter)
|
||||
{
|
||||
SceUID waitID = __KernelGetWaitID(*iter, WAITTYPE_SEMA, error);
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include <map>
|
||||
|
||||
// "Go Sudoku" is a good way to test this code...
|
||||
const int size = 2048;
|
||||
const int PSMF_VIDEO_STREAM_ID = 0xE0;
|
||||
const int PSMF_AUDIO_STREAM_ID = 0xBD;
|
||||
const int PSMF_AVC_STREAM = 0;
|
||||
|
@ -271,9 +271,9 @@ void *TextureCache::UnswizzleFromMem(u32 texaddr, u32 bufw, u32 bytesPerPixel, u
|
||||
u32 ydest = 0;
|
||||
if (rowWidth >= 16) {
|
||||
const u32 *src = (u32 *) Memory::GetPointer(texaddr);
|
||||
u32 *ydest = tmpTexBuf32.data();
|
||||
u32 *ydestp = tmpTexBuf32.data();
|
||||
for (int by = 0; by < byc; by++) {
|
||||
u32 *xdest = ydest;
|
||||
u32 *xdest = ydestp;
|
||||
for (int bx = 0; bx < bxc; bx++) {
|
||||
u32 *dest = xdest;
|
||||
for (int n = 0; n < 8; n++) {
|
||||
@ -283,7 +283,7 @@ void *TextureCache::UnswizzleFromMem(u32 texaddr, u32 bufw, u32 bytesPerPixel, u
|
||||
}
|
||||
xdest += 4;
|
||||
}
|
||||
ydest += (rowWidth * 8) / 4;
|
||||
ydestp += (rowWidth * 8) / 4;
|
||||
}
|
||||
} else if (rowWidth == 8) {
|
||||
const u32 *src = (u32 *) Memory::GetPointer(texaddr);
|
||||
|
Loading…
Reference in New Issue
Block a user