1
0
mirror of synced 2024-11-23 20:10:57 +01:00

fixed wordlist missing data (for real now)

This commit is contained in:
NotImplementedLife 2023-07-30 09:21:29 +03:00
parent 69b63c5803
commit abc76f1288
2 changed files with 16 additions and 14 deletions

View File

@ -100,6 +100,20 @@ namespace TaikoSoundEditor
throw new Exception($"Failed to parse\n{WordListPath}\nReason:\n{ex.InnerException}");
}
Logger.Info($"Fixing Wordlist missing data");
foreach (var mi in MusicInfos.Items)
{
var songId = mi.Id;
if (WordList.GetBySong(songId) == null)
WordList.Items.Add(new Word { Key = $"song_{songId}", JapaneseText = "" });
if (WordList.GetBySongSub(songId) == null)
WordList.Items.Add(new Word { Key = $"song_sub_{songId}", JapaneseText = "" });
if (WordList.GetBySongDetail(songId) == null)
WordList.Items.Add(new Word { Key = $"song_detail_{songId}", JapaneseText = "" });
}
Logger.Info($"Setting LoadedMusicBox DataSource");
LoadedMusicBinding = new BindingSource();
@ -122,19 +136,7 @@ namespace TaikoSoundEditor
break;
}
return !MusicInfos.Items.Any(mi => mi.Id == key);
});*/
foreach(var mi in MusicInfos.Items)
{
var songId = mi.Id;
if (WordList.GetBySong(songId) != null)
WordList.Items.Add(new Word { Key = $"song_{songId}", JapaneseText="" });
if (WordList.GetBySongSub(songId) != null)
WordList.Items.Add(new Word { Key = $"song_sub_{songId}", JapaneseText = "" });
if (WordList.GetBySongDetail(songId) != null)
WordList.Items.Add(new Word { Key = $"song_detail_{songId}", JapaneseText = "" });
}
});*/
MusicOrderViewer.WordList = WordList;
foreach (var musicOrder in MusicOrders.Items.Where(_ => MusicInfos.Items.Any(mi => mi.UniqueId == _.UniqueId)))

View File

@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2023-07-30T05:20:21.5020489Z;True|2023-07-29T11:28:56.2445862+03:00;True|2023-07-29T11:05:03.3876668+03:00;True|2023-07-29T10:54:04.8963992+03:00;True|2023-07-29T10:22:03.4096107+03:00;True|2023-07-29T10:05:26.6712083+03:00;True|2023-07-28T19:30:15.3174413+03:00;True|2023-07-22T19:07:39.3718711+03:00;True|2023-07-22T19:06:41.2393088+03:00;True|2023-07-22T12:07:26.2620601+03:00;True|2023-07-22T12:06:39.9230498+03:00;True|2023-07-22T11:29:18.0153916+03:00;True|2023-07-22T08:23:07.5000923+03:00;True|2023-07-21T20:03:15.6598520+03:00;True|2023-07-21T19:41:13.2800435+03:00;True|2023-07-19T13:08:33.4726289+03:00;True|2023-07-19T12:08:17.2430335+03:00;True|2023-07-18T09:38:50.7615921+03:00;True|2023-07-18T09:25:23.0403589+03:00;True|2023-07-17T17:57:08.1469738+03:00;True|2023-07-17T11:28:41.9554245+03:00;True|2023-07-17T11:15:26.2194507+03:00;</History>
<History>True|2023-07-30T06:20:22.7718733Z;True|2023-07-30T09:02:22.1384796+03:00;True|2023-07-30T08:20:21.5020489+03:00;True|2023-07-29T11:28:56.2445862+03:00;True|2023-07-29T11:05:03.3876668+03:00;True|2023-07-29T10:54:04.8963992+03:00;True|2023-07-29T10:22:03.4096107+03:00;True|2023-07-29T10:05:26.6712083+03:00;True|2023-07-28T19:30:15.3174413+03:00;True|2023-07-22T19:07:39.3718711+03:00;True|2023-07-22T19:06:41.2393088+03:00;True|2023-07-22T12:07:26.2620601+03:00;True|2023-07-22T12:06:39.9230498+03:00;True|2023-07-22T11:29:18.0153916+03:00;True|2023-07-22T08:23:07.5000923+03:00;True|2023-07-21T20:03:15.6598520+03:00;True|2023-07-21T19:41:13.2800435+03:00;True|2023-07-19T13:08:33.4726289+03:00;True|2023-07-19T12:08:17.2430335+03:00;True|2023-07-18T09:38:50.7615921+03:00;True|2023-07-18T09:25:23.0403589+03:00;True|2023-07-17T17:57:08.1469738+03:00;True|2023-07-17T11:28:41.9554245+03:00;True|2023-07-17T11:15:26.2194507+03:00;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>