Skip to content

Commit 9a0a86d

Browse files
committed
Restart music on RSS finish.
1 parent 9786d54 commit 9a0a86d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

512 Bytes
Binary file not shown.

Source/RealSolarSystem.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,6 +2003,7 @@ private IEnumerator<YieldInstruction> LoadRSS()
20032003
// GCDISABLE
20042004
//ProfileTimer.Push("RSS_FirstGC");
20052005
Resources.UnloadUnusedAssets();
2006+
MusicLogic.fetch.audio1.Stop();
20062007
/*initialMemory = GC.GetTotalMemory(true);
20072008
print("*RSS*: Total memory in use before load: " + initialMemory);*/
20082009
//ProfileTimer.Pop("RSS_FirstGC");
@@ -2048,6 +2049,7 @@ private IEnumerator<YieldInstruction> LoadRSS()
20482049
doneRSS = true;
20492050
workingRSS = false;
20502051
InputLockManager.RemoveControlLock("RSSLoad");
2052+
MusicLogic.fetch.audio1.Play();
20512053
}
20522054
public void Start()
20532055
{
@@ -2071,6 +2073,7 @@ public void Start()
20712073
foreach (PQSMod_CelestialBodyTransform c in Resources.FindObjectsOfTypeAll(typeof(PQSMod_CelestialBodyTransform)))
20722074
Utils.DumpCBT(c);*/
20732075
showGUI = true;
2076+
MusicLogic.fetch.audio1.Stop();
20742077
StartCoroutine(LoadRSS());
20752078
}
20762079

0 commit comments

Comments
 (0)