diff --git a/src/app/main.cpp b/src/app/main.cpp index e5b7d428..f9d4f1a7 100755 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -46,7 +46,7 @@ int run(const char* path, const char *entry, const char* profile, const char* te else db_path=globals::path_env.userdata_path.location+"db.sqlite"; if(!std::filesystem::exists(db_path)){ - if(t==nullptr)std::filesystem::copy_file(globals::path_env.app_path.location+"commons/db.sqlite",db_path); + if(t==nullptr)std::filesystem::copy_file(globals::path_env.root.location+"db.sqlite",db_path); } } diff --git a/src/loader.cpp b/src/loader.cpp index 1db52348..b103e1d5 100644 --- a/src/loader.cpp +++ b/src/loader.cpp @@ -36,7 +36,7 @@ app_loader::app_loader(const char *profile, const char* path){ std::cout << "Loading embedded profile instead\n\n"; } else{ - doc.load_string(""); + doc.load_string(""); } }