mirror of
				https://github.com/Ryujinx/Opentk.git
				synced 2025-11-04 15:05:07 +00:00 
			
		
		
		
	Added some early argument verification.
This commit is contained in:
		
							parent
							
								
									20399f2da7
								
							
						
					
					
						commit
						fec6c18702
					
				| 
						 | 
				
			
			@ -38,6 +38,19 @@ namespace OpenTK.Rewrite
 | 
			
		|||
                return;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            // Argument error checking
 | 
			
		||||
            if (!File.Exists(Options.TargetAssembly))
 | 
			
		||||
            {
 | 
			
		||||
                Console.Error.WriteLine($"Target assembly not found. \n" +
 | 
			
		||||
                                        $"Please check the given path ({Options.TargetAssembly}).");
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (!File.Exists(Path.ChangeExtension(Options.TargetAssembly, "pdb")))
 | 
			
		||||
            {
 | 
			
		||||
                Console.Error.WriteLine("Debugging symbols for target assembly not found. \n" +
 | 
			
		||||
                                        "Please make sure that debugging symbols are being generated.");
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            var program = new Program();
 | 
			
		||||
            var file = args[0];
 | 
			
		||||
            var key = args[1];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue