Fix misplaced #endif and missing #ifdef ADDONS_MANAGER / #endif.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7179 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
b2bb12d250
commit
976f2f463a
@ -573,7 +573,6 @@ const std::string &FileManager::getAddonsDir() const
|
||||
{
|
||||
return m_addons_dir;
|
||||
} // getADdonsDir
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
/** Returns a filename in the addons directory.
|
||||
@ -582,7 +581,9 @@ const std::string &FileManager::getAddonsDir() const
|
||||
std::string FileManager::getAddonsFile(const std::string &name)
|
||||
{
|
||||
return getAddonsDir()+"/"+name;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
std::string FileManager::getConfigDir() const
|
||||
{
|
||||
|
@ -91,11 +91,13 @@ void MainMenuScreen::init()
|
||||
// the key bindings for the first player the default again.
|
||||
input_manager->getDeviceList()->clearLatestUsedDevice();
|
||||
|
||||
#ifdef ADDONS_MANAGER
|
||||
if(!addons_manager->onlineReady())
|
||||
{
|
||||
IconButtonWidget* w = this->getWidget<IconButtonWidget>("addons");
|
||||
w->setDeactivated();
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user