MCPcopy Create free account
hub / github.com/doldecomp/mkdd / setFileName

Method setFileName

libs/JSystem/JAudio/System/JASWaveArcLoader.cpp:168–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void 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
187bool JASWaveArc::isLoading() const {
188 return _5a != 0;

Callers 2

createBasicWaveBankMethod · 0.80
createSimpleWaveBankMethod · 0.80

Calls 4

getCurrentDirFunction · 0.85
getSystemHeapFunction · 0.85
strcatFunction · 0.85
DVDConvertPathToEntrynumFunction · 0.85

Tested by

no test coverage detected