Skip to content

Commit

Permalink
made title music work
Browse files Browse the repository at this point in the history
  • Loading branch information
elluminance committed Aug 18, 2024
1 parent e8b8ae8 commit 6dd9295
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/poststart/poststart.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import "./misc/modutils-commands.js";

ig.vars.registerVarAccessor("mod", sc.modUtils);
ig.vars.registerVarAccessor("mod", sc.modUtils);

ig.Bgm.preloadStartTrack(el.musicRemix.getRemix("title"));
5 changes: 5 additions & 0 deletions src/prestart/music-remix-selector/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ el.MusicRemixController = ig.Class.extend({
delete this.selectedRemixes[bgm];
}

//kinda hacky, but it works.
//any already set ones will be loaded in poststart.
if(bgm === "title") {
ig.Bgm.preloadStartTrack(newBgm || bgm);
}
el.musicRemix.saveToStorage();
},

Expand Down

0 comments on commit 6dd9295

Please sign in to comment.