Add a way to test new atrac using headless.

This commit is contained in:
Henrik Rydgård 2024-04-16 12:10:40 +02:00
parent 5b625bfd3e
commit a74a0fdbde

View File

@ -339,6 +339,7 @@ int main(int argc, const char* argv[])
GPUCore gpuCore = GPUCORE_SOFTWARE;
CPUCore cpuCore = CPUCore::JIT;
int debuggerPort = -1;
bool newAtrac = false;
std::vector<std::string> testFilenames;
const char *mountIso = nullptr;
@ -375,6 +376,8 @@ int main(int argc, const char* argv[])
testOptions.bench = true;
else if (!strcmp(argv[i], "-v") || !strcmp(argv[i], "--verbose"))
testOptions.verbose = true;
else if (!strcmp(argv[i], "--new-atrac"))
newAtrac = true;
else if (!strncmp(argv[i], "--graphics=", strlen("--graphics=")) && strlen(argv[i]) > strlen("--graphics="))
{
const char *gpuName = argv[i] + strlen("--graphics=");
@ -498,6 +501,7 @@ int main(int argc, const char* argv[])
g_Config.iGlobalVolume = VOLUME_FULL;
g_Config.iReverbVolume = VOLUME_FULL;
g_Config.internalDataDirectory.clear();
g_Config.bUseNewAtrac = newAtrac;
Path exePath = File::GetExeDirectory();
g_Config.flash0Directory = exePath / "assets/flash0";