MCPcopy Create free account
hub / github.com/XorTroll/uLaunch / DoMoveTo

Method DoMoveTo

projects/uMenu/source/ul/menu/ui/ui_MainMenuLayout.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 void MainMenuLayout::DoMoveTo(const std::string &new_path) {
55 // Empty path used as a "reload" argumnet
56 if(!new_path.empty()) {
57 util::CopyToStringBuffer(g_MenuFsPathBuffer, new_path);
58 util::CopyToStringBuffer(g_MenuPathBuffer, this->cur_folder_path);
59 UL_RC_ASSERT(smi::UpdateMenuPaths(g_MenuFsPathBuffer, g_MenuPathBuffer));
60 }
61
62 this->entry_menu->MoveTo(new_path);
63 }
64
65 void MainMenuLayout::menu_EntryInputPressed(const u64 keys_down) {
66 if(keys_down & HidNpadButton_B) {

Callers 1

MoveToMethod · 0.95

Calls 3

CopyToStringBufferFunction · 0.85
UpdateMenuPathsFunction · 0.85
MoveToMethod · 0.45

Tested by

no test coverage detected