mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-28 16:43:20 -08:00
do not assume non-empty config file destinations are okay if we don't have a config path established - will cause overwrites on 'opens'
This commit is contained in:
1 parent
2f4aa6567e
commit
d7685be114
1 file changed
+4
-4
@@ -13868,10 +13868,10 @@ rd_frame(void)
|
|||||||
B32 file_is_okay = 0;
|
B32 file_is_okay = 0;
|
||||||
{
|
{
|
||||||
String8 stored_path = (kind == RD_CmdKind_OpenUser ? rd_state->user_path : rd_state->project_path);
|
String8 stored_path = (kind == RD_CmdKind_OpenUser ? rd_state->user_path : rd_state->project_path);
|
||||||
file_is_okay = ((file_props.size == 0 && file_props.created == 0) ||
|
file_is_okay = (((file_props.size == 0 && file_props.created == 0) ||
|
||||||
str8_match(file_path, stored_path, 0) ||
|
str8_match(file_path, stored_path, 0) ||
|
||||||
stored_path.size == 0 ||
|
stored_path.size == 0) &&
|
||||||
str8_match(str8_prefix(file_data, 9), str8_lit("// raddbg"), 0));
|
(file_data.size == 0 || str8_match(str8_prefix(file_data, 9), str8_lit("// raddbg"), 0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
//- rjf: determine file's version
|
//- rjf: determine file's version
|
||||||
|
|||||||
Reference in new issue
Block a user