mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
Move the force_gl_version command line hack to the new parser
See #20687
This commit is contained in:
1 parent
e6875fa339
commit
dca65d02ad
3 files changed
+47
-14
No files matched your search
+26
-10
@@ -1312,16 +1312,32 @@ bool TestFriendlyPath() {
|
||||
}
|
||||
|
||||
bool TestCmdLine() {
|
||||
const char *argv[] = {
|
||||
"ppsspp",
|
||||
"--fullscreen",
|
||||
"My_Game.iso"
|
||||
};
|
||||
int argc = ARRAY_SIZE(argv);
|
||||
CommandLineOptions options;
|
||||
options.Parse(argc, argv);
|
||||
EXPECT_TRUE(options.fullscreen.value_or(false));
|
||||
EXPECT_EQ_STR(options.bootFilename.value_or(""), std::string("My_Game.iso"));
|
||||
{
|
||||
const char *argv[] = {
|
||||
"ppsspp",
|
||||
"--fullscreen",
|
||||
"--graphics=d3d11",
|
||||
"My_Game.iso"
|
||||
};
|
||||
int argc = ARRAY_SIZE(argv);
|
||||
CommandLineOptions options;
|
||||
options.Parse(argc, argv);
|
||||
EXPECT_TRUE(options.fullscreen.value_or(false));
|
||||
EXPECT_EQ_STR(options.bootFilename.value_or(""), std::string("My_Game.iso"));
|
||||
EXPECT_TRUE(options.gpuBackend.has_value());
|
||||
EXPECT_EQ_INT((int)options.gpuBackend.value_or((GPUBackend)-1), (int)GPUBackend::DIRECT3D11);
|
||||
}
|
||||
// Test GL version override
|
||||
{
|
||||
const char *argv[] = {
|
||||
"ppsspp",
|
||||
"--graphics=gles3.3",
|
||||
};
|
||||
int argc = ARRAY_SIZE(argv);
|
||||
CommandLineOptions options;
|
||||
options.Parse(argc, argv);
|
||||
EXPECT_EQ_INT(options.force_gl_version, 33);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user