Fixed a problem with project parsing

This commit is contained in:
Allen Webster 2018-05-20 23:12:08 -07:00
parent ad922fb5ee
commit 70160d16dc
1 changed files with 53 additions and 53 deletions

View File

@ -157,13 +157,13 @@ parse_project__data(Partition *scratch, String file_name, String data, String fi
project->loaded = true;
// Set new project directory
{
{
project->dir = project->dir_space;
String str = make_fixed_width_string(project->dir_space);
copy(&str, file_dir);
terminate_with_null(&str);
project->dir_len = str.size;
}
}
// Read the settings from project.4coder
String str = {0};
@ -215,12 +215,12 @@ parse_project__data(Partition *scratch, String file_name, String data, String fi
}
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;
}
}
}
}
}
}
return(parsed);