From a737f70caeadc222f7f92ff73cbf1fdbb27d5a04 Mon Sep 17 00:00:00 2001 From: TMaul Date: Thu, 6 Dec 2012 16:58:59 +0000 Subject: [PATCH] Fake scesupPreAcc Gets Dissidia Final Fantasy to title screen. We will need to make this one go away by getting PRX loading working properly I think. --- Core/CMakeLists.txt | 1 + Core/Core.vcxproj | 2 ++ Core/Core.vcxproj.filters | 6 ++++++ Core/HLE/HLETables.cpp | 2 ++ Core/HLE/sceOpenPSID.cpp | 2 +- Core/HLE/scesupPreAcc.cpp | 38 ++++++++++++++++++++++++++++++++++++++ Core/HLE/scesupPreAcc.h | 21 +++++++++++++++++++++ 7 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 Core/HLE/scesupPreAcc.cpp create mode 100644 Core/HLE/scesupPreAcc.h diff --git a/Core/CMakeLists.txt b/Core/CMakeLists.txt index 2eccf3734d..824acb84cd 100644 --- a/Core/CMakeLists.txt +++ b/Core/CMakeLists.txt @@ -54,6 +54,7 @@ set(SRCS HLE/sceSsl.cpp HLE/sceParseUri.cpp HLE/sceParseHttp.cpp + HLE/scesupPreAcc.cpp HW/MemoryStick.cpp FileSystems/BlockDevices.cpp FileSystems/ISOFileSystem.cpp diff --git a/Core/Core.vcxproj b/Core/Core.vcxproj index 26009c4320..9ded6c257a 100644 --- a/Core/Core.vcxproj +++ b/Core/Core.vcxproj @@ -162,6 +162,7 @@ + @@ -299,6 +300,7 @@ + diff --git a/Core/Core.vcxproj.filters b/Core/Core.vcxproj.filters index dec29d774c..4cddd043e7 100644 --- a/Core/Core.vcxproj.filters +++ b/Core/Core.vcxproj.filters @@ -315,6 +315,9 @@ HLE\Libraries + + HLE\Libraries + @@ -578,6 +581,9 @@ HLE\Libraries + + HLE\Libraries + diff --git a/Core/HLE/HLETables.cpp b/Core/HLE/HLETables.cpp index 6b99782d2f..ce63298216 100644 --- a/Core/HLE/HLETables.cpp +++ b/Core/HLE/HLETables.cpp @@ -51,6 +51,7 @@ #include "sceParseUri.h" #include "sceSsl.h" #include "sceParseHttp.h" +#include "scesupPreAcc.h" #define N(s) s @@ -271,6 +272,7 @@ void RegisterAllModules() { Register_sceParseUri(); Register_sceSsl(); Register_sceParseHttp(); + Register_scesupPreAcc(); for (int i = 0; i < numModules; i++) { diff --git a/Core/HLE/sceOpenPSID.cpp b/Core/HLE/sceOpenPSID.cpp index 41241440ba..60161dcb57 100644 --- a/Core/HLE/sceOpenPSID.cpp +++ b/Core/HLE/sceOpenPSID.cpp @@ -42,4 +42,4 @@ const HLEFunction sceOpenPSID[] = void Register_sceOpenPSID() { RegisterModule("sceOpenPSID", ARRAY_SIZE(sceOpenPSID), sceOpenPSID); -} \ No newline at end of file +} diff --git a/Core/HLE/scesupPreAcc.cpp b/Core/HLE/scesupPreAcc.cpp new file mode 100644 index 0000000000..564b656b39 --- /dev/null +++ b/Core/HLE/scesupPreAcc.cpp @@ -0,0 +1,38 @@ +// Copyright (c) 2012- PPSSPP Project. + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 2.0 or later versions. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License 2.0 for more details. + +// A copy of the GPL 2.0 should have been included with the program. +// If not, see http://www.gnu.org/licenses/ + +// Official git repository and contact information can be found at +// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. + +#include "HLE.h" + +#include "scesupPreAcc.h" + +const HLEFunction scesupPreAcc[] = +{ + {0x110e318b, 0, "scesupPreAcc_0x110e318b"}, + {0x13ae25b3, 0, "scesupPreAcc_0x13ae25b3"}, + {0x28c5f696, 0, "scesupPreAcc_0x28c5f696"}, + {0x348ba3e2, 0, "scesupPreAcc_0x348ba3e2"}, + {0x86debd66, 0, "scesupPreAcc_0x86debd66"}, + {0xa0eaf444, 0, "scesupPreAcc_0xa0eaf444"}, + {0xb03ff882, 0, "scesupPreAcc_0xb03ff882"}, + {0x2ec3f4d9, 0, "scesupPreAcc_0x2ec3f4d9"}, + +}; + +void Register_scesupPreAcc() +{ + RegisterModule("scesupPreAcc",ARRAY_SIZE(scesupPreAcc), scesupPreAcc ); +} diff --git a/Core/HLE/scesupPreAcc.h b/Core/HLE/scesupPreAcc.h new file mode 100644 index 0000000000..311e679bd8 --- /dev/null +++ b/Core/HLE/scesupPreAcc.h @@ -0,0 +1,21 @@ +// Copyright (c) 2012- PPSSPP Project. + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, version 2.0 or later versions. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License 2.0 for more details. + +// A copy of the GPL 2.0 should have been included with the program. +// If not, see http://www.gnu.org/licenses/ + +// Official git repository and contact information can be found at +// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. + +#pragma once + +void Register_scesupPreAcc(); +