From b9712b08997a6a5425d2e9996d26b19bfd091148 Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Mon, 16 Jan 2023 22:37:19 +0200 Subject: [PATCH] Fix translation search paths on ios --- launcher/mainwindow_moc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/launcher/mainwindow_moc.cpp b/launcher/mainwindow_moc.cpp index bd001ce6c..6833cdf9c 100644 --- a/launcher/mainwindow_moc.cpp +++ b/launcher/mainwindow_moc.cpp @@ -169,9 +169,13 @@ void MainWindow::updateTranslation() QVector 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)) {