From 64f7f0b1c2a97107539188cd59399dbc3e89813c Mon Sep 17 00:00:00 2001 From: Copy Liu Date: Thu, 17 Nov 2016 00:12:29 +0800 Subject: [PATCH] ignore music id is 0 --- rabiribi_splitter/Form1.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rabiribi_splitter/Form1.cs b/rabiribi_splitter/Form1.cs index 4d0e201..2371153 100644 --- a/rabiribi_splitter/Form1.cs +++ b/rabiribi_splitter/Form1.cs @@ -126,10 +126,11 @@ namespace rabiribi_splitter int musicaddr = StaticData.MusicAddr[veridx]; int musicid = MemoryHelper.GetMemoryValue(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"); } } }