src: Fixed command order at startup
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#ifndef INCLUDES_H
|
||||
#define INCLUDES_H
|
||||
|
||||
void setup(int argc, char *argv[]);
|
||||
void setupPlatform(int argc, char *argv[]);
|
||||
void setupApp(int argc, char *argv[]);
|
||||
|
||||
// platform specific include
|
||||
#include "platform_includes/@PLATFORM_INCLUDE@"
|
||||
|
||||
@@ -8,7 +8,11 @@
|
||||
#include "utility/file/FileSystem.h"
|
||||
#include "isTrial.h"
|
||||
|
||||
void setup(int argc, char *argv[])
|
||||
void setupPlatform(int argc, char *argv[])
|
||||
{
|
||||
}
|
||||
|
||||
void setupApp(int argc, char *argv[])
|
||||
{
|
||||
if (AppPath::getAppPath().empty())
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "qt/utility/utilityQt.h"
|
||||
#include "utility/UserPaths.h"
|
||||
|
||||
void setup(int argc, char *argv[])
|
||||
void setupPlatform(int argc, char *argv[])
|
||||
{
|
||||
// ----------------------------------------------------------------------------
|
||||
// This makes relative paths work in C++ in Xcode by changing directory to the Resources folder inside the .app bundle
|
||||
@@ -65,4 +65,8 @@ void setup(int argc, char *argv[])
|
||||
// ----------------------------------------------------------------------------
|
||||
}
|
||||
|
||||
void setupApp(int argc, char *argv[])
|
||||
{
|
||||
}
|
||||
|
||||
#endif // INCLUDES_MAC_H
|
||||
|
||||
@@ -10,7 +10,11 @@
|
||||
|
||||
#include "platform_includes/deploy.h"
|
||||
|
||||
void setup(int argc, char *argv[])
|
||||
void setupPlatform(int argc, char *argv[])
|
||||
{
|
||||
}
|
||||
|
||||
void setupApp(int argc, char *argv[])
|
||||
{
|
||||
#ifdef DEPLOY
|
||||
std::string path = std::getenv("APPDATA");
|
||||
|
||||
Reference in New Issue
Block a user