feat: save rules

This commit is contained in:
MihailRis
2024-11-06 19:37:20 +03:00
parent 6602584c13
commit 8c8c844dd4
4 changed files with 47 additions and 13 deletions
+1 -3
View File
@@ -360,7 +360,7 @@ void Engine::loadContent() {
for (auto& pack : contentPacks) {
ContentLoader(&pack, contentBuilder, *resPaths).load();
load_configs(pack.folder);
}
}
content = contentBuilder.build();
@@ -421,8 +421,6 @@ double Engine::getDelta() const {
}
void Engine::setScreen(std::shared_ptr<Screen> screen) {
// unblock all bindings
Events::enableBindings();
// reset audio channels (stop all sources)
audio::reset_channel(audio::get_channel_index("regular"));
audio::reset_channel(audio::get_channel_index("ambient"));