| 509 | } |
| 510 | |
| 511 | std::string Game_System::InelukiReadLink(Filesystem_Stream::InputStream& stream) { |
| 512 | // The first line contains the path to the actual audio file to play |
| 513 | std::string line; |
| 514 | if (!Utils::ReadLine(stream, line)) { |
| 515 | Output::Warning("Ineluki MP3: Link file is empty: {}", stream.GetName()); |
| 516 | return {}; |
| 517 | } |
| 518 | line = lcf::ReaderUtil::Recode(line, Player::encoding); |
| 519 | |
| 520 | Output::Debug("Ineluki MP3: Link file: {} -> {}", stream.GetName(), line); |
| 521 | std::string line_canonical = FileFinder::MakeCanonical(line, 1); |
| 522 | |
| 523 | return line_canonical; |
| 524 | } |
| 525 | |
| 526 | void Game_System::OnBgmReady(FileRequestResult* result) { |
| 527 | // Take from current_music, params could have changed over time |