Skip to content
Snippets Groups Projects
Commit d1a50dcd authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'mlong/textsec'

parents 09a9ef4d b57e41ef
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!101Fix text_sec issues on add file
Pipeline #1292 passed
......@@ -131,8 +131,17 @@ while(bbs.online) {
var path = console.getstr(path, 128, K_EDIT|K_LINE|K_TRIM);
if(!path || console.aborted)
break;
if(!file_exists(path))
path = backslash(txtsec_data(usrsec[cursec])) + path;
if(!file_exists(path)) {
var default_path = backslash(txtsec_data(usrsec[cursec])) + path;
if (!file_exists(default_path)) {
console.print(bbs.text(FileNotFound));
break;
} else {
// only change the path if the file was found, otherwise
// leave it alone so they can correct it
path = default_path;
}
}
console.printfile(path);
console.crlf();
console.print(bbs.text(AddTextFileDesc));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment