[Project64] Add some logging to AppInit

This commit is contained in:
zilmar 2016-02-01 16:57:59 +11:00
parent 4203cbd2ef
commit 71710be0b8
1 changed files with 3 additions and 2 deletions

View File

@ -160,7 +160,7 @@ const char * AppName(void)
static bool ParseCommand(int32_t argc, char **argv)
{
if (argc == 1)
if (argc <= 1)
{
return true;
}
@ -191,7 +191,7 @@ bool AppInit(CNotification * Notify, const char * BaseDirectory, int argc, char
{
g_Notify = Notify;
InitializeLog();
WriteTrace(TraceAppInit, TraceDebug, "Starting");
WriteTrace(TraceAppInit, TraceDebug, "Starting (BaseDirectory: %s)", BaseDirectory ? BaseDirectory : "null");
if (Notify == NULL)
{
WriteTrace(TraceAppInit, TraceError, "No Notification class passed");
@ -204,6 +204,7 @@ bool AppInit(CNotification * Notify, const char * BaseDirectory, int argc, char
WriteTrace(TraceAppInit, TraceDebug, "Parse Commands");
if (!ParseCommand(argc, argv))
{
WriteTrace(TraceAppInit, TraceError, "Failed to Parse Commands, exiting now");
return false;
}