@@ -63,6 +63,20 @@ private bool FilterGaidens(DanData danData)
6363 return true ;
6464 }
6565
66+ private string GetDifficultyText ( uint difficulty )
67+ {
68+ return difficulty switch
69+ {
70+ 0 => "" ,
71+ 1 => Localizer [ "Easy" ] ,
72+ 2 => Localizer [ "Normal" ] ,
73+ 3 => Localizer [ "Hard" ] ,
74+ 4 => Localizer [ "Oni" ] ,
75+ 5 => Localizer [ "UraOni" ] ,
76+ _ => "" ,
77+ } ;
78+ }
79+
6680 private List < string > GetGaidenTitles ( string gaidenTitle )
6781 {
6882 List < string > titles = new ( ) ;
@@ -83,11 +97,11 @@ private string GetGaidenTitle(string gaidenTitle, string? language)
8397 Dictionary < string , string > titleMap = new ( ) ;
8498 foreach ( var langTitle in gaidenTitle . Split ( "," ) )
8599 {
86- if ( langTitle . Contains ( "[JPN]" ) ) titleMap [ "default" ] = titleMap [ "JPN" ] = langTitle . Replace ( "[JPN]" , "" ) . Trim ( ) ;
87- else if ( langTitle . Contains ( "[ENG]" ) ) titleMap [ "default" ] = titleMap [ "ENG" ] = langTitle . Replace ( "[ENG]" , "" ) . Trim ( ) ;
88- else if ( langTitle . Contains ( "[CHN]" ) ) titleMap [ "default" ] = titleMap [ "CHN" ] = langTitle . Replace ( "[CHN]" , "" ) . Trim ( ) ;
89- else if ( langTitle . Contains ( "[KOR]" ) ) titleMap [ "default" ] = titleMap [ "KOR" ] = langTitle . Replace ( "[KOR]" , "" ) . Trim ( ) ;
90- else if ( langTitle . Contains ( "[CHS]" ) ) titleMap [ "default" ] = titleMap [ "CHS" ] = langTitle . Replace ( "[CHS]" , "" ) . Trim ( ) ;
100+ if ( langTitle . Contains ( "[JPN]= " ) ) titleMap [ "default" ] = titleMap [ "JPN" ] = langTitle . Replace ( "[JPN]= " , "" ) . Trim ( ) ;
101+ else if ( langTitle . Contains ( "[ENG]= " ) ) titleMap [ "default" ] = titleMap [ "ENG" ] = langTitle . Replace ( "[ENG]= " , "" ) . Trim ( ) ;
102+ else if ( langTitle . Contains ( "[CHN]= " ) ) titleMap [ "default" ] = titleMap [ "CHN" ] = langTitle . Replace ( "[CHN]= " , "" ) . Trim ( ) ;
103+ else if ( langTitle . Contains ( "[KOR]= " ) ) titleMap [ "default" ] = titleMap [ "KOR" ] = langTitle . Replace ( "[KOR]= " , "" ) . Trim ( ) ;
104+ else if ( langTitle . Contains ( "[CHS]= " ) ) titleMap [ "default" ] = titleMap [ "CHS" ] = langTitle . Replace ( "[CHS]= " , "" ) . Trim ( ) ;
91105 else titleMap [ "default" ] = langTitle ;
92106 }
93107 if ( titleMap . ContainsKey ( "JPN" ) ) titleMap [ "default" ] = titleMap [ "JPN" ] ;
0 commit comments