Skip to content

Commit

Permalink
Error if no arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keightiie committed Jan 10, 2023
1 parent 2849954 commit fb6e79c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SpiritHunterEXGtractor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ internal class Program
{
static void Main(string[] args)
{
if(args.Length == 0) { Console.WriteLine("No arguments provided."); Console.ReadKey(); return; }
BinaryReader br = new BinaryReader(new FileStream(args[0], FileMode.Open));
if (ASCIIEncoding.ASCII.GetString(br.ReadBytes(3)) != "EXG")
{
Expand Down

0 comments on commit fb6e79c

Please sign in to comment.