Windows default to non-portable + Reworked MLC handling and related UI (#1252)

This commit is contained in:
Exzap 2024-07-23 03:13:36 +02:00 committed by GitHub
parent 7522c8470e
commit 64232ffdbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 515 additions and 651 deletions

View file

@ -15,13 +15,18 @@ public:
std::vector<const wxLanguageInfo*> GetLanguages() const;
static void CreateDefaultFiles(bool first_start = false);
static bool TrySelectMLCPath(fs::path path);
static bool SelectMLCPath(wxWindow* parent = nullptr);
static bool CheckMLCPath(const fs::path& mlc);
static bool CreateDefaultMLCFiles(const fs::path& mlc);
static void CreateDefaultCemuFiles();
static void InitializeNewMLCOrFail(fs::path mlc);
static void InitializeExistingMLCOrFail(fs::path mlc);
private:
void LocalizeUI(wxLanguage languageToUse);
void DeterminePaths(std::set<fs::path>& failedWriteAccess);
void ActivateApp(wxActivateEvent& event);
void LocalizeUI();
static std::vector<const wxLanguageInfo*> GetAvailableTranslationLanguages(wxTranslations* translationsMgr);
MainWindow* m_mainFrame = nullptr;