mirror of https://github.com/AxioDL/metaforce.git
Fix graphicsAPI cvar
This commit is contained in:
parent
bf1e342bc4
commit
b4972dbad9
|
@ -83,7 +83,9 @@ void LaunchMenu::initDeveloperMode()
|
|||
|
||||
void LaunchMenu::apiTriggered()
|
||||
{
|
||||
m_commons.setGraphicsApi(qobject_cast<QAction*>(sender())->text().toStdString());
|
||||
QString apiStr = qobject_cast<QAction*>(sender())->text();
|
||||
apiStr = apiStr.remove('&');
|
||||
m_commons.setGraphicsApi(apiStr.toStdString());
|
||||
m_commons.serialize();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue