aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/shared_translation.h
diff options
context:
space:
mode:
authoryuzubot <yuzu@yuzu-emu.org>2023-07-25 17:38:12 +0000
committeryuzubot <yuzu@yuzu-emu.org>2023-07-25 17:38:12 +0000
commitfc1ab2564e53004ee4c35741662eec0d2149ec75 (patch)
tree7b5117d787b4bae47474296235c805665cd1ef24 /src/yuzu/configuration/shared_translation.h
parent821d5eb1176eea180d8f84fb9c6c9a58ff845f39 (diff)
"Merge Tagged PR 10839"mainline-0-1507
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