aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/shared_translation.h
diff options
context:
space:
mode:
authoryuzubot <yuzu@yuzu-emu.org>2023-07-24 12:03:10 +0000
committeryuzubot <yuzu@yuzu-emu.org>2023-07-24 12:03:10 +0000
commit0bbca96087416175098ea8f0b049a5c60e0774b7 (patch)
treebdaa6868599c33ce3469f43974f0c4e292affaf7 /src/yuzu/configuration/shared_translation.h
parent3e4029b238bf1b604754175f9a100765f0b5a081 (diff)
"Merge Tagged PR 10839"mainline-0-1505
Diffstat (limited to 'src/yuzu/configuration/shared_translation.h')
-rw-r--r--src/yuzu/configuration/shared_translation.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/yuzu/configuration/shared_translation.h b/src/yuzu/configuration/shared_translation.h
new file mode 100644
index 0000000000..99a0e808ca
--- /dev/null
+++ b/src/yuzu/configuration/shared_translation.h
@@ -0,0 +1,25 @@
+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include <map>
+#include <memory>
+#include <typeindex>
+#include <utility>
+#include <vector>
+#include <QString>
+#include "common/common_types.h"
+
+class QWidget;
+
+namespace ConfigurationShared {
+using TranslationMap = std::map<u32, std::pair<QString, QString>>;
+using ComboboxTranslations = std::vector<std::pair<u32, QString>>;
+using ComboboxTranslationMap = std::map<u32, ComboboxTranslations>;
+
+std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent);
+
+std::unique_ptr<ComboboxTranslationMap> ComboboxEnumeration(QWidget* parent);
+
+} // namespace ConfigurationShared