1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

Simplify again the prototype of LinkApp as gmenu2x->input is public

This commit is contained in:
Paul Cercueil
2013-09-05 19:20:54 -04:00
parent 1ff17d83c9
commit b73391486f
3 changed files with 8 additions and 15 deletions

View File

@@ -57,14 +57,11 @@ using namespace std;
static const char *tokens[] = { "%f", "%F", "%u", "%U", };
#ifdef HAVE_LIBOPK
LinkApp::LinkApp(GMenu2X *gmenu2x_, InputManager &inputMgr_,
const char* linkfile, struct OPK *opk)
LinkApp::LinkApp(GMenu2X *gmenu2x_, const char* linkfile, struct OPK *opk)
#else
LinkApp::LinkApp(GMenu2X *gmenu2x_, InputManager &inputMgr_,
const char* linkfile)
LinkApp::LinkApp(GMenu2X *gmenu2x_, const char* linkfile)
#endif
: Link(gmenu2x_, BIND(&LinkApp::start))
, inputMgr(inputMgr_)
{
manual = "";
file = linkfile;
@@ -481,7 +478,7 @@ void LinkApp::showManual() {
repaint = false;
}
switch(inputMgr.waitForPressedButton()) {
switch(gmenu2x->input.waitForPressedButton()) {
case InputManager::SETTINGS:
case InputManager::CANCEL:
close = true;