fix: print error on qmc2 creation failure instead of crash.

This commit is contained in:
鲁树人 2024-11-19 16:59:59 +09:00
parent edbe9ae708
commit 2908525c5c

View File

@ -59,6 +59,11 @@ class KggTask {
}
auto qmc2 = QMC2::Create(ekey);
if (!qmc2) {
error(L"create qmc2 instance failed (ekey decode error?)");
fprintf(stderr, "%s\n", ekey.c_str());
return;
}
std::string magic(4, 0);
kgg_stream_in.seekg(offset_to_audio, std::ios::beg);