ソースを参照

Fix translation search paths on ios

Ivan Savenko 2 年 前
コミット
b9712b0899
1 ファイル変更4 行追加0 行削除
  1. 4 0
      launcher/mainwindow_moc.cpp

+ 4 - 0
launcher/mainwindow_moc.cpp

@@ -169,9 +169,13 @@ void MainWindow::updateTranslation()
 
 	QVector<QString> searchPaths;
 
+#ifdef Q_OS_IOS
+	searchPaths.push_back(pathToQString(VCMIDirs::get().binaryPath() / "translation" / translationFile));
+#else
 	for(auto const & string : VCMIDirs::get().dataPaths())
 		searchPaths.push_back(pathToQString(string / "launcher" / "translation" / translationFile));
 	searchPaths.push_back(pathToQString(VCMIDirs::get().userDataPath() / "launcher" / "translation" / translationFile));
+#endif
 
 	for(auto const & string : boost::adaptors::reverse(searchPaths))
 	{