ctr_Repair/trunk/CardSaveData/common/savefile/savefile.h

42 lines
985 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef SAVEFILE_H_
#define SAVEFILE_H_
#include <wchar.h>
#include <string.h>
#include <nn/types.h>
//API使用してアーカイブ情報を取得
#define INFO_API_USE 1
//カードの変わりにシステムセーブを使用(API対応までの暫定)
//#define USE_SYS_SAVE 1
//SD保存
//#define BKUP_NOTMEM 1
int GetPosDelmLast(wchar_t *s,int top);
//情報ファイルのバージョン
#define INFO_VERSION 1
//SDバックアップに同梱する情報
//変更の際は後方互換とれるよう追加のみとする
typedef struct{
u32 DirEntry,FileEntry;
u32 DirCount,FileCount;
bool Dup;
u8 Ver;//バージョン
char Pcode[20];//product code save,exsaveクラスのPrdCodeサイズを下回らないこと
u8 padding[3];//パディング
}tArcInfo;
//パス名長 :SDK制限はアーカイブ名抜いて253文字
//文字列操作で多少オーバしても心配ないよう大きくとっておく
#define MAX_PATH_LENGTH 512
//パス取得時の階層上限
//メモリ食うので無駄に大きくしない、最短(例えば"/a")文字で128で足りる
#define MAX_LEVEL 128
#endif