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
This commit is contained in:
Shawn Hoffman 2009-05-15 18:50:38 +00:00
parent 87d07f3d17
commit 91a3099a31
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}
}
}