Fix cfg access

--HG--
branch : feature-material-editor
hg/feature/material-editor
kaetemi 9 years ago
parent ab790a5f08
commit 596a4ba7a3

@ -68,7 +68,7 @@ public:
inline NL3D::UDriver *getDriver() { return m_Driver; } inline NL3D::UDriver *getDriver() { return m_Driver; }
inline NL3D::UTextContext *getTextContext() { return m_TextContext; } inline NL3D::UTextContext *getTextContext() { return m_TextContext; }
inline NL3D::UScene *getScene() { return m_Scene; } // inline NL3D::UScene *getScene() { return m_Scene; }
public slots: public slots:
void saveScreenshot(); void saveScreenshot();
@ -87,7 +87,7 @@ private:
NL3D::UDriver *m_Driver; NL3D::UDriver *m_Driver;
NL3D::UTextContext *m_TextContext; NL3D::UTextContext *m_TextContext;
NL3D::UScene *m_Scene; // NL3D::UScene *m_Scene;
bool m_Direct3D; bool m_Direct3D;

@ -113,7 +113,10 @@ sint main(int argc, char **argv)
QFile(":/data/andbasr.ttf").copy(QString::fromStdString(localAppData + "andbasr.ttf")); QFile(":/data/andbasr.ttf").copy(QString::fromStdString(localAppData + "andbasr.ttf"));
QFile(":/data/mesh_editor_default.cfg").copy(QString::fromStdString(appData + "mesh_editor_default.cfg")); QFile(":/data/mesh_editor_default.cfg").copy(QString::fromStdString(appData + "mesh_editor_default.cfg"));
if (!QFileInfo(QString::fromStdString(appData + "mesh_editor.cfg")).exists()) if (!QFileInfo(QString::fromStdString(appData + "mesh_editor.cfg")).exists())
{
QFile(":/data/mesh_editor.cfg").copy(QString::fromStdString(appData + "mesh_editor.cfg")); QFile(":/data/mesh_editor.cfg").copy(QString::fromStdString(appData + "mesh_editor.cfg"));
CFile::setRWAccess(appData + "mesh_editor.cfg");
}
NLQT::preApplication(); NLQT::preApplication();
QApplication app(argc, const_cast<char **>(argv)); QApplication app(argc, const_cast<char **>(argv));

Loading…
Cancel
Save