mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-30 15:14:18 +01:00
fac9452af2
this is now done on the fly by just selecting NAND as partition, of course this function is still completely disabled for neek users ;) -removed the ios and force cios load options from the ini so they are only settable in the wiiflow startup menu from now on, that should stop wiiflow with mixing up ini and nand save options -added a ini option to disable the source menu, use_source (enabled by default) -finally added a "Back" button to the startup menu
50 lines
1.3 KiB
C++
50 lines
1.3 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 LoadSettings();
|
|
void SaveIOS();
|
|
void SavePort(u8 port);
|
|
private:
|
|
void WriteFile(const char *file_name, u8 *content, u32 size);
|
|
s32 fd;
|
|
s32 ret;
|
|
bool loaded;
|
|
char ISFS_Path[ISFS_MAXPATH];
|
|
ios_settings_t ios_settings;
|
|
};
|
|
|
|
extern NandSave InternalSave;
|
|
extern bool cur_load;
|
|
extern u8 cur_ios;
|
|
|
|
#endif
|