mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-12-05 17:11:09 +00:00
Implement the unloaded no-bitmap path for sceDiscMapGetPackageSize, returning SCE_DISC_MAP_ERROR_NO_BITMAP_INFO (0x81100004) and leaving outputs untouched before argument checks. Update the public declaration, definition, and test fixtures to use 64-bit outputs (uint64_t*) per firmware 13.42 module execution on x86-64. Replaces stalled #8647. Co-authored-by: Niko <nikobilger2000@gmail.com>
57 lines
1.6 KiB
C++
57 lines
1.6 KiB
C++
#include "prx/libc/include/general/ExportMacros.hpp"
|
|
#include "prx/libSceDiscMap/include/InventoryExports.hpp"
|
|
#include "prx/libSceDiscMap/include/Api.hpp"
|
|
#include <cstdint>
|
|
#include "SceTypes.hpp"
|
|
#include "prx/libc/include/General.hpp"
|
|
|
|
namespace {
|
|
|
|
constexpr std::int32_t SCE_DISC_MAP_ERROR_NO_BITMAP_INFO = static_cast<std::int32_t>(0x81100004);
|
|
|
|
}
|
|
|
|
extern "C" {
|
|
|
|
std::int32_t APS5_VABI sceDiscMapIsRequestOnHDD(const char* path, std::int64_t offset, std::int64_t size, std::int32_t* result) {
|
|
(void)path;
|
|
(void)offset;
|
|
(void)size;
|
|
(void)result;
|
|
return SCE_DISC_MAP_ERROR_NO_BITMAP_INFO;
|
|
}
|
|
|
|
APS5_EXPORT("ioKMruft1ek", sceDiscMapUnknown_ioKMruft1ek);
|
|
std::int32_t APS5_VABI sceDiscMapUnknown_ioKMruft1ek(const char* path, std::int64_t offset, std::int64_t size, std::uint64_t* flags, std::uint64_t* out1, std::uint64_t* out2) {
|
|
(void)path;
|
|
(void)offset;
|
|
(void)size;
|
|
(void)flags;
|
|
(void)out1;
|
|
(void)out2;
|
|
return SCE_DISC_MAP_ERROR_NO_BITMAP_INFO;
|
|
}
|
|
|
|
int APS5_VABI sceDiscMapGetPackageSize(std::int64_t fflags, std::uint64_t* ret1, std::uint64_t* ret2) {
|
|
(void)fflags;
|
|
(void)ret1;
|
|
(void)ret2;
|
|
return SCE_DISC_MAP_ERROR_NO_BITMAP_INFO;
|
|
}
|
|
|
|
}
|
|
|
|
extern "C" {
|
|
|
|
int APS5_VABI libSceDiscMapUnknown_5_plus_vOlukvkfg_nid_no_patch() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
}
|
|
APS5_EXPORT("5+vOlukvkfg", libSceDiscMapUnknown_5_plus_vOlukvkfg_nid_no_patch);
|
|
|
|
int APS5_VABI libSceDiscMapUnknown_fJgP_plus_wqifno_nid_no_patch() {
|
|
NotImplemented_nid_no_patch(__func__);
|
|
}
|
|
APS5_EXPORT("fJgP+wqifno", libSceDiscMapUnknown_fJgP_plus_wqifno_nid_no_patch);
|
|
|
|
}
|