MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / GetStorageIdName

Function GetStorageIdName

Goldleaf/source/cnt/cnt_Names.cpp:76–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 std::string GetStorageIdName(const NcmStorageId id) {
77 switch(id) {
78 case NcmStorageId_SdCard: {
79 return cfg::Strings.GetString(19);
80 }
81 case NcmStorageId_BuiltInUser: {
82 return cfg::Strings.GetString(28);
83 }
84 case NcmStorageId_BuiltInSystem: {
85 return cfg::Strings.GetString(29);
86 }
87 case NcmStorageId_GameCard: {
88 return cfg::Strings.GetString(190);
89 }
90 case NcmStorageId_None: {
91 return cfg::Strings.GetString(442);
92 }
93 default: {
94 return "Unk" + std::to_string(id);
95 }
96 }
97 }
98
99 std::string GetApplicationViewFlagName(const u32 flag_bit) {
100 switch(BIT(flag_bit)) {

Callers 2

DisplayContentInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected