| 137 | } |
| 138 | |
| 139 | ScriptScreen::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 | |
| 162 | void ScriptScreen::drawTop() const |
| 163 | { |
nothing calls this directly
no test coverage detected