ignore music id is 0

rabi_display
Copy Liu 8 years ago
parent 12b18bd4dd
commit 64f7f0b1c2
No known key found for this signature in database
GPG Key ID: 63A453DBF23409AF
  1. 6
      rabiribi_splitter/Form1.cs

@ -126,10 +126,11 @@ namespace rabiribi_splitter
int musicaddr = StaticData.MusicAddr[veridx];
int musicid = MemoryHelper.GetMemoryValue<int>(process, musicaddr);
if (musicid >= 0 && musicid < StaticData.MusicNames.Length)
if (musicid > 0 && musicid < StaticData.MusicNames.Length)
{
if (lastmusicid != musicid)
{
Console.WriteLine("new music:"+musicid);
this.Invoke(new Action(() => this.musicLabel.Text = StaticData.MusicNames[musicid]));
var bossmusicflag = StaticData.BossMusics.Contains(musicid);
@ -141,6 +142,7 @@ namespace rabiribi_splitter
if (cbBossStart.Checked || cbBossEnd.Checked)
{
sendsplit();
Console.WriteLine("splilt 1");
}
this.Invoke(new Action(() => cbBoss.Checked = bossbattle));
@ -158,6 +160,7 @@ namespace rabiribi_splitter
if (cbBossStart.Checked)
{
sendsplit();
Console.WriteLine("splilt 2");
}
}
}
@ -169,6 +172,7 @@ namespace rabiribi_splitter
if (cbBossEnd.Checked)
{
sendsplit();
Console.WriteLine("splilt 3");
}
}
}

Loading…
Cancel
Save