forked from eden-emu/eden
[qt_common] update translations
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
6f5a012cb3
commit
b817441c0f
4 changed files with 70 additions and 66 deletions
|
@ -14,6 +14,8 @@ QMessageBox::StandardButton ShowMessage(QMessageBox::Icon icon,
|
||||||
QMessageBox *box = new QMessageBox(icon, title, text, buttons, parent);
|
QMessageBox *box = new QMessageBox(icon, title, text, buttons, parent);
|
||||||
return static_cast<QMessageBox::StandardButton>(box->exec());
|
return static_cast<QMessageBox::StandardButton>(box->exec());
|
||||||
#endif
|
#endif
|
||||||
|
// TODO(crueter): If Qt Widgets is disabled...
|
||||||
|
// need a way to reference icon/buttons too
|
||||||
}
|
}
|
||||||
|
|
||||||
QMessageBox::StandardButton ShowMessage(QMessageBox::Icon icon,
|
QMessageBox::StandardButton ShowMessage(QMessageBox::Icon icon,
|
||||||
|
|
|
@ -145,33 +145,33 @@ bool MakeShortcutIcoPath(const u64 program_id, const std::string_view game_file_
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenRootDataFolder() {
|
void OpenEdenFolder(const Common::FS::EdenPath& path) {
|
||||||
QDesktopServices::openUrl(QUrl(
|
QDesktopServices::openUrl(QUrl(
|
||||||
QString::fromStdString(Common::FS::GetEdenPathString(Common::FS::EdenPath::EdenDir))));
|
QString::fromStdString(Common::FS::GetEdenPathString(path))));
|
||||||
|
}
|
||||||
|
|
||||||
|
void OpenRootDataFolder() {
|
||||||
|
OpenEdenFolder(Common::FS::EdenPath::EdenDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenNANDFolder()
|
void OpenNANDFolder()
|
||||||
{
|
{
|
||||||
QDesktopServices::openUrl(QUrl::fromLocalFile(
|
OpenEdenFolder(Common::FS::EdenPath::NANDDir);
|
||||||
QString::fromStdString(Common::FS::GetEdenPathString(Common::FS::EdenPath::NANDDir))));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenSDMCFolder()
|
void OpenSDMCFolder()
|
||||||
{
|
{
|
||||||
QDesktopServices::openUrl(QUrl::fromLocalFile(
|
OpenEdenFolder(Common::FS::EdenPath::SDMCDir);
|
||||||
QString::fromStdString(Common::FS::GetEdenPathString(Common::FS::EdenPath::SDMCDir))));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenModFolder()
|
void OpenModFolder()
|
||||||
{
|
{
|
||||||
QDesktopServices::openUrl(QUrl::fromLocalFile(
|
OpenEdenFolder(Common::FS::EdenPath::LoadDir);
|
||||||
QString::fromStdString(Common::FS::GetEdenPathString(Common::FS::EdenPath::LoadDir))));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenLogFolder()
|
void OpenLogFolder()
|
||||||
{
|
{
|
||||||
QDesktopServices::openUrl(QUrl::fromLocalFile(
|
OpenEdenFolder(Common::FS::EdenPath::LogDir);
|
||||||
QString::fromStdString(Common::FS::GetEdenPathString(Common::FS::EdenPath::LogDir))));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
#ifndef QT_GAME_UTIL_H
|
#ifndef QT_GAME_UTIL_H
|
||||||
#define QT_GAME_UTIL_H
|
#define QT_GAME_UTIL_H
|
||||||
|
|
||||||
|
#include "common/fs/path_util.h"
|
||||||
#include "frontend_common/content_manager.h"
|
#include "frontend_common/content_manager.h"
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
|
@ -12,7 +13,7 @@ namespace QtCommon {
|
||||||
static constexpr std::array<const char *, 3> GAME_VERIFICATION_RESULTS = {
|
static constexpr std::array<const char *, 3> GAME_VERIFICATION_RESULTS = {
|
||||||
"The operation completed successfully.",
|
"The operation completed successfully.",
|
||||||
"File contents may be corrupt or missing..",
|
"File contents may be corrupt or missing..",
|
||||||
"Firmware installation cancelled, firmware may be in a bad state or corrupted."
|
"Firmware installation cancelled, firmware may be in a bad state or corrupted. "
|
||||||
"File contents could not be checked for validity."
|
"File contents could not be checked for validity."
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,6 +35,7 @@ bool MakeShortcutIcoPath(const u64 program_id,
|
||||||
const std::string_view game_file_name,
|
const std::string_view game_file_name,
|
||||||
std::filesystem::path& out_icon_path);
|
std::filesystem::path& out_icon_path);
|
||||||
|
|
||||||
|
void OpenEdenFolder(const Common::FS::EdenPath &path);
|
||||||
void OpenRootDataFolder();
|
void OpenRootDataFolder();
|
||||||
void OpenNANDFolder();
|
void OpenNANDFolder();
|
||||||
void OpenSDMCFolder();
|
void OpenSDMCFolder();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue