MCPcopy Create free account
hub / github.com/FlagBrew/PKSM / ScriptScreen

Method ScriptScreen

3ds/source/gui/screen/ScriptScreen.cpp:139–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139ScriptScreen::ScriptScreen()
140 : currDirString("romfs:" + getScriptDir(TitleLoader::save->version())),
141 currDir(currDirString),
142 hid(8, 1),
143 sdSearch(false),
144 cScripts(false)
145{
146 if (!currDir.good())
147 {
148 std::string tmp = "/3ds/PKSM" + getScriptDir(TitleLoader::save->version());
149 currDir = STDirectory(tmp);
150 if (!currDir.good())
151 {
152 currDir = STDirectory(currDirString);
153 }
154 else
155 {
156 currDirString = tmp;
157 }
158 }
159 updateEntries();
160}
161
162void ScriptScreen::drawTop() const
163{

Callers

nothing calls this directly

Calls 3

getScriptDirFunction · 0.85
STDirectoryClass · 0.85
goodMethod · 0.45

Tested by

no test coverage detected