From 7156b53d6f00c8bff742eebf5bae0c59debd1655 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 25 Jul 2002 01:24:31 +0000 Subject: [PATCH] Now supports wrong-cased menu filenames on Unix. --- src/sbbs3/prntfile.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/sbbs3/prntfile.cpp b/src/sbbs3/prntfile.cpp index 951771a781..ea34b6eac4 100644 --- a/src/sbbs3/prntfile.cpp +++ b/src/sbbs3/prntfile.cpp @@ -143,7 +143,7 @@ void sbbs_t::printtail(char *str, int lines, long mode) /****************************************************************************/ void sbbs_t::menu(char *code) { - char str[256],path[256]; + char str[MAX_PATH+1],path[MAX_PATH+1]; sys_status&=~SS_ABORT; if(menu_file[0]) @@ -156,12 +156,15 @@ void sbbs_t::menu(char *code) strcat(str,code); strcat(str,"."); sprintf(path,"%s%s",str,useron.misc&WIP ? "wip":"rip"); - if(!(useron.misc&(RIP|WIP)) || !fexist(path)) { + if(!(useron.misc&(RIP|WIP)) || !fexistcase(path)) { sprintf(path,"%smon",str); - if((useron.misc&(COLOR|ANSI))!=ANSI || !fexist(path)) { + if((useron.misc&(COLOR|ANSI))!=ANSI || !fexistcase(path)) { sprintf(path,"%sans",str); - if(!(useron.misc&ANSI) || !fexist(path)) - sprintf(path,"%sasc",str); } } } + if(!(useron.misc&ANSI) || !fexistcase(path)) + sprintf(path,"%sasc",str); + } + } + } printfile(path,P_OPENCLOSE); } -- GitLab