Daniele Bartolini 10 лет назад
Родитель
Сommit
28fbaa5a8e
3 измененных файлов с 5 добавлено и 1 удалено
  1. 0 0
      samples/01.hello-world/boot.config
  2. 4 0
      src/config.h
  3. 1 1
      src/device.cpp

+ 0 - 0
samples/01.hello-world/crown.config → samples/01.hello-world/boot.config


+ 4 - 0
src/config.h

@@ -49,6 +49,10 @@
 	#define CROWN_DEFAULT_CONSOLE_PORT 10001
 	#define CROWN_DEFAULT_CONSOLE_PORT 10001
 #endif // CROWN_DEFAULT_CONSOLE_PORT
 #endif // CROWN_DEFAULT_CONSOLE_PORT
 
 
+#ifndef CROWN_BOOT_CONFIG
+	#define CROWN_BOOT_CONFIG "boot"
+#endif // CROWN_BOOT_CONFIG
+
 #ifndef CROWN_DATA_DIRECTORY
 #ifndef CROWN_DATA_DIRECTORY
 	#define CROWN_DATA_DIRECTORY "data"
 	#define CROWN_DATA_DIRECTORY "data"
 #endif // CROWN_DATA_DIRECTORY
 #endif // CROWN_DATA_DIRECTORY

+ 1 - 1
src/device.cpp

@@ -426,7 +426,7 @@ void Device::read_config()
 		project_path += '/';
 		project_path += '/';
 	}
 	}
 
 
-	project_path += "crown";
+	project_path += CROWN_BOOT_CONFIG;
 
 
 	const StringId64 config_name(project_path.c_str());
 	const StringId64 config_name(project_path.c_str());