CSPspEmu.Hle.Modules.libfont.sceLibFont.sceFontOpenUserFile C# (CSharp) Method

sceFontOpenUserFile() private method

private sceFontOpenUserFile ( FontLibrary FontLibrary, string FileName, int Mode, uint ErrorCode ) : Font
FontLibrary FontLibrary
FileName string
Mode int
ErrorCode uint
return Font
        public Font sceFontOpenUserFile(FontLibrary FontLibrary, string FileName, int Mode, uint* ErrorCode)
        {
            var FontFileStream = HleIoManager.HleIoWrapper.Open(FileName, Vfs.HleIoFlags.Read, (Vfs.SceMode)Mode);
            var PGF = new PGF().Load(FontFileStream);
            var Font = new Font(FontLibrary, PGF);
            *ErrorCode = 0;
            return Font;
        }