port some small fry to the new config system.

This commit is contained in:
Arisotura
2024-05-24 11:41:51 +02:00
parent f9449999ec
commit b5cc5a2cf7
5 changed files with 27 additions and 29 deletions

View File

@ -85,18 +85,6 @@ bool DirectLAN;
bool SavestateRelocSRAM;
int AudioInterp;
int AudioBitDepth;
int AudioVolume;
bool DSiVolumeSync;
int MicInputType;
std::string MicDevice;
std::string MicWavPath;
std::string LastROMFolder;
std::string RecentROMList[10];
std::string SaveFilePath;
std::string SavestatePath;
std::string CheatFilePath;
@ -411,6 +399,12 @@ size_t Array::Size()
return Data.size();
}
void Array::Clear()
{
toml::array newarray;
Data = newarray;
}
Array Array::GetArray(const int id)
{
while (Data.size() < id+1)