| 2096 | } |
| 2097 | |
| 2098 | void BambooTracker::loadModule(io::BinaryContainer& container) |
| 2099 | { |
| 2100 | makeNewModule(false); |
| 2101 | |
| 2102 | std::exception_ptr ep; |
| 2103 | try { |
| 2104 | io::ModuleIO::getInstance().loadModule(container, mod_, instMan_); |
| 2105 | } |
| 2106 | catch (...) { |
| 2107 | ep = std::current_exception(); |
| 2108 | } |
| 2109 | |
| 2110 | tickCounter_->setInterruptRate(mod_->getTickFrequency()); |
| 2111 | setCurrentSongNumber(0); |
| 2112 | clearCommandHistory(); |
| 2113 | |
| 2114 | if (ep) std::rethrow_exception(ep); |
| 2115 | } |
| 2116 | |
| 2117 | void BambooTracker::saveModule(io::BinaryContainer& container) |
| 2118 | { |
nothing calls this directly
no test coverage detected