Fixes #5779 with new PSPScreenShotDiag class

This commit is contained in:
raven02 committed 2014-04-30 19:28:05 +08:00
1 parent a5b27b659c
commit 8ed82f3d25
10 files changed
+148 -32

No files matched your search

+4 -26
View File
@@ -33,35 +33,13 @@ int PSPPlaceholderDialog::Init()
int PSPPlaceholderDialog::Update(int animSpeed)
{
//__UtilityUpdate();
if (status == SCE_UTILITY_STATUS_INITIALIZE)
{
if (status == SCE_UTILITY_STATUS_INITIALIZE) {
status = SCE_UTILITY_STATUS_RUNNING;
}
else if (status == SCE_UTILITY_STATUS_RUNNING)
{
//Check with JPCSPTrace log of Dream Club Portable
//But break Project Divx extand and Kenka Banchou Bros when take screenshot
//They are not call sceUtilityScreenshotContStart;
//status = SCE_UTILITY_STATUS_SCREENSHOT_UNKNOWN;
} else if (status == SCE_UTILITY_STATUS_RUNNING) {
status = SCE_UTILITY_STATUS_FINISHED;
}
else if (status == SCE_UTILITY_STATUS_FINISHED)
{
} else if (status == SCE_UTILITY_STATUS_FINISHED) {
status = SCE_UTILITY_STATUS_SHUTDOWN;
}
return 0;
}
int PSPPlaceholderDialog::ContStart()
{
// base on JPCSP http://code.google.com/p/jpcsp/source/detail?r=3381
// be initialized with sceUtilityScreenshotInitStart and the startupType
// parameter has to be PSP_UTILITY_SCREENSHOT_TYPE_CONT_AUTO, otherwise, an
// error is returned.
if (status != SCE_UTILITY_STATUS_SCREENSHOT_UNKNOWN)
return SCE_ERROR_UTILITY_INVALID_STATUS;
// Check with JPCSPTrace log of Dream Club Portable
status = SCE_UTILITY_STATUS_FINISHED;
return 0;
}