mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +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)
|
int menuselect(void)
|
||||||
{
|
{
|
||||||
static int listsize;
|
int listsize = (ydim16-32)/8;
|
||||||
int i;
|
int i;
|
||||||
char ch, buffer[78], /*PK*/ *chptr;
|
char ch, buffer[96], /*PK*/ *chptr;
|
||||||
static char oldpath[BMAX_PATH];
|
static char oldpath[BMAX_PATH];
|
||||||
CACHE1D_FIND_REC *dir;
|
CACHE1D_FIND_REC *dir;
|
||||||
int bakpathsearchmode = pathsearchmode;
|
int bakpathsearchmode = pathsearchmode;
|
||||||
|
|
||||||
g_oldpath=oldpath; //PK: need it in menuselect_pk
|
g_oldpath=oldpath; //PK: need it in menuselect_pk
|
||||||
|
|
||||||
listsize = (ydim16-32)/8;
|
|
||||||
|
|
||||||
Bstrcpy(selectedboardfilename, oldpath);
|
Bstrcpy(selectedboardfilename, oldpath);
|
||||||
if (pathsearchmode)
|
if (pathsearchmode)
|
||||||
Bcanonicalisefilename(selectedboardfilename, 1); // clips off the last token and compresses relative path
|
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);
|
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;
|
buffer[sizeof(buffer)-1] = 0;
|
||||||
printext16(1,ydim16-8-1,8,0,buffer,0);
|
printext16(1,ydim16-8-1,8,0,buffer,0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue