]> Kevux Git Server - fll/commitdiff
Update: Change default controller settings path to './'.
authorKevin Day <thekevinday@gmail.com>
Tue, 5 Jul 2022 13:47:27 +0000 (08:47 -0500)
committerKevin Day <thekevinday@gmail.com>
Tue, 5 Jul 2022 13:47:27 +0000 (08:47 -0500)
This feels more natural to me now that I am writing and testing the controller settings.
I originally wanted the default to be self contained.
If I want to run in a sub-directory such as 'controller/', then just pass '-s controller'.

level_3/controller/c/main-common.h

index bfb5271902ca64c204a5c4725d4c29b4a7ea18cc..741a7b1269624813c4fa51f80d01630db546d133 100644 (file)
@@ -48,8 +48,8 @@ extern "C" {
     #define CONTROLLER_path_pid_s        _override_controller_path_pid_
     #define CONTROLLER_path_pid_s_length _override_controller_path_pid_length_
   #else
-    #define CONTROLLER_path_pid_s        "controller/run"
-    #define CONTROLLER_path_pid_s_length 14
+    #define CONTROLLER_path_pid_s        "./run"
+    #define CONTROLLER_path_pid_s_length 5
   #endif // defined(_override_controller_path_pid_) && defined(_override_controller_path_pid_length_)
 
   // The init pid path is a system-specific path and needs to be more easily controlled at compile time.
@@ -91,8 +91,8 @@ extern "C" {
     #define CONTROLLER_path_settings_s        _override_controller_path_settings_
     #define CONTROLLER_path_settings_s_length _override_controller_path_settings_length_
   #else
-    #define CONTROLLER_path_settings_s        "controller"
-    #define CONTROLLER_path_settings_s_length 10
+    #define CONTROLLER_path_settings_s        "./"
+    #define CONTROLLER_path_settings_s_length 2
   #endif // defined(_override_controller_path_settings_) && defined(_override_controller_path_settings_length_)
 
   // The init settings path is a system-specific path part and needs to be more easily controlled at compile time.
@@ -112,8 +112,8 @@ extern "C" {
     #define CONTROLLER_path_socket_s        _override_controller_path_socket_
     #define CONTROLLER_path_socket_s_length _override_controller_path_socket_length_
   #else
-    #define CONTROLLER_path_socket_s        "controller/run"
-    #define CONTROLLER_path_socket_s_length 14
+    #define CONTROLLER_path_socket_s        "./run"
+    #define CONTROLLER_path_socket_s_length 5
   #endif // defined(_override_controller_path_socket_) && defined(_override_controller_path_socket_length_)
 
   // The socket path is a system-specific path and needs to be more easily controlled at compile time.