make tui a build option

This commit is contained in:
Nick Chan committed 2023-03-29 18:46:01 +08:00
1 parent e96cd19295
commit 1214aed3a7
9 files changed
+27 -15

No files matched your search

+2 -2
View File
@@ -93,7 +93,7 @@ int build_checks(void) {
return 0;
}
#ifdef DEV_BUILD
#ifdef TUI
bool tui_started = false;
#endif
@@ -114,7 +114,7 @@ int palera1n(int argc, char *argv[]) {
if ((ret = optparse(argc, argv))) goto cleanup;
if (!checkrain_option_enabled(host_flags, host_option_device_info))
if (checkrain_option_enabled(host_flags, host_option_palerain_version)) goto normal_exit;
#ifdef DEV_BUILD
#ifdef TUI
if (checkrain_option_enabled(host_flags, host_option_tui)) {
ret = tui();
if (ret) goto cleanup;