63 }; |
63 }; |
64 |
64 |
65 // ============================================================================= |
65 // ============================================================================= |
66 // Load the configuration from file |
66 // Load the configuration from file |
67 bool config::load () { |
67 bool config::load () { |
|
68 printf ("config::load: loading configuration file.\n"); |
|
69 |
68 // Locale must be disabled for atof |
70 // Locale must be disabled for atof |
69 setlocale (LC_NUMERIC, "C"); |
71 setlocale (LC_NUMERIC, "C"); |
70 |
72 |
71 FILE* fp = fopen (filepath().chars(), "r"); |
73 FILE* fp = fopen (filepath().chars(), "r"); |
72 char linedata[MAX_INI_LINE]; |
74 char linedata[MAX_INI_LINE]; |