Skip to content

Commit e04f58c

Browse files
committed
fixed #435
1 parent c09d464 commit e04f58c

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

Il2CppDumper/Program.cs

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,23 @@ static void Main(string[] args)
8989
ShowHelp();
9090
return;
9191
}
92-
try
92+
if (metadataPath == null)
9393
{
94-
if (Init(il2cppPath, metadataPath, out var metadata, out var il2Cpp))
95-
{
96-
Dump(metadata, il2Cpp, outputDir);
97-
}
94+
Console.WriteLine($"ERROR: Metadata file not found or encrypted.");
9895
}
99-
catch (Exception e)
96+
else
10097
{
101-
Console.WriteLine(e);
98+
try
99+
{
100+
if (Init(il2cppPath, metadataPath, out var metadata, out var il2Cpp))
101+
{
102+
Dump(metadata, il2Cpp, outputDir);
103+
}
104+
}
105+
catch (Exception e)
106+
{
107+
Console.WriteLine(e);
108+
}
102109
}
103110
if (config.RequireAnyKey)
104111
{

0 commit comments

Comments
 (0)