mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 01:11:28 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@945 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
bdd43da5c0
commit
4755e2594d
1 changed files with 3 additions and 5 deletions
|
@ -6896,17 +6896,15 @@ int menuselect_pk(int direction) // 20080104: jump to next (direction!=0) or pre
|
|||
|
||||
int menuselect(void)
|
||||
{
|
||||
static int listsize;
|
||||
int listsize = (ydim16-32)/8;
|
||||
int i;
|
||||
char ch, buffer[78], /*PK*/ *chptr;
|
||||
char ch, buffer[96], /*PK*/ *chptr;
|
||||
static char oldpath[BMAX_PATH];
|
||||
CACHE1D_FIND_REC *dir;
|
||||
int bakpathsearchmode = pathsearchmode;
|
||||
|
||||
g_oldpath=oldpath; //PK: need it in menuselect_pk
|
||||
|
||||
listsize = (ydim16-32)/8;
|
||||
|
||||
Bstrcpy(selectedboardfilename, oldpath);
|
||||
if (pathsearchmode)
|
||||
Bcanonicalisefilename(selectedboardfilename, 1); // clips off the last token and compresses relative path
|
||||
|
@ -6944,7 +6942,7 @@ int menuselect(void)
|
|||
}
|
||||
printext16(halfxdim16-(8*strlen(buffer)/2), 4, 12,0,buffer,0);
|
||||
|
||||
Bsnprintf(buffer,78,"(%d dirs, %d files) %s",numdirs,numfiles,selectedboardfilename);
|
||||
Bsnprintf(buffer,sizeof(buffer)-1,"(%d dirs, %d files) %s",numdirs,numfiles,selectedboardfilename);
|
||||
buffer[sizeof(buffer)-1] = 0;
|
||||
printext16(1,ydim16-8-1,8,0,buffer,0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue