mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-21 09:28:03 -05:00
configure_graphics_advance: Generate UI at runtime
We can iterate through the AdvancedGraphics settings and generate the UI during runtime. This doesn't help runtime efficiency, but it helps a ton in reducing the amount of work a developer needs in order to add a new setting.
This commit is contained in:
18
src/yuzu/configuration/shared_translation.h
Normal file
18
src/yuzu/configuration/shared_translation.h
Normal file
@ -0,0 +1,18 @@
|
||||
#include <forward_list>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <typeindex>
|
||||
#include <utility>
|
||||
#include <QString>
|
||||
|
||||
class QWidget;
|
||||
|
||||
namespace ConfigurationShared {
|
||||
using TranslationMap = std::map<std::string, std::pair<QString, QString>>;
|
||||
|
||||
std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent);
|
||||
|
||||
std::forward_list<QString> ComboboxEnumeration(std::type_index type, QWidget* parent);
|
||||
|
||||
} // namespace ConfigurationShared
|
Reference in New Issue
Block a user