From 91a3099a315355998e3598dacb6acc95008a0092 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Fri, 15 May 2009 18:50:38 +0000 Subject: [PATCH] make dsptool fail if input file path doesn't exist git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3245 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/DSPTool/Src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/DSPTool/Src/main.cpp b/Source/DSPTool/Src/main.cpp index 8d02e7f93f..8896f1e79d 100644 --- a/Source/DSPTool/Src/main.cpp +++ b/Source/DSPTool/Src/main.cpp @@ -248,6 +248,11 @@ int main(int argc, const char *argv[]) return 1; } input_name = argv[i]; + if (!File::Exists(input_name.c_str())) + { + printf("Input path does not exist.\n"); + return 1; + } } }