mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 14:19:55 -06:00
* remove more Config dependencies from the core
* also use less shitty strings
This commit is contained in:
@ -28,11 +28,6 @@ namespace Config
|
|||||||
|
|
||||||
const char* kConfigFile = "melonDS.ini";
|
const char* kConfigFile = "melonDS.ini";
|
||||||
|
|
||||||
int ExternalBIOSEnable;
|
|
||||||
char BIOS9Path[1024];
|
|
||||||
char BIOS7Path[1024];
|
|
||||||
char FirmwarePath[1024];
|
|
||||||
|
|
||||||
char FirmwareUsername[64];
|
char FirmwareUsername[64];
|
||||||
int FirmwareLanguage;
|
int FirmwareLanguage;
|
||||||
bool FirmwareOverrideSettings;
|
bool FirmwareOverrideSettings;
|
||||||
@ -41,21 +36,11 @@ int FirmwareBirthdayDay;
|
|||||||
int FirmwareFavouriteColour;
|
int FirmwareFavouriteColour;
|
||||||
char FirmwareMessage[1024];
|
char FirmwareMessage[1024];
|
||||||
|
|
||||||
char DSiBIOS9Path[1024];
|
|
||||||
char DSiBIOS7Path[1024];
|
|
||||||
char DSiFirmwarePath[1024];
|
|
||||||
char DSiNANDPath[1024];
|
|
||||||
|
|
||||||
int RandomizeMAC;
|
int RandomizeMAC;
|
||||||
int AudioBitrate;
|
int AudioBitrate;
|
||||||
|
|
||||||
ConfigEntry ConfigFile[] =
|
ConfigEntry ConfigFile[] =
|
||||||
{
|
{
|
||||||
{"ExternalBIOSEnable", 0, &ExternalBIOSEnable, 0, NULL, 0},
|
|
||||||
{"BIOS9Path", 1, BIOS9Path, 0, "", 1023},
|
|
||||||
{"BIOS7Path", 1, BIOS7Path, 0, "", 1023},
|
|
||||||
{"FirmwarePath", 1, FirmwarePath, 0, "", 1023},
|
|
||||||
|
|
||||||
{"FirmwareUsername", 1, FirmwareUsername, 0, "melonDS", 63},
|
{"FirmwareUsername", 1, FirmwareUsername, 0, "melonDS", 63},
|
||||||
{"FirmwareLanguage", 0, &FirmwareLanguage, 1, NULL, 0},
|
{"FirmwareLanguage", 0, &FirmwareLanguage, 1, NULL, 0},
|
||||||
{"FirmwareOverrideSettings", 0, &FirmwareOverrideSettings, false, NULL, 0},
|
{"FirmwareOverrideSettings", 0, &FirmwareOverrideSettings, false, NULL, 0},
|
||||||
@ -64,11 +49,6 @@ ConfigEntry ConfigFile[] =
|
|||||||
{"FirmwareFavouriteColour", 0, &FirmwareFavouriteColour, 0, NULL, 0},
|
{"FirmwareFavouriteColour", 0, &FirmwareFavouriteColour, 0, NULL, 0},
|
||||||
{"FirmwareMessage", 1, FirmwareMessage, 0, "", 1023},
|
{"FirmwareMessage", 1, FirmwareMessage, 0, "", 1023},
|
||||||
|
|
||||||
{"DSiBIOS9Path", 1, DSiBIOS9Path, 0, "", 1023},
|
|
||||||
{"DSiBIOS7Path", 1, DSiBIOS7Path, 0, "", 1023},
|
|
||||||
{"DSiFirmwarePath", 1, DSiFirmwarePath, 0, "", 1023},
|
|
||||||
{"DSiNANDPath", 1, DSiNANDPath, 0, "", 1023},
|
|
||||||
|
|
||||||
{"RandomizeMAC", 0, &RandomizeMAC, 0, NULL, 0},
|
{"RandomizeMAC", 0, &RandomizeMAC, 0, NULL, 0},
|
||||||
{"AudioBitrate", 0, &AudioBitrate, 0, NULL, 0},
|
{"AudioBitrate", 0, &AudioBitrate, 0, NULL, 0},
|
||||||
|
|
||||||
|
10
src/Config.h
10
src/Config.h
@ -41,11 +41,6 @@ bool HasConfigFile(const char* fileName);
|
|||||||
void Load();
|
void Load();
|
||||||
void Save();
|
void Save();
|
||||||
|
|
||||||
extern int ExternalBIOSEnable;
|
|
||||||
extern char BIOS9Path[1024];
|
|
||||||
extern char BIOS7Path[1024];
|
|
||||||
extern char FirmwarePath[1024];
|
|
||||||
|
|
||||||
extern char FirmwareUsername[64];
|
extern char FirmwareUsername[64];
|
||||||
extern int FirmwareLanguage;
|
extern int FirmwareLanguage;
|
||||||
extern bool FirmwareOverrideSettings;
|
extern bool FirmwareOverrideSettings;
|
||||||
@ -54,11 +49,6 @@ extern int FirmwareBirthdayDay;
|
|||||||
extern int FirmwareFavouriteColour;
|
extern int FirmwareFavouriteColour;
|
||||||
extern char FirmwareMessage[1024];
|
extern char FirmwareMessage[1024];
|
||||||
|
|
||||||
extern char DSiBIOS9Path[1024];
|
|
||||||
extern char DSiBIOS7Path[1024];
|
|
||||||
extern char DSiFirmwarePath[1024];
|
|
||||||
extern char DSiNANDPath[1024];
|
|
||||||
|
|
||||||
extern int RandomizeMAC;
|
extern int RandomizeMAC;
|
||||||
extern int AudioBitrate;
|
extern int AudioBitrate;
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include "Config.h"
|
|
||||||
#include "NDS.h"
|
#include "NDS.h"
|
||||||
#include "DSi.h"
|
#include "DSi.h"
|
||||||
#include "ARM.h"
|
#include "ARM.h"
|
||||||
@ -605,7 +604,7 @@ bool LoadBIOS()
|
|||||||
memset(ARM9iBIOS, 0, 0x10000);
|
memset(ARM9iBIOS, 0, 0x10000);
|
||||||
memset(ARM7iBIOS, 0, 0x10000);
|
memset(ARM7iBIOS, 0, 0x10000);
|
||||||
|
|
||||||
f = Platform::OpenLocalFile(Config::DSiBIOS9Path, "rb");
|
f = Platform::OpenLocalFile(Platform::GetConfigString(Platform::DSi_BIOS9Path), "rb");
|
||||||
if (!f)
|
if (!f)
|
||||||
{
|
{
|
||||||
printf("ARM9i BIOS not found\n");
|
printf("ARM9i BIOS not found\n");
|
||||||
@ -622,7 +621,7 @@ bool LoadBIOS()
|
|||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
f = Platform::OpenLocalFile(Config::DSiBIOS7Path, "rb");
|
f = Platform::OpenLocalFile(Platform::GetConfigString(Platform::DSi_BIOS7Path), "rb");
|
||||||
if (!f)
|
if (!f)
|
||||||
{
|
{
|
||||||
printf("ARM7i BIOS not found\n");
|
printf("ARM7i BIOS not found\n");
|
||||||
|
@ -490,9 +490,9 @@ void Reset()
|
|||||||
// DS BIOSes are always loaded, even in DSi mode
|
// DS BIOSes are always loaded, even in DSi mode
|
||||||
// we need them for DS-compatible mode
|
// we need them for DS-compatible mode
|
||||||
|
|
||||||
if (Config::ExternalBIOSEnable)
|
if (Platform::GetConfigBool(Platform::ExternalBIOSEnable))
|
||||||
{
|
{
|
||||||
f = Platform::OpenLocalFile(Config::BIOS9Path, "rb");
|
f = Platform::OpenLocalFile(Platform::GetConfigString(Platform::BIOS9Path), "rb");
|
||||||
if (!f)
|
if (!f)
|
||||||
{
|
{
|
||||||
printf("ARM9 BIOS not found\n");
|
printf("ARM9 BIOS not found\n");
|
||||||
@ -509,7 +509,7 @@ void Reset()
|
|||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
f = Platform::OpenLocalFile(Config::BIOS7Path, "rb");
|
f = Platform::OpenLocalFile(Platform::GetConfigString(Platform::BIOS7Path), "rb");
|
||||||
if (!f)
|
if (!f)
|
||||||
{
|
{
|
||||||
printf("ARM7 BIOS not found\n");
|
printf("ARM7 BIOS not found\n");
|
||||||
|
@ -36,11 +36,24 @@ void StopEmu();
|
|||||||
|
|
||||||
enum ConfigEntry
|
enum ConfigEntry
|
||||||
{
|
{
|
||||||
|
#ifdef JIT_ENABLED
|
||||||
JIT_Enable,
|
JIT_Enable,
|
||||||
JIT_MaxBlockSize,
|
JIT_MaxBlockSize,
|
||||||
JIT_LiteralOptimizations,
|
JIT_LiteralOptimizations,
|
||||||
JIT_BranchOptimizations,
|
JIT_BranchOptimizations,
|
||||||
JIT_FastMemory,
|
JIT_FastMemory,
|
||||||
|
#endif
|
||||||
|
|
||||||
|
ExternalBIOSEnable,
|
||||||
|
|
||||||
|
BIOS9Path,
|
||||||
|
BIOS7Path,
|
||||||
|
FirmwarePath,
|
||||||
|
|
||||||
|
DSi_BIOS9Path,
|
||||||
|
DSi_BIOS7Path,
|
||||||
|
DSi_FirmwarePath,
|
||||||
|
DSi_NANDPath,
|
||||||
|
|
||||||
DLDI_Enable,
|
DLDI_Enable,
|
||||||
DLDI_ImagePath,
|
DLDI_ImagePath,
|
||||||
@ -79,11 +92,11 @@ std::string GetConfigString(ConfigEntry entry);
|
|||||||
// Looks in the user's data directory first, then the system's.
|
// Looks in the user's data directory first, then the system's.
|
||||||
// If on Windows or a portable UNIX build, this simply calls OpenLocalFile().
|
// If on Windows or a portable UNIX build, this simply calls OpenLocalFile().
|
||||||
|
|
||||||
FILE* OpenFile(const char* path, const char* mode, bool mustexist=false);
|
FILE* OpenFile(std::string path, std::string mode, bool mustexist=false);
|
||||||
FILE* OpenLocalFile(const char* path, const char* mode);
|
FILE* OpenLocalFile(std::string path, std::string mode);
|
||||||
FILE* OpenDataFile(const char* path);
|
FILE* OpenDataFile(std::string path);
|
||||||
|
|
||||||
inline bool FileExists(const char* name)
|
inline bool FileExists(std::string name)
|
||||||
{
|
{
|
||||||
FILE* f = OpenFile(name, "rb");
|
FILE* f = OpenFile(name, "rb");
|
||||||
if (!f) return false;
|
if (!f) return false;
|
||||||
@ -91,7 +104,7 @@ inline bool FileExists(const char* name)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool LocalFileExists(const char* name)
|
inline bool LocalFileExists(std::string name)
|
||||||
{
|
{
|
||||||
FILE* f = OpenLocalFile(name, "rb");
|
FILE* f = OpenLocalFile(name, "rb");
|
||||||
if (!f) return false;
|
if (!f) return false;
|
||||||
|
16
src/SPI.cpp
16
src/SPI.cpp
@ -34,7 +34,7 @@
|
|||||||
namespace SPI_Firmware
|
namespace SPI_Firmware
|
||||||
{
|
{
|
||||||
|
|
||||||
char FirmwarePath[1024];
|
std::string FirmwarePath;
|
||||||
u8* Firmware;
|
u8* Firmware;
|
||||||
u32 FirmwareLength;
|
u32 FirmwareLength;
|
||||||
u32 FirmwareMask;
|
u32 FirmwareMask;
|
||||||
@ -83,8 +83,8 @@ bool VerifyCRC16(u32 start, u32 offset, u32 len, u32 crcoffset)
|
|||||||
|
|
||||||
bool Init()
|
bool Init()
|
||||||
{
|
{
|
||||||
memset(FirmwarePath, 0, sizeof(FirmwarePath));
|
FirmwarePath = "";
|
||||||
Firmware = NULL;
|
Firmware = nullptr;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,11 +147,7 @@ void LoadFirmwareFromFile(FILE* f)
|
|||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
// take a backup
|
// take a backup
|
||||||
char fwBackupPath[sizeof(FirmwarePath) + 4];
|
std::string fwBackupPath = FirmwarePath + ".bak";
|
||||||
int fplen = strlen(FirmwarePath);
|
|
||||||
strcpy(&fwBackupPath[0], FirmwarePath);
|
|
||||||
strncpy(&fwBackupPath[fplen], ".bak", sizeof(fwBackupPath) - fplen);
|
|
||||||
fwBackupPath[fplen+4] = '\0';
|
|
||||||
f = Platform::OpenLocalFile(fwBackupPath, "rb");
|
f = Platform::OpenLocalFile(fwBackupPath, "rb");
|
||||||
if (!f)
|
if (!f)
|
||||||
{
|
{
|
||||||
@ -203,9 +199,9 @@ void Reset()
|
|||||||
Firmware = NULL;
|
Firmware = NULL;
|
||||||
|
|
||||||
if (NDS::ConsoleType == 1)
|
if (NDS::ConsoleType == 1)
|
||||||
strncpy(FirmwarePath, Config::DSiFirmwarePath, sizeof(FirmwarePath) - 1);
|
FirmwarePath = Platform::GetConfigString(Platform::DSi_FirmwarePath);
|
||||||
else
|
else
|
||||||
strncpy(FirmwarePath, Config::FirmwarePath, sizeof(FirmwarePath) - 1);
|
FirmwarePath = Platform::GetConfigString(Platform::FirmwarePath);
|
||||||
|
|
||||||
FILE* f = Platform::OpenLocalFile(FirmwarePath, "rb");
|
FILE* f = Platform::OpenLocalFile(FirmwarePath, "rb");
|
||||||
if (!f)
|
if (!f)
|
||||||
|
@ -26,6 +26,17 @@ extern int ConsoleType;
|
|||||||
extern int DirectBoot;
|
extern int DirectBoot;
|
||||||
extern int SavestateRelocSRAM;
|
extern int SavestateRelocSRAM;
|
||||||
|
|
||||||
|
extern int ExternalBIOSEnable;
|
||||||
|
|
||||||
|
extern char BIOS9Path[1024];
|
||||||
|
extern char BIOS7Path[1024];
|
||||||
|
extern char FirmwarePath[1024];
|
||||||
|
|
||||||
|
extern char DSiBIOS9Path[1024];
|
||||||
|
extern char DSiBIOS7Path[1024];
|
||||||
|
extern char DSiFirmwarePath[1024];
|
||||||
|
extern char DSiNANDPath[1024];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -43,6 +43,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <QStandardPaths>
|
#include <QStandardPaths>
|
||||||
|
#include <QString>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
#include <QSemaphore>
|
#include <QSemaphore>
|
||||||
@ -133,7 +134,9 @@ int GetConfigInt(ConfigEntry entry)
|
|||||||
|
|
||||||
switch (entry)
|
switch (entry)
|
||||||
{
|
{
|
||||||
|
#ifdef JIT_ENABLED
|
||||||
case JIT_MaxBlockSize: return Config::JIT_MaxBlockSize;
|
case JIT_MaxBlockSize: return Config::JIT_MaxBlockSize;
|
||||||
|
#endif
|
||||||
|
|
||||||
case DLDI_ImageSize: return imgsizes[Config::DLDISize];
|
case DLDI_ImageSize: return imgsizes[Config::DLDISize];
|
||||||
|
|
||||||
@ -147,10 +150,14 @@ bool GetConfigBool(ConfigEntry entry)
|
|||||||
{
|
{
|
||||||
switch (entry)
|
switch (entry)
|
||||||
{
|
{
|
||||||
|
#ifdef JIT_ENABLED
|
||||||
case JIT_Enable: return Config::JIT_Enable != 0;
|
case JIT_Enable: return Config::JIT_Enable != 0;
|
||||||
case JIT_LiteralOptimizations: return Config::JIT_LiteralOptimisations != 0;
|
case JIT_LiteralOptimizations: return Config::JIT_LiteralOptimisations != 0;
|
||||||
case JIT_BranchOptimizations: return Config::JIT_BranchOptimisations != 0;
|
case JIT_BranchOptimizations: return Config::JIT_BranchOptimisations != 0;
|
||||||
case JIT_FastMemory: return Config::JIT_FastMemory != 0;
|
case JIT_FastMemory: return Config::JIT_FastMemory != 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
case ExternalBIOSEnable: return Config::ExternalBIOSEnable != 0;
|
||||||
|
|
||||||
case DLDI_Enable: return Config::DLDIEnable != 0;
|
case DLDI_Enable: return Config::DLDIEnable != 0;
|
||||||
case DLDI_ReadOnly: return Config::DLDIReadOnly != 0;
|
case DLDI_ReadOnly: return Config::DLDIReadOnly != 0;
|
||||||
@ -168,6 +175,15 @@ std::string GetConfigString(ConfigEntry entry)
|
|||||||
{
|
{
|
||||||
switch (entry)
|
switch (entry)
|
||||||
{
|
{
|
||||||
|
case BIOS9Path: return Config::BIOS9Path;
|
||||||
|
case BIOS7Path: return Config::BIOS7Path;
|
||||||
|
case FirmwarePath: return Config::FirmwarePath;
|
||||||
|
|
||||||
|
case DSi_BIOS9Path: return Config::DSiBIOS9Path;
|
||||||
|
case DSi_BIOS7Path: return Config::DSiBIOS7Path;
|
||||||
|
case DSi_FirmwarePath: return Config::DSiFirmwarePath;
|
||||||
|
case DSi_NANDPath: return Config::DSiNANDPath;
|
||||||
|
|
||||||
case DLDI_ImagePath: return Config::DLDISDPath;
|
case DLDI_ImagePath: return Config::DLDISDPath;
|
||||||
case DLDI_FolderPath: return Config::DLDIFolderPath;
|
case DLDI_FolderPath: return Config::DLDIFolderPath;
|
||||||
|
|
||||||
@ -179,9 +195,9 @@ std::string GetConfigString(ConfigEntry entry)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FILE* OpenFile(const char* path, const char* mode, bool mustexist)
|
FILE* OpenFile(std::string path, std::string mode, bool mustexist)
|
||||||
{
|
{
|
||||||
QFile f(path);
|
QFile f(path.c_str());
|
||||||
|
|
||||||
if (mustexist && !f.exists())
|
if (mustexist && !f.exists())
|
||||||
{
|
{
|
||||||
@ -189,11 +205,11 @@ FILE* OpenFile(const char* path, const char* mode, bool mustexist)
|
|||||||
}
|
}
|
||||||
|
|
||||||
QIODevice::OpenMode qmode;
|
QIODevice::OpenMode qmode;
|
||||||
if (strlen(mode) > 1 && mode[0] == 'r' && mode[1] == '+')
|
if (mode.length() > 1 && mode[0] == 'r' && mode[1] == '+')
|
||||||
{
|
{
|
||||||
qmode = QIODevice::OpenModeFlag::ReadWrite;
|
qmode = QIODevice::OpenModeFlag::ReadWrite;
|
||||||
}
|
}
|
||||||
else if (strlen(mode) > 1 && mode[0] == 'w' && mode[1] == '+')
|
else if (mode.length() > 1 && mode[0] == 'w' && mode[1] == '+')
|
||||||
{
|
{
|
||||||
qmode = QIODevice::OpenModeFlag::Truncate | QIODevice::OpenModeFlag::ReadWrite;
|
qmode = QIODevice::OpenModeFlag::Truncate | QIODevice::OpenModeFlag::ReadWrite;
|
||||||
}
|
}
|
||||||
@ -207,36 +223,36 @@ FILE* OpenFile(const char* path, const char* mode, bool mustexist)
|
|||||||
}
|
}
|
||||||
|
|
||||||
f.open(qmode);
|
f.open(qmode);
|
||||||
FILE* file = fdopen(dup(f.handle()), mode);
|
FILE* file = fdopen(dup(f.handle()), mode.c_str());
|
||||||
f.close();
|
f.close();
|
||||||
|
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
||||||
FILE* OpenLocalFile(const char* path, const char* mode)
|
FILE* OpenLocalFile(std::string path, std::string mode)
|
||||||
{
|
{
|
||||||
QDir dir(path);
|
QDir dir(path.c_str());
|
||||||
QString fullpath;
|
QString fullpath;
|
||||||
|
|
||||||
if (dir.isAbsolute())
|
if (dir.isAbsolute())
|
||||||
{
|
{
|
||||||
// If it's an absolute path, just open that.
|
// If it's an absolute path, just open that.
|
||||||
fullpath = path;
|
fullpath = path.c_str();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef PORTABLE
|
#ifdef PORTABLE
|
||||||
fullpath = QString(EmuDirectory) + QDir::separator() + path;
|
fullpath = QString(EmuDirectory) + QDir::separator() + path.c_str();
|
||||||
#else
|
#else
|
||||||
// Check user configuration directory
|
// Check user configuration directory
|
||||||
QDir config(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation));
|
QDir config(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation));
|
||||||
config.mkdir("melonDS");
|
config.mkdir("melonDS");
|
||||||
fullpath = config.absolutePath() + "/melonDS/";
|
fullpath = config.absolutePath() + "/melonDS/";
|
||||||
fullpath.append(path);
|
fullpath.append(path.c_str());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return OpenFile(fullpath.toUtf8(), mode, mode[0] != 'w');
|
return OpenFile(fullpath.toStdString(), mode, mode[0] != 'w');
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread* Thread_Create(std::function<void()> func)
|
Thread* Thread_Create(std::function<void()> func)
|
||||||
|
@ -71,6 +71,17 @@ int JIT_LiteralOptimisations = true;
|
|||||||
int JIT_FastMemory = true;
|
int JIT_FastMemory = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
int ExternalBIOSEnable;
|
||||||
|
|
||||||
|
char BIOS9Path[1024];
|
||||||
|
char BIOS7Path[1024];
|
||||||
|
char FirmwarePath[1024];
|
||||||
|
|
||||||
|
char DSiBIOS9Path[1024];
|
||||||
|
char DSiBIOS7Path[1024];
|
||||||
|
char DSiFirmwarePath[1024];
|
||||||
|
char DSiNANDPath[1024];
|
||||||
|
|
||||||
int DLDIEnable;
|
int DLDIEnable;
|
||||||
char DLDISDPath[1024];
|
char DLDISDPath[1024];
|
||||||
int DLDISize;
|
int DLDISize;
|
||||||
@ -206,6 +217,17 @@ ConfigEntry PlatformConfigFile[] =
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
{"ExternalBIOSEnable", 0, &ExternalBIOSEnable, 0, NULL, 0},
|
||||||
|
|
||||||
|
{"BIOS9Path", 1, BIOS9Path, 0, "", 1023},
|
||||||
|
{"BIOS7Path", 1, BIOS7Path, 0, "", 1023},
|
||||||
|
{"FirmwarePath", 1, FirmwarePath, 0, "", 1023},
|
||||||
|
|
||||||
|
{"DSiBIOS9Path", 1, DSiBIOS9Path, 0, "", 1023},
|
||||||
|
{"DSiBIOS7Path", 1, DSiBIOS7Path, 0, "", 1023},
|
||||||
|
{"DSiFirmwarePath", 1, DSiFirmwarePath, 0, "", 1023},
|
||||||
|
{"DSiNANDPath", 1, DSiNANDPath, 0, "", 1023},
|
||||||
|
|
||||||
{"DLDIEnable", 0, &DLDIEnable, 0, NULL, 0},
|
{"DLDIEnable", 0, &DLDIEnable, 0, NULL, 0},
|
||||||
{"DLDISDPath", 1, DLDISDPath, 0, "dldi.bin", 1023},
|
{"DLDISDPath", 1, DLDISDPath, 0, "dldi.bin", 1023},
|
||||||
{"DLDISize", 0, &DLDISize, 0, NULL, 0},
|
{"DLDISize", 0, &DLDISize, 0, NULL, 0},
|
||||||
|
@ -87,6 +87,17 @@ extern int JIT_LiteralOptimisations;
|
|||||||
extern int JIT_FastMemory;
|
extern int JIT_FastMemory;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern int ExternalBIOSEnable;
|
||||||
|
|
||||||
|
extern char BIOS9Path[1024];
|
||||||
|
extern char BIOS7Path[1024];
|
||||||
|
extern char FirmwarePath[1024];
|
||||||
|
|
||||||
|
extern char DSiBIOS9Path[1024];
|
||||||
|
extern char DSiBIOS7Path[1024];
|
||||||
|
extern char DSiFirmwarePath[1024];
|
||||||
|
extern char DSiNANDPath[1024];
|
||||||
|
|
||||||
extern int DLDIEnable;
|
extern int DLDIEnable;
|
||||||
extern char DLDISDPath[1024];
|
extern char DLDISDPath[1024];
|
||||||
extern int DLDISize;
|
extern int DLDISize;
|
||||||
|
Reference in New Issue
Block a user