File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
- using OpenTS2 . Files ;
1
+ using OpenTS2 . Content ;
2
+ using OpenTS2 . Files ;
2
3
using OpenTS2 . Files . Formats . Font ;
3
4
using OpenTS2 . UI . Skia ;
4
5
using System ;
@@ -18,8 +19,8 @@ public class MXFFontTest : MonoBehaviour
18
19
19
20
private void Start ( )
20
21
{
21
- var baseGamePath = Filesystem . GetDataPathForProduct ( Content . ProductFlags . BaseGame ) ;
22
- var fontPath = Path . Combine ( baseGamePath , $ "Res/UI/Fonts/{ BaseGameFontToUse } ") ;
22
+ var baseGamePath = Filesystem . GetPathForProduct ( ProductFlags . BaseGame ) ;
23
+ var fontPath = Path . Combine ( baseGamePath , $ "TSData/ Res/UI/Fonts/{ BaseGameFontToUse } ") ;
23
24
var mxf = new MXFFile ( fontPath ) ;
24
25
var data = mxf . DecodedData ;
25
26
if ( PFBFontConverter . IsPFB ( data ) )
Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ private void LoadFontStyles()
66
66
private void LoadFonts ( )
67
67
{
68
68
var epManager = EPManager . Instance ;
69
- var products = epManager . GetInstalledProducts ( ) ;
69
+ var products = Filesystem . GetProductDirectories ( ) ;
70
70
71
71
foreach ( var product in products )
72
72
{
73
- var fontsPath = Path . Combine ( Filesystem . GetDataPathForProduct ( product ) , "Res/UI/Fonts" ) ;
73
+ var fontsPath = Path . Combine ( product , "TSData/ Res/UI/Fonts" ) ;
74
74
if ( ! Directory . Exists ( fontsPath ) ) continue ;
75
75
var fontFiles = Directory . GetFiles ( fontsPath , "*.*" , SearchOption . TopDirectoryOnly ) ;
76
76
foreach ( var fontFile in fontFiles )
You can’t perform that action at this time.
0 commit comments