@@ -29,7 +29,7 @@ private string Serialize(ChuChart chart, List<Alert> alerts)
2929 sb . AppendLine ( "LEVEL\t 0.0" ) ;
3030 sb . AppendLine ( $ "CREATOR\t { chart . Designer } ") ;
3131 var bpm_def = chart . BpmList . BPM_DEF ( ) ;
32- sb . AppendLine ( $ "BPM_DEF\t { bpm_def . Item1 } \t { bpm_def . Item2 } \t { bpm_def . Item3 } \t { bpm_def . Item4 } ") ;
32+ sb . AppendLine ( FormattableString . Invariant ( $ "BPM_DEF\t { bpm_def . Item1 } \t { bpm_def . Item2 } \t { bpm_def . Item3 } \t { bpm_def . Item4 } ") ) ;
3333 sb . AppendLine ( "MET_DEF\t 4\t 4" ) ;
3434 sb . AppendLine ( $ "RESOLUTION\t { RSL } ") ;
3535 sb . AppendLine ( $ "CLK_DEF\t { RSL } ") ;
@@ -41,7 +41,7 @@ private string Serialize(ChuChart chart, List<Alert> alerts)
4141 foreach ( var b in chart . BpmList )
4242 {
4343 var ( m , o ) = Utils . BarAndTick ( b . Time , RSL ) ;
44- sb . AppendLine ( $ "BPM\t { m } \t { o } \t { b . Bpm : 0.000} ") ;
44+ sb . AppendLine ( FormattableString . Invariant ( $ "BPM\t { m } \t { o } \t { b . Bpm : 0.000} ") ) ;
4545 }
4646
4747 foreach ( var met in chart . MetList )
@@ -54,7 +54,7 @@ private string Serialize(ChuChart chart, List<Alert> alerts)
5454 {
5555 var ( m , o ) = Utils . BarAndTick ( s . Time , RSL ) ;
5656 var durTicks = Utils . Tick ( s . Duration , RSL ) ;
57- sb . AppendLine ( $ "SFL\t { m } \t { o } \t { durTicks } \t { s . Multiplier : 0.000000} ") ;
57+ sb . AppendLine ( FormattableString . Invariant ( $ "SFL\t { m } \t { o } \t { durTicks } \t { s . Multiplier : 0.000000} ") ) ;
5858 }
5959 sb . AppendLine ( ) ;
6060
@@ -114,11 +114,11 @@ private static bool IsSlideContinueSegments(ChuNote n) // Air Slide的前驱只
114114
115115 private static string FormatAsdAsc ( ChuNote n , int m , int o , int durTicks )
116116 {
117- return $ "{ n . Type } \t { m } \t { o } \t { n . Cell } \t { n . Width } \t { n . TargetNote } \t { n . Height } \t { durTicks } \t { n . EndCell } \t { n . EndWidth } \t { n . EndHeight } \t { AirColorTag ( n ) } ";
117+ return FormattableString . Invariant ( $ "{ n . Type } \t { m } \t { o } \t { n . Cell } \t { n . Width } \t { n . TargetNote } \t { n . Height : 0.# } \t { durTicks } \t { n . EndCell } \t { n . EndWidth } \t { n . EndHeight : 0.# } \t { AirColorTag ( n ) } ") ;
118118 }
119119
120120 private static string FormatAld ( ChuNote n , int m , int o , int durTicks )
121121 {
122- return $ "ALD\t { m } \t { o } \t { n . Cell } \t { n . Width } \t { n . CrushInterval } \t { n . Height } \t { durTicks } \t { n . EndCell } \t { n . EndWidth } \t { n . EndHeight } " ;
122+ return FormattableString . Invariant ( $ "ALD\t { m } \t { o } \t { n . Cell } \t { n . Width } \t { n . CrushInterval } \t { n . Height : 0.# } \t { durTicks } \t { n . EndCell } \t { n . EndWidth } \t { n . EndHeight : 0.# } " ) ;
123123 }
124124}
0 commit comments