Custom path support (#1333)

also including:
* getting rid of shitty strings
* all new, cleaner ROM handling code
* base for DSi savestates
* GBA slot addons (for now, memory cart)
This commit is contained in:
Arisotura
2022-01-07 14:00:43 +01:00
committed by GitHub
parent c4cd9da674
commit e665e25bd3
64 changed files with 3606 additions and 2662 deletions

View File

@ -19,13 +19,14 @@
#ifndef ARCODEFILE_H
#define ARCODEFILE_H
#include <string>
#include <list>
#include "types.h"
struct ARCode
{
char Name[128];
std::string Name;
bool Enabled;
u32 CodeLen;
u32 Code[2*64];
@ -35,7 +36,7 @@ typedef std::list<ARCode> ARCodeList;
struct ARCodeCat
{
char Name[128];
std::string Name;
ARCodeList Codes;
};
@ -45,7 +46,7 @@ typedef std::list<ARCodeCat> ARCodeCatList;
class ARCodeFile
{
public:
ARCodeFile(const char* filename);
ARCodeFile(std::string filename);
~ARCodeFile();
bool Error;
@ -56,7 +57,7 @@ public:
ARCodeCatList Categories;
private:
char Filename[1024];
std::string Filename;
};
#endif // ARCODEFILE_H