From 43dc7419790ca50200028d4c0effd5b8f6794a8d Mon Sep 17 00:00:00 2001 From: himanshugoel2797 Date: Mon, 6 Jul 2015 14:21:14 -0400 Subject: [PATCH] Fixed graphics bug --- main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 0634d8c..a0cf4a1 100644 --- a/main.c +++ b/main.c @@ -616,10 +616,13 @@ void start(void) strcpy(hbrewPath, cwd); strcat(hbrewPath, file->name); + end_video(); printf("Loading %s", hbrewPath); - loadHomebrew(hbrewPath, 1); - startHomebrew(1); - + int result = loadHomebrew(hbrewPath, 1); + printf("Load result: %d", result); + if(result >= 0)startHomebrew(1); + else printf("Load failed"); + init_video(); } // Delete Application