-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fw agnostic save mounting from https://github.com/hzhreal/PS4-save-utils , based on cecie * remove sandbox * integration
- Loading branch information
Showing
11 changed files
with
568 additions
and
1,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#ifndef SD_H | ||
#define SD_H | ||
|
||
#include <stdint.h> | ||
#include <stdbool.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define ENC_SEALEDKEY_LEN 0x60 | ||
#define DEC_SEALEDKEY_LEN 0x20 | ||
|
||
#define UNUSED(x) (void)(x) | ||
|
||
typedef struct { | ||
int blockSize; | ||
uint8_t idk[2]; | ||
} CreatePfsSaveDataOpt; | ||
|
||
typedef struct { | ||
bool readOnly; | ||
char *budgetid; | ||
} MountSaveDataOpt; | ||
|
||
typedef struct { | ||
bool dummy; | ||
} UmountSaveDataOpt; | ||
|
||
int loadPrivLibs(void); | ||
int generateSealedKey(uint8_t data[ENC_SEALEDKEY_LEN]); | ||
int decryptSealedKey(uint8_t enc_key[ENC_SEALEDKEY_LEN], uint8_t dec_key[DEC_SEALEDKEY_LEN]); | ||
int decryptSealedKeyAtPath(const char *keyPath, uint8_t decryptedSealedKey[DEC_SEALEDKEY_LEN]); | ||
int createSave(const char *folder, const char *saveName, int blocks); | ||
int mountSave(const char *folder, const char *saveName, const char *mountPath); | ||
int umountSave(const char *mountPath, int handle, bool ignoreErrors); | ||
uint16_t getMaxKeySet(void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // SD_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.