sources are broken

This commit is contained in:
Eduardo Bart
2011-04-22 21:12:28 -03:00
parent 96e0b1e909
commit 02ada0b82e
11 changed files with 19 additions and 42 deletions

View File

@@ -502,7 +502,7 @@ std::string Platform::getAppUserDir()
std::stringstream sdir;
sdir << PHYSFS_getUserDir() << "/." << win32.appName << "/";
if((mkdir(sdir.str().c_str()) != 0) && (errno != EEXIST))
logError("ERROR: Couldn't create directory for saving configuration file. (%s)", sdir.str().c_str());
flogError("ERROR: Couldn't create directory for saving configuration file. (%s)", sdir.str().c_str());
return sdir.str();
}

View File

@@ -85,7 +85,6 @@ public:
void registerFunctions();
int lua_UIButton_setOnClick();
int lua_UIElement_getParent();
int lua_UIElement_destroy();

View File

@@ -45,6 +45,7 @@ void UIElement::destroy()
setVisible(false);
setEnabled(false);
g_dispatcher.addTask(boost::bind(&UIContainer::removeChild, getParent(), asUIElement()));
if(getParent()) {
// schedule removal from parent
g_dispatcher.addTask(boost::bind(&UIContainer::removeChild, getParent(), asUIElement()));

View File

@@ -86,6 +86,7 @@ public:
virtual UIContainerPtr asUIContainer() { return UIContainerPtr(); }
virtual const char *getScriptableName() const { return "UIElement"; }
void setOnDestroy(
friend class UIContainer;
private: