Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with dotnet-format #6

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions VBLauncher/Classes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ public struct rect
public int x2;
public int y2;
}

public struct fragment
{
public int width;
Expand All @@ -1751,7 +1751,7 @@ public struct obj

public string name = "";
public List<obj> objects = [];

public INT(byte[] b)
{
var ms = new MemoryStream();
Expand All @@ -1761,9 +1761,9 @@ public INT(byte[] b)

// TODO: implement two font logic (uncertain my ImHex pattern handles properly)
// var twofont = false;

// any reads not marked with a comment are unknown values that may be stored later (assumed type)

br.ReadBytes(7); // header, ignore
var revision = br.ReadByte() - 0x30; // 0x30 to convert ASCII to int
var name_length = br.ReadInt32();
Expand All @@ -1776,7 +1776,8 @@ public INT(byte[] b)
obj.magic = br.ReadInt32();
if (obj.magic == 1)
{
if (revision == 3) {
if (revision == 3)
{
// i have not researched this bit of data
br.ReadBytes(5);
var s1 = br.ReadInt32();
Expand Down
Loading
Loading