Bugfix, remove hack

This commit is contained in:
Henrik Rydgard committed 2012-12-21 23:55:19 +01:00
1 parent e42af096c8
commit 252845ecb6
5 files changed
+6 -2

No files matched your search

-1
View File
@@ -33,7 +33,6 @@ PSPSaveDialog::~PSPSaveDialog() {
u32 PSPSaveDialog::Init(int paramAddr)
{
return 0;
// Ignore if already running
if (status != SCE_UTILITY_STATUS_NONE && status != SCE_UTILITY_STATUS_SHUTDOWN)
{
+2 -1
View File
@@ -166,7 +166,7 @@ void sceGeUnsetCallback(u32 cbID) {
u32 sceGeSaveContext(u32 ctxAddr)
{
DEBUG_LOG(HLE, "sceGeSaveContext(%08x)", ctxAddr);
gpu->Flush();
if (sizeof(gstate) > 512 * 4)
{
ERROR_LOG(HLE, "AARGH! sizeof(gstate) has grown too large!");
@@ -187,6 +187,7 @@ u32 sceGeSaveContext(u32 ctxAddr)
u32 sceGeRestoreContext(u32 ctxAddr)
{
DEBUG_LOG(HLE, "sceGeRestoreContext(%08x)", ctxAddr);
gpu->Flush();
if (sizeof(gstate) > 512 * 4)
{
+2
View File
@@ -51,4 +51,6 @@ public:
// Internal hack to avoid interrupts from "PPGe" drawing (utility UI, etc)
virtual void EnableInterrupts(bool enable) = 0;
virtual void Flush() = 0;
};
+1
View File
@@ -78,6 +78,7 @@ void ReapplyGfxState()
{
if (!gpu)
return;
gpu->Flush();
// ShaderManager_DirtyShader();
// The commands are embedded in the command memory so we can just reexecute the words. Convenient.
// To be safe we pass 0xFFFFFFF as the diff.
+1
View File
@@ -41,6 +41,7 @@ public:
virtual void CopyDisplayToOutput() {}
virtual void UpdateStats();
virtual void InvalidateCache(u32 addr, int size);
virtual void Flush() {}
private:
bool ProcessDLQueue();