Skip to content

Commit

Permalink
Add ScriptDebugger
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximumADHD committed Aug 9, 2021
1 parent 712f1c4 commit 3355c44
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 2 deletions.
7 changes: 6 additions & 1 deletion BinaryFormat/Chunks/PROP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using RobloxFiles.Enums;
using RobloxFiles.DataTypes;
using RobloxFiles.Utility;
using System.Diagnostics;
using System.IO;

namespace RobloxFiles.BinaryFormat.Chunks
Expand Down Expand Up @@ -51,6 +50,12 @@ public void Load(BinaryRobloxFileReader reader)
return;
}

if (Class == null)
{
RobloxFile.LogError($"Unknown class index {ClassIndex} (@ {this})!");
return;
}

var ids = Class.InstanceIds;
int instCount = Class.NumInstances;
var props = new Property[instCount];
Expand Down
14 changes: 14 additions & 0 deletions Generated/Classes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ public AvatarEditorService()
}
}

public class AvatarImportService : Instance
{
public AvatarImportService()
{
IsService = true;
}
}

public class Backpack : Instance
{
}
Expand Down Expand Up @@ -2953,6 +2961,12 @@ public ScriptContext()
}
}

public class ScriptDebugger : Instance
{
public string CoreScriptIdentifier = "";
public string ScriptGuid = "";
}

public class ScriptService : Instance
{
public ScriptService()
Expand Down
Binary file modified Plugins/GenerateApiDump.rbxm
Binary file not shown.
9 changes: 9 additions & 0 deletions Plugins/GenerateApiDump/PropertyPatches.lua
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,15 @@ return
}
};

ScriptDebugger =
{
Add =
{
CoreScriptIdentifier = "string";
ScriptGuid = "string";
}
};

Smoke =
{
Add =
Expand Down
8 changes: 7 additions & 1 deletion Plugins/GenerateApiDump/init.server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ local singletons =
StarterCharacterScripts = StarterPlayer:WaitForChild("StarterCharacterScripts");
}

local exceptionClasses =
{
PackageLink = true;
ScriptDebugger = true;
}

local numberTypes =
{
int = true;
Expand Down Expand Up @@ -403,7 +409,7 @@ local function generateClasses()
end
end

if class.Name == "PackageLink" then
if exceptionClasses[class.Name] then
registerClass = true
end

Expand Down
Binary file modified RobloxFileFormat.dll
Binary file not shown.

0 comments on commit 3355c44

Please sign in to comment.