mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-21 01:15:05 +00:00
Revert setup path
To avoid recursive directory creation
This commit is contained in:
parent
e95e090b77
commit
60b7d4b125
@ -1,5 +1,7 @@
|
|||||||
#include <Tactility/app/setup/Setup.h>
|
#include <Tactility/app/setup/Setup.h>
|
||||||
|
|
||||||
|
#include <tactility/paths.h>
|
||||||
|
|
||||||
#include <Tactility/StringUtils.h>
|
#include <Tactility/StringUtils.h>
|
||||||
#include <Tactility/app/timezone/TimeZone.h>
|
#include <Tactility/app/timezone/TimeZone.h>
|
||||||
#include <Tactility/app/wifimanage/WifiManage.h>
|
#include <Tactility/app/wifimanage/WifiManage.h>
|
||||||
@ -9,7 +11,6 @@
|
|||||||
#include <app/event.h>
|
#include <app/event.h>
|
||||||
#include <app/manager.h>
|
#include <app/manager.h>
|
||||||
#include <app/manifest.h>
|
#include <app/manifest.h>
|
||||||
#include <app/paths.h>
|
|
||||||
|
|
||||||
#include <lvgl_window_manager/window_manager.h>
|
#include <lvgl_window_manager/window_manager.h>
|
||||||
|
|
||||||
@ -39,11 +40,11 @@ constexpr auto* TAG = "setup";
|
|||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
bool getCompletedMarkerPath(std::string& outPath) {
|
bool getCompletedMarkerPath(std::string& outPath) {
|
||||||
char root[128];
|
char path[128];
|
||||||
if (app_paths_get_user_data_directory(manifest.id, root, sizeof(root)) != ERROR_NONE) {
|
if (paths_get_data_path(path, sizeof(path)) != ERROR_NONE) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
outPath = std::string(root) + "/.setup_complete";
|
outPath = std::string(path) + "/.setup_complete";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user