MCPcopy Create free account
hub / github.com/EasyRPG/Player / InelukiReadLink

Method InelukiReadLink

src/game_system.cpp:511–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511std::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
526void Game_System::OnBgmReady(FileRequestResult* result) {
527 // Take from current_music, params could have changed over time

Callers

nothing calls this directly

Calls 1

GetNameMethod · 0.45

Tested by

no test coverage detected