Fixed a problem with project parsing
This commit is contained in:
parent
ad922fb5ee
commit
70160d16dc
|
@ -157,13 +157,13 @@ parse_project__data(Partition *scratch, String file_name, String data, String fi
|
||||||
project->loaded = true;
|
project->loaded = true;
|
||||||
|
|
||||||
// Set new project directory
|
// Set new project directory
|
||||||
{
|
{
|
||||||
project->dir = project->dir_space;
|
project->dir = project->dir_space;
|
||||||
String str = make_fixed_width_string(project->dir_space);
|
String str = make_fixed_width_string(project->dir_space);
|
||||||
copy(&str, file_dir);
|
copy(&str, file_dir);
|
||||||
terminate_with_null(&str);
|
terminate_with_null(&str);
|
||||||
project->dir_len = str.size;
|
project->dir_len = str.size;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read the settings from project.4coder
|
// Read the settings from project.4coder
|
||||||
String str = {0};
|
String str = {0};
|
||||||
|
@ -215,12 +215,12 @@ parse_project__data(Partition *scratch, String file_name, String data, String fi
|
||||||
}
|
}
|
||||||
|
|
||||||
bool32 save_dirty_buffers = false;
|
bool32 save_dirty_buffers = false;
|
||||||
if (config_compound_bool_member(parsed, compound, "save_dirty_files", 3, &footer_panel)){
|
if (config_compound_bool_member(parsed, compound, "save_dirty_files", 3, &save_dirty_buffers)){
|
||||||
command->save_dirty_buffers = save_dirty_buffers;
|
command->save_dirty_buffers = save_dirty_buffers;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return(parsed);
|
return(parsed);
|
||||||
|
|
Loading…
Reference in New Issue