From 82ac7ef44bffa1f5ce96a004e19c14878d353569 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Wed, 13 Aug 2014 05:11:44 +0000 Subject: [PATCH] Set the clock to 0 before reading application link files 0 is the default clock value, which doesn't get written to link files if it's not changed. The clock was previously uninitialised before reading link files, so it would get written with a random value if there was none before. --- src/linkapp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/linkapp.cpp b/src/linkapp.cpp index 6cdd7ce..73b0cb0 100644 --- a/src/linkapp.cpp +++ b/src/linkapp.cpp @@ -93,6 +93,8 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, const char* linkfile) file = linkfile; #ifdef ENABLE_CPUFREQ setClock(gmenu2x->getDefaultAppClock()); +#else + setClock(0); #endif selectordir = ""; selectorfilter = "*";