| 166 | } |
| 167 | |
| 168 | void JASWaveArc::setFileName(const char *fileName) { |
| 169 | const char *dir = JASWaveArcLoader::getCurrentDir(); |
| 170 | size_t pathLen = std::strlen(dir); |
| 171 | pathLen += std::strlen(fileName); |
| 172 | |
| 173 | char *path = new (JASKernel::getSystemHeap(), -4) char[pathLen +1]; |
| 174 | #line 322 |
| 175 | JUT_ASSERT(path); |
| 176 | std::strcpy(path, dir); |
| 177 | std::strcat(path, fileName); |
| 178 | path[pathLen] = 0; |
| 179 | s32 entryNum = DVDConvertPathToEntrynum(path); |
| 180 | delete[] path; |
| 181 | if (entryNum >= 0) { |
| 182 | setEntryNum(entryNum); |
| 183 | } |
| 184 | |
| 185 | } |
| 186 | |
| 187 | bool JASWaveArc::isLoading() const { |
| 188 | return _5a != 0; |
no test coverage detected