@@ -40,7 +40,7 @@ public void Initialize()
40
40
_loc . AddFunction ( culture , "LOC" , FormatLoc ) ;
41
41
_loc . AddFunction ( culture , "NATURALFIXED" , FormatNaturalFixed ) ;
42
42
_loc . AddFunction ( culture , "NATURALPERCENT" , FormatNaturalPercent ) ;
43
- _loc . AddFunction ( culture , "PLAYTIME" , FormatPlaytime ) ;
43
+ _loc . AddFunction ( culture , "PLAYTIME" , FormatPlaytime ) ; // SS220 Playtime Format Fix
44
44
45
45
46
46
/*
@@ -192,6 +192,7 @@ public static string FormatDirection(Direction dir)
192
192
return Loc . GetString ( $ "zzzz-fmt-direction-{ dir . ToString ( ) } ") ;
193
193
}
194
194
195
+ // SS220 Playtime Format Fix begin
195
196
/// <summary>
196
197
/// Formats playtime as hours and minutes.
197
198
/// </summary>
@@ -201,6 +202,7 @@ public static string FormatPlaytime(TimeSpan time)
201
202
var minutes = time . Minutes ;
202
203
return Loc . GetString ( $ "zzzz-fmt-playtime", ( "hours" , hours ) , ( "minutes" , minutes ) ) ;
203
204
}
205
+ // SS220 Playtime Format Fix end
204
206
205
207
private static ILocValue FormatLoc ( LocArgs args )
206
208
{
@@ -291,6 +293,7 @@ private static ILocValue FormatUnits(LocArgs args)
291
293
return new LocValueString ( res ) ;
292
294
}
293
295
296
+ // SS220 Playtime Format Fix begin
294
297
private static ILocValue FormatPlaytime ( LocArgs args )
295
298
{
296
299
var time = TimeSpan . Zero ;
@@ -300,5 +303,6 @@ private static ILocValue FormatPlaytime(LocArgs args)
300
303
}
301
304
return new LocValueString ( FormatPlaytime ( time ) ) ;
302
305
}
306
+ // SS220 Playtime Format Fix end
303
307
}
304
308
}
0 commit comments