WiiFlow_Lite/source/channel/nand_save.hpp
fix94.1 45441ded06 -BETA wiiflow saves ios settings on the NAND from now on, so
loading up wiiflow is much faster if you use force cIOS load,
you can actually delete, move, copy or whatever the save directly
from the system menu like a normal game save (may more things will
be done in the future this way)
2012-12-26 23:22:44 +00:00

45 lines
1.2 KiB
C++

/****************************************************************************
* Copyright (C) 2012 FIX94
*
* 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, either version 3 of the License, or
* (at your option) any later version.
*
* 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 for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/
#ifndef _NAND_SAVE_HPP_
#define _NAND_SAVE_HPP_
#include <ogcsys.h>
typedef struct _ios_settings_t
{
u8 cios;
bool use_cios;
} __attribute__((packed)) ios_settings_t;
class NandSave
{
public:
NandSave();
bool CheckSave();
void LoadIOS();
void SaveIOS(const ios_settings_t settings);
private:
s32 fd;
s32 ret;
bool loaded;
char ISFS_Path[ISFS_MAXPATH];
};
extern NandSave InternalSave;
#endif