Skip to content

Commit c729248

Browse files
committed
Initial commit
0 parents  commit c729248

File tree

7 files changed

+83
-0
lines changed

7 files changed

+83
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bin/
2+
obj/
3+
/packages/
4+
riderModule.iml
5+
/_ReSharper.Caches/

.idea/.idea.MelonAutoPdbGen/.idea/.gitignore

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.MelonAutoPdbGen/.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AudoPdbGenPlugin.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System.Drawing;
2+
using MelonLoader;
3+
4+
[assembly:MelonInfo(typeof(MelonAutoPdbGen.AutoPdbGenPlugin), "AutoPdbGen", "1.0.0", "Samboy063")]
5+
[assembly:MelonGame]
6+
7+
namespace MelonAutoPdbGen;
8+
9+
public class AutoPdbGenPlugin : MelonPlugin
10+
{
11+
public AutoPdbGenPlugin()
12+
{
13+
if (!MelonUtils.IsGameIl2Cpp())
14+
{
15+
LoggerInstance.WriteLine(Color.Yellow, 30);
16+
LoggerInstance.Warning("This game is not using IL2CPP, this plugin is useless.");
17+
LoggerInstance.WriteLine(Color.Yellow, 30);
18+
return;
19+
}
20+
21+
//Only subscribe to events if the game is using IL2CPP
22+
MelonEvents.OnPreModsLoaded.Subscribe(OnPostAssemblyGeneration);
23+
}
24+
25+
//Runs just after assemblies are generated
26+
private void OnPostAssemblyGeneration()
27+
{
28+
29+
}
30+
}

Config.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace MelonAutoPdbGen;
2+
3+
public class Config
4+
{
5+
6+
}

MelonAutoPdbGen.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
</Project>

MelonAutoPdbGen.sln

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MelonAutoPdbGen", "MelonAutoPdbGen.csproj", "{8D80F043-B1BB-418A-8FDB-78D554E37F83}"
4+
EndProject
5+
Global
6+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7+
Debug|Any CPU = Debug|Any CPU
8+
Release|Any CPU = Release|Any CPU
9+
EndGlobalSection
10+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
11+
{8D80F043-B1BB-418A-8FDB-78D554E37F83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
12+
{8D80F043-B1BB-418A-8FDB-78D554E37F83}.Debug|Any CPU.Build.0 = Debug|Any CPU
13+
{8D80F043-B1BB-418A-8FDB-78D554E37F83}.Release|Any CPU.ActiveCfg = Release|Any CPU
14+
{8D80F043-B1BB-418A-8FDB-78D554E37F83}.Release|Any CPU.Build.0 = Release|Any CPU
15+
EndGlobalSection
16+
EndGlobal

0 commit comments

Comments
 (0)