option to install nro from fs, swap LR display, load translations locally, fix scrolling sound, add file name to rename swkdb

- reduce nxlink svcsleep to reduce latency between polling.
- translations can now be loaded from /config/sphaira/i18n/name.json, this is to help aid those creating translations.
- swap LR position in display. the fix is a hack, but it'll do for now.
- sound effects are now consistent throught the app.
- renaming a file will now show the current file name in swkbd, makes it easier to rename from config.ini.template -> config.ini
- removed some dead code that was unused.
- add credits to the readme.
- speed up playlog ini parsing by browsing the ini rather that doing a query for each entry.
This commit is contained in:
ITotalJustice
2024-12-17 16:03:05 +00:00
parent c11990e1bd
commit 9966e57e12
20 changed files with 120 additions and 201 deletions

View File

@@ -36,6 +36,9 @@ struct Menu final : MenuBase {
return m_entries;
}
static Result InstallHomebrew(const fs::FsPath& path, const NacpStruct& nacp, const std::vector<u8>& icon);
static Result InstallHomebrewFromPath(const fs::FsPath& path);
private:
static constexpr inline const char* INI_SECTION = "homebrew";

View File

@@ -26,16 +26,6 @@ struct Widget : public Object {
return m_focus;
}
// void PushWidget(std::shared_ptr<Widget> widget);
// void PopWidget();
void SetParent(Widget* parent) {
m_parent = parent;
}
auto GetParent() -> Widget* {
return m_parent;
}
auto HasAction(Button button) const -> bool;
void SetAction(Button button, Action action);
void SetActions(std::same_as<std::pair<Button, Action>> auto ...args) {
@@ -66,8 +56,6 @@ struct Widget : public Object {
using Actions = std::map<Button, Action>;
// using Actions = std::unordered_map<Button, Action>;
Actions m_actions;
Widget* m_parent{};
// std::vector<std::shared_ptr<Widget>> widgets;
bool m_focus{false};
bool m_pop{false};
};