mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Bugfix, remove hack
This commit is contained in:
1 parent
e42af096c8
commit
252845ecb6
5 files changed
+6
-2
No files matched your search
@@ -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
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
@@ -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.
|
||||
|
||||
@@ -41,6 +41,7 @@ public:
|
||||
virtual void CopyDisplayToOutput() {}
|
||||
virtual void UpdateStats();
|
||||
virtual void InvalidateCache(u32 addr, int size);
|
||||
virtual void Flush() {}
|
||||
|
||||
private:
|
||||
bool ProcessDLQueue();
|
||||
|
||||
Reference in new issue
Block a user