Преглед изворни кода

Temporarily disable config file

Daniele Bartolini пре 12 година
родитељ
комит
b762ae949b
1 измењених фајлова са 9 додато и 10 уклоњено
  1. 9 10
      src/Device.cpp

+ 9 - 10
src/Device.cpp

@@ -540,16 +540,15 @@ void Device::check_preferred_settings()
 //-----------------------------------------------------------------------------
 void Device::read_engine_settings()
 {
-	DiskFile* file = m_filesystem->open("crown.cfg", FOM_READ);
-	MallocAllocator allocator;
-	JSONParser json(allocator, file);
-
-	char value[128];
-	int  width;
-	json.get_root().get_array("crown", 0).get_string("boot").to_string(value);
-	json.get_root().get_number("width").to_int(width);
-	os::printf("value = %s\n", value);
-	os::printf("width = %d\n", width);
+	// DiskFile* file = m_filesystem->open("crown.cfg", FOM_READ);
+
+	// HeapAllocator allocator;
+	// JSONParser json(allocator, file);
+
+	// json.get_root().get_number("width").to_int(m_preferred_window_width);
+	// json.get_root().get_number("height").to_int(m_preferred_window_height);
+
+	// m_filesystem->close(file);
 }