This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/KillzXGaming/Switch-Toolbox
- Loading branch information
Showing
11 changed files
with
473 additions
and
46 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Toolbox.Library.IO; | ||
|
||
namespace FirstPlugin | ||
{ | ||
public class GLGR | ||
{ | ||
public uint SectionSize; | ||
public uint SheetSize; | ||
public uint HeaderSize = 0x20; | ||
public ushort GlyphsPerSheet; | ||
public ushort SetCount; | ||
public ushort SheetCount; | ||
public ushort CWDHCount; | ||
public ushort CMAPCount; | ||
|
||
public void Read(FileReader reader) | ||
{ | ||
string Signature = reader.ReadString(4, Encoding.ASCII); | ||
if (Signature != "GLGR") | ||
{ | ||
throw new Exception($"Invalid signature {Signature}! Expected GLGR."); | ||
} | ||
SectionSize = reader.ReadUInt32(); | ||
SheetSize = reader.ReadUInt32(); | ||
GlyphsPerSheet = reader.ReadUInt16(); | ||
SetCount = reader.ReadUInt16(); | ||
SheetCount = reader.ReadUInt16(); | ||
CWDHCount = reader.ReadUInt16(); | ||
CMAPCount = reader.ReadUInt16(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.