| 47 | } |
| 48 | |
| 49 | MusicLoader::MusicLoader(const std::string &song_base_path) { |
| 50 | boost::filesystem::path p(song_base_path); |
| 51 | std::string song_name = p.filename().string(); |
| 52 | stringstream mus_path, map_path; |
| 53 | |
| 54 | LOG(INFO) << "Loading Song " << song_name << " from " << song_base_path; |
| 55 | |
| 56 | mus_path << song_base_path << ".mus"; |
| 57 | map_path << song_base_path << ".map"; |
| 58 | |
| 59 | ParseMAP(map_path.str(), mus_path.str()); |
| 60 | } |
| 61 | |
| 62 | uint32_t MusicLoader::ReadBytes(FILE *file, uint8_t count) { |
| 63 | uint8_t i, byte; |
nothing calls this directly
no outgoing calls
no test coverage detected