Commit 3daa3423 authored by 魔大农's avatar 魔大农 🍀

Working on install script

parent b9d547ee
......@@ -55,18 +55,20 @@ void MasterControl::Setup()
SetRandomSeed(TIME->GetSystemTime());
FileSystem* fs{GetSubsystem<FileSystem>()};
String resourcePath{"~/.local/share/quatter"};
engineParameters_["WindowTitle"] = "Quatter";
engineParameters_["LogName"] = fs->GetAppPreferencesDir("urho3d", "logs")+"Quatter.log";
engineParameters_["WindowIcon"] = "icon.png";
//Add resource path
String resourcePath{fs->GetUserDocumentsDir()+".local/share/quatter"};
if (!fs->DirExists(resourcePath)){
Log::Write(1, resourcePath);
resourcePath = "Resources";
}
if (fs->DirExists(resourcePath))
engineParameters_["ResourcePaths"] = resourcePath;
engineParameters_["WindowTitle"] = "Quatter";
engineParameters_["LogName"] = fs->GetAppPreferencesDir("urho3d", "logs")+"Quatter.log";
engineParameters_["WindowIcon"] = "icon.png";
// engineParameters_["FullScreen"] = false;
// engineParameters_["WindowWidth"] = 800;
// engineParameters_["WindowHeight"] = 600;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment