mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 09:05:06 +01:00
45b39c2be0
-Readded the code to paths to be able to change the path where Wii and GC games are kept. But they really should just be kept in dev:/wbfs and dev:/games. -wiiflow_lite.ini changes under [GAMECUBE] are: removed video_setting= - was used to tell wiiflow when using DML or Nintendont to set cfg args for video mode. not needed anymore. dir_usb_games= - is now - gc_games_dir= with default of %s:/games similar to wii_games_dir dm_widescreen= - is now - widescreen= screenshot= is removed. was used for DML wiiu_widescreen= is added. but only used if on a Wii U -gameconfig2.ini changes as well. -NMM and DML is still used in theme ini files. may change in a commit soon but that means all themes have to be modified, a big pain in the butt. -language and help files will need to be updated to remove all DML and NMM crap. -and default names of images for some icons and btns need to be changed but for now left them as they are. -other minor changes. Most of it untested so I hope it all works, if not then repair commits will follow.
70 lines
2.4 KiB
C++
70 lines
2.4 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 _GC_HPP_
|
|
#define _GC_HPP_
|
|
|
|
#include <gccore.h>
|
|
|
|
// Nintendont
|
|
#include "nin_cfg.h"
|
|
#define NIN_CFG_PATH "nincfg.bin"
|
|
#define NIN_LOADER_PATH "%s:/apps/nintendont/boot.dol"
|
|
//const char *NINversionDate(NIN_LOADER_PATH);
|
|
|
|
bool Nintendont_Installed();
|
|
bool Nintendont_GetLoader();
|
|
void Nintendont_BootDisc(u8 emuMC, bool widescreen, bool usb_hid, bool native_ctl, bool deflicker);
|
|
void Nintendont_SetOptions(const char *game, const char *gameID, char *CheatPath, char *NewCheatPath, const char *partition,
|
|
bool cheats, u8 emuMC, u8 videomode, bool widescreen, bool usb_hid, bool native_ctl, bool deflicker, bool wiiu_widescreen, bool NIN_Debugger);
|
|
void Nintendont_WriteOptions();
|
|
|
|
// Devolution
|
|
#define DEVO_LOADER_PATH "%s/loader.bin"
|
|
|
|
typedef struct global_config
|
|
{
|
|
u32 signature;
|
|
u16 version;
|
|
u16 device_signature;
|
|
u32 memcard_cluster;
|
|
u32 disc1_cluster;
|
|
u32 disc2_cluster;
|
|
u32 options;
|
|
} gconfig;
|
|
|
|
// constant value for identification purposes
|
|
#define DEVO_CONFIG_SIG 0x3EF9DB23
|
|
// version may change when future options are added
|
|
#define DEVO_CONFIG_VERSION 0x0110
|
|
// option flags
|
|
#define DEVO_CONFIG_WIFILOG (1<<0)
|
|
#define DEVO_CONFIG_WIDE (1<<1)
|
|
#define DEVO_CONFIG_NOLED (1<<2)
|
|
|
|
bool DEVO_Installed(const char *path);
|
|
void DEVO_GetLoader(const char *path);
|
|
void DEVO_SetOptions(const char *isopath, const char *gameID,
|
|
bool memcard_emum, bool widescreen, bool activity_led, bool wifi);
|
|
void DEVO_Boot();
|
|
|
|
|
|
// General
|
|
void GC_SetVideoMode(u8 videomode, u8 loader);
|
|
void GC_SetLanguage(u8 lang, u8 loader);
|
|
|
|
#endif //_GC_HPP_
|