A few minor fixes + buildfix

This commit is contained in:
Henrik Rydgard committed 2012-11-10 23:44:14 +01:00
1 parent 54329ad560
commit 343b9435b9
3 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -512,7 +512,7 @@ std::vector<PSPFileInfo> ISOFileSystem::GetDirListing(std::string path)
{
TreeEntry *e = entry->children[i];
if(!strcmp(e->name, ".") || !strcmp(e->name, "..")) // do not include the relative entries in the list
if(!strcmp(e->name.c_str(), ".") || !strcmp(e->name.c_str(), "..")) // do not include the relative entries in the list
continue;
PSPFileInfo x;
+1
View File
@@ -37,6 +37,7 @@ const HLEFunction sceImpose[] =
{0x381bd9e7, 0, "sceImposeHomeButton"},
{0x24fd7bcf, 0, "sceImposeGetLanguageMode"},
{0x8c943191, &WrapU_UU<sceImposeGetBatteryIconStatus>, "sceImposeGetBatteryIconStatus"},
{0x72189C48, 0, "sceImposeSetUMDPopup"},
};
void Register_sceImpose()
+2 -2
View File
@@ -529,7 +529,7 @@ void PSPSetTexture()
match = false;
//TODO: Check more clut parameters, compute clut hash
if(match && (format >= GE_TFMT_CLUT4 || format <= GE_TFMT_CLUT32) &&
if(match && (format >= GE_TFMT_CLUT4 && format <= GE_TFMT_CLUT32) &&
(entry.clutformat != clutformat ||
entry.clutaddr != GetClutAddr(clutformat == GE_CMODE_32BIT_ABGR8888 ? 4 : 2) ||
entry.cluthash != Memory::Read_U32(entry.clutaddr)))
@@ -568,7 +568,7 @@ void PSPSetTexture()
entry.hash = *(u32*)texptr;
entry.format = format;
if(format >= GE_TFMT_CLUT4 || format <= GE_TFMT_CLUT32)
if(format >= GE_TFMT_CLUT4 && format <= GE_TFMT_CLUT32)
{
entry.clutformat = clutformat;
entry.clutaddr = GetClutAddr(clutformat == GE_CMODE_32BIT_ABGR8888 ? 4 : 2);