mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 18:46:06 +00:00
main: validate arguments
This commit is contained in:
parent
b211342d8a
commit
0aaf516358
|
@ -33,7 +33,10 @@
|
|||
// Main code
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
||||
if (argc == 1) {
|
||||
printf("Usage: %s <module path>\n", argv[0]);
|
||||
return -1;
|
||||
}
|
||||
|
||||
logging::init(true);//init logging
|
||||
const char* const path = argv[1]; //argument 1 is the path of self file to boot
|
||||
|
|
Loading…
Reference in a new issue