aboutsummaryrefslogtreecommitdiff
path: root/src/ARCodeFile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ARCodeFile.h')
-rw-r--r--src/ARCodeFile.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ARCodeFile.h b/src/ARCodeFile.h
index a3c36e4..f9a1c13 100644
--- a/src/ARCodeFile.h
+++ b/src/ARCodeFile.h
@@ -1,5 +1,5 @@
/*
- Copyright 2016-2021 Arisotura
+ Copyright 2016-2022 melonDS team
This file is part of melonDS.
@@ -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