Skip to content
Snippets Groups Projects
Commit f8b3f7ab authored by Kayz's avatar Kayz
Browse files

change var naming

parent bf3d51dd
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
......@@ -129,18 +129,17 @@ while(bbs.online) {
console.print(format(bbs.text(AddTextFilePath)
,system.data_dir, usrsec[cursec].code.toLowerCase()));
var path = console.getstr(path, 128, K_EDIT|K_LINE|K_TRIM);
var path2;
if(!path || console.aborted)
break;
if(!file_exists(path)) {
path2 = backslash(txtsec_data(usrsec[cursec])) + path;
if (!file_exists(path2)) {
var path_textarea = backslash(txtsec_data(usrsec[cursec])) + path;
if (!file_exists(path_textarea)) {
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 = path2;
path = path_textarea;
}
}
console.printfile(path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment