From f78ac8e05afb95391fea6e43171946c55003082b Mon Sep 17 00:00:00 2001 From: Hominem te esse Date: Wed, 7 Mar 2012 21:17:18 +0100 Subject: [PATCH] Added hidden options to be able to define your own device delay before loading ART/config files. On slow device (USB) it may not be recommended to put very low values. Original value was: 8 Add those lines to your conf_opl.cfg to define yours: app_frames_delay=x hdd_frames_delay=x eth_frames_delay=x usb_frames_delay=x x from 0 to ... N Recommended value is 1. (With 0 OPL will flash art when browsing your game list, some may like, some not :)) --- src/appsupport.c | 3 +-- src/ethsupport.c | 1 + src/hddsupport.c | 3 +-- src/usbsupport.c | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/appsupport.c b/src/appsupport.c index 19d96c2..dbf7f55 100644 --- a/src/appsupport.c +++ b/src/appsupport.c @@ -43,9 +43,8 @@ static char* appGetELFName(char* name) { void appInit(void) { LOG("APPSUPPORT Init\n"); appForceUpdate = 1; - + configGetInt(configGetByType(CONFIG_OPL), "app_frames_delay", &appItemList.delay); configApps = configGetByType(CONFIG_APPS); - appItemList.enabled = 1; } diff --git a/src/ethsupport.c b/src/ethsupport.c index bae87e9..07fa17f 100644 --- a/src/ethsupport.c +++ b/src/ethsupport.c @@ -194,6 +194,7 @@ void ethInit(void) { memset(ethModifiedDVDPrev, 0, 8); ethGameCount = 0; ethGames = NULL; + configGetInt(configGetByType(CONFIG_OPL), "eth_frames_delay", ðGameList.delay); gNetworkStartup = ERROR_ETH_NOT_STARTED; ioPutRequest(IO_CUSTOM_SIMPLEACTION, ðLoadModules); ethGameList.enabled = 1; diff --git a/src/hddsupport.c b/src/hddsupport.c index 0a4c37d..d8c2aff 100644 --- a/src/hddsupport.c +++ b/src/hddsupport.c @@ -180,9 +180,8 @@ void hddLoadModules(void) { void hddInit(void) { LOG("HDDSUPPORT Init\n"); hddForceUpdate = 1; - + configGetInt(configGetByType(CONFIG_OPL), "hdd_frames_delay", &hddGameList.delay); ioPutRequest(IO_CUSTOM_SIMPLEACTION, &hddInitModules); - hddGameList.enabled = 1; } diff --git a/src/usbsupport.c b/src/usbsupport.c index 8b24d9b..27c9eb6 100644 --- a/src/usbsupport.c +++ b/src/usbsupport.c @@ -124,9 +124,8 @@ void usbInit(void) { memset(usbModifiedDVDPrev, 0, 8); usbGameCount = 0; usbGames = NULL; - + configGetInt(configGetByType(CONFIG_OPL), "usb_frames_delay", &usbGameList.delay); ioPutRequest(IO_CUSTOM_SIMPLEACTION, &usbInitModules); - usbGameList.enabled = 1; } -- 2.11.4.GIT