ff7tk
1.2.0.13
Work with Final Fantasy 7 game data
|
#include <FF7SaveInfo.h>
Public Types | |
enum | FORMAT { FORMAT::UNKNOWN = -1, FORMAT::PSX = 0, FORMAT::PC = 1, FORMAT::VMC = 2, FORMAT::PSP = 3, FORMAT::PS3 = 4, FORMAT::DEX = 5, FORMAT::VGS = 6, FORMAT::SWITCH = 7, FORMAT::PGE = 8, FORMAT::PDA = 9 } |
Supported Data Types. More... | |
enum | PSXBLOCKTYPE : char { PSXBLOCKTYPE::BLOCK_EMPTY = '\xA0', PSXBLOCKTYPE::BLOCK_INUSE = '\x51', PSXBLOCKTYPE::BLOCK_DELETED = '\xA1', PSXBLOCKTYPE::BLOCK_MIDLINK = '\x52', PSXBLOCKTYPE::BLOCK_DELETED_MIDLINK = '\xA2', PSXBLOCKTYPE::BLOCK_ENDLINK = '\x53', PSXBLOCKTYPE::BLOCK_DELETED_ENDLINK = '\xA3' } |
Used to set the type of block on a PSX memory card (image) when creating the index. More... | |
enum | PSVINFO { PSVINFO::SAVETYPE, PSVINFO::SIZEDISPLAY, PSVINFO::SAVESIZE } |
Extra Header Info used for PSV format. More... | |
Static Public Member Functions | |
static FF7SaveInfo * | get () |
Get the FF7SaveInfo Instance. More... | |
static Q_INVOKABLE int | fileSize (FF7SaveInfo::FORMAT format) |
The Size of a Final Fantasy VII Save file. More... | |
static Q_INVOKABLE int | fileHeaderSize (FF7SaveInfo::FORMAT format) |
Size of the format's file header. More... | |
static Q_INVOKABLE int | slotHeaderSize (FF7SaveInfo::FORMAT format) |
Size of the format's slot header. More... | |
static Q_INVOKABLE int | slotFooterSize (FF7SaveInfo::FORMAT format) |
Size of the format's slot footer. More... | |
static Q_INVOKABLE int | slotCount (FF7SaveInfo::FORMAT format) |
Number of save slots in format. More... | |
static Q_INVOKABLE QByteArray | fileIdentifier (FF7SaveInfo::FORMAT format) |
Magic Numbers for Final Fantasy VII Save Files. More... | |
static Q_INVOKABLE QByteArray | fileHeader (FF7SaveInfo::FORMAT format) |
Standard File Header for Format. More... | |
static Q_INVOKABLE QByteArray | slotHeader (FF7SaveInfo::FORMAT format, int slot=0) |
Standard Slot Header for Format. More... | |
static Q_INVOKABLE QByteArray | slotFooter (FF7SaveInfo::FORMAT format) |
Standard Slot Footer for Format. More... | |
static Q_INVOKABLE QByteArray | signingKey (FF7SaveInfo::FORMAT format) |
Key Used to Sign The Format. More... | |
static Q_INVOKABLE int | extraPSVOffsets (FF7SaveInfo::PSVINFO info) |
Extra off set data for psv format. More... | |
static Q_INVOKABLE QByteArray | signingIV (FF7SaveInfo::FORMAT format) |
IV Used to Sign The Format. More... | |
static Q_INVOKABLE int | fileSeedOffset (FF7SaveInfo::FORMAT format) |
The offset for the seed for signed saves. More... | |
static Q_INVOKABLE int | fileSignatureOffset (FF7SaveInfo::FORMAT format) |
The offset for the signature for signed saves. More... | |
static Q_INVOKABLE int | fileSignatureSize (FF7SaveInfo::FORMAT format) |
The size for the signature for signed saves. More... | |
static Q_INVOKABLE QString | typeDescription (FF7SaveInfo::FORMAT format) |
Description of the File type. More... | |
static Q_INVOKABLE int | slotSize () |
Size of an FF7Slot. More... | |
static Q_INVOKABLE QRegularExpression | validNames (FF7SaveInfo::FORMAT format) |
Get a constructed RegularExpression to check for valid save name. More... | |
static Q_INVOKABLE QStringList | typeExtension (FF7SaveInfo::FORMAT format) |
Valid Extensions for the File type. More... | |
static Q_INVOKABLE QString | typeFilter (FF7SaveInfo::FORMAT format) |
Get a constructed filter string for use in save/ load dialogs. More... | |
static Q_INVOKABLE QString | knownTypesFilter () |
Get a constructed filter string for use in save/load Dialogs. More... | |
static Q_INVOKABLE bool | isTypePC (FF7SaveInfo::FORMAT format) |
Check if a format is using the PC format internally. More... | |
static Q_INVOKABLE bool | isTypeVMC (FF7SaveInfo::FORMAT format) |
Check if a format is a Virtual Memory card. More... | |
static Q_INVOKABLE bool | isTypeSSS (FF7SaveInfo::FORMAT format) |
Check if a format is a SingleSlot Save. More... | |
static Q_INVOKABLE int | vmcHeaderOffset (FF7SaveInfo::FORMAT format) |
mcHeaderOffset Retuns the offset of the vmc header. Valid only for VMC types saves. More... | |
static Q_INVOKABLE int | psxSaveNameOffset (FF7SaveInfo::FORMAT format) |
psxSaveNameOffset Return the offset where the psxSaveName starts. Valid only for PS3, PGE and PDA save formats. More... | |
static Q_INVOKABLE QByteArray | defaultSaveData () |
defaultSaveData Returns the default save data use by the stock kernel More... | |
|
strong |
|
strong |
Extra Header Info used for PSV format.
Enumerator | |
---|---|
SAVETYPE | Type of Save in the file, 0x14 for ps1 0x2C for ps2 |
SIZEDISPLAY | Size shown in XMB 4 bytes 00 20 00 00 |
SAVESIZE | Size of save data 4 bytes match SIZEDISPLAY's value |
|
strong |
|
static |
defaultSaveData Returns the default save data use by the stock kernel
|
static |
Extra off set data for psv format.
info | FF7SaveInfo::PSVINFO that describes the info type to return. |
|
static |
Standard File Header for Format.
format |
|
static |
Size of the format's file header.
format | : The Save Format you wish to know about |
|
static |
Magic Numbers for Final Fantasy VII Save Files.
format | : The Save Format |
|
static |
The offset for the seed for signed saves.
format |
|
static |
The offset for the signature for signed saves.
format |
|
static |
The size for the signature for signed saves.
format |
|
static |
The Size of a Final Fantasy VII Save file.
format | : The Save Format you wish to know about |
|
static |
Get the FF7SaveInfo Instance.
|
static |
Check if a format is using the PC format internally.
format | - Format to check |
|
static |
Check if a format is a SingleSlot Save.
format | - Format to check |
|
static |
Check if a format is a Virtual Memory card.
format | - Format to check |
|
static |
Get a constructed filter string for use in save/load Dialogs.
|
static |
psxSaveNameOffset Return the offset where the psxSaveName starts. Valid only for PS3, PGE and PDA save formats.
format | - Format to check |
|
static |
IV Used to Sign The Format.
format |
|
static |
Key Used to Sign The Format.
format |
|
static |
Number of save slots in format.
format | : The Save Format you wish to know about |
|
static |
Standard Slot Footer for Format.
format |
|
static |
Size of the format's slot footer.
format | : The Save Format you wish to know about |
|
static |
Standard Slot Header for Format.
format | |
slot | the slot value to use (PSX ICON) |
|
static |
Size of the format's slot header.
format | : The Save Format you wish to know about |
|
static |
Size of an FF7Slot.
|
static |
Description of the File type.
format |
|
static |
Valid Extensions for the File type.
format |
|
static |
Get a constructed filter string for use in save/ load dialogs.
format | the format you want info about |
|
static |
Get a constructed RegularExpression to check for valid save name.
format | the format you wish to check . |
|
static |
mcHeaderOffset Retuns the offset of the vmc header. Valid only for VMC types saves.
format | - Format to check |