Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/nyx/nyx_gui/frontend/fe_emummc_tools.h
1476 views
1
/*
2
* Copyright (c) 2018 Rajko Stojadinovic
3
* Copyright (c) 2018 CTCaer
4
*
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms and conditions of the GNU General Public License,
7
* version 2, as published by the Free Software Foundation.
8
*
9
* This program is distributed in the hope it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
* more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef _FE_EMUMMC_TOOLS_H_
19
#define _FE_EMUMMC_TOOLS_H_
20
21
#include "gui.h"
22
23
typedef struct _emummc_cfg_t
24
{
25
int enabled;
26
u32 sector;
27
u16 id;
28
char *path;
29
char *nintendo_path;
30
} emummc_cfg_t;
31
32
void load_emummc_cfg(emummc_cfg_t *emu_info);
33
void save_emummc_cfg(u32 part_idx, u32 sector_start, const char *path);
34
void dump_emummc_file(emmc_tool_gui_t *gui);
35
void dump_emummc_raw(emmc_tool_gui_t *gui, int part_idx, u32 sector_start, u32 resized_count);
36
void update_emummc_base_folder(char *outFilename, u32 sdPathLen, u32 currPartIdx);
37
38
#endif
39
40