mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
sources are broken
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -85,7 +85,6 @@ public:
|
||||
void registerFunctions();
|
||||
|
||||
int lua_UIButton_setOnClick();
|
||||
|
||||
int lua_UIElement_getParent();
|
||||
int lua_UIElement_destroy();
|
||||
|
||||
|
@@ -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()));
|
||||
|
@@ -86,6 +86,7 @@ public:
|
||||
virtual UIContainerPtr asUIContainer() { return UIContainerPtr(); }
|
||||
virtual const char *getScriptableName() const { return "UIElement"; }
|
||||
|
||||
void setOnDestroy(
|
||||
friend class UIContainer;
|
||||
|
||||
private:
|
||||
|
@@ -100,7 +100,7 @@ int main(int argc, const char *argv[])
|
||||
if(!g_configs.load("config.yml"))
|
||||
logInfo("Could not read configuration file, default configurations will be used.");
|
||||
|
||||
logInfo("OTClient 0.1.0");
|
||||
logInfo("OTClient 0.2.0");
|
||||
|
||||
// create the window
|
||||
Platform::createWindow(g_configs.getInteger("window x"), g_configs.getInteger("window y"),
|
||||
|
Reference in New Issue
Block a user