mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-22 03:41:19 +00:00
filesystem: fix maps autocomplete for Anachronox
This commit is contained in:
parent
6a3859cd9e
commit
4268fedce0
7 changed files with 49 additions and 0 deletions
|
@ -735,6 +735,13 @@ R_FindPic(const char *name, findimage_t find_image)
|
|||
Com_sprintf(pathname, sizeof(pathname), "pics/%s.pcx", namewe);
|
||||
image = find_image(pathname, it_pic);
|
||||
|
||||
/* Anachronox */
|
||||
if (!image)
|
||||
{
|
||||
Com_sprintf(pathname, sizeof(pathname), "graphics/%s.pcx", namewe);
|
||||
image = find_image(pathname, it_pic);
|
||||
}
|
||||
|
||||
/* Heretic 2 */
|
||||
if (!image)
|
||||
{
|
||||
|
|
|
@ -38,6 +38,13 @@ Draw_InitLocal(void)
|
|||
{
|
||||
/* load console characters */
|
||||
draw_chars = R_FindPic("conchars", (findimage_t)R_FindImage);
|
||||
|
||||
/* Anachronox */
|
||||
if (!draw_chars)
|
||||
{
|
||||
draw_chars = R_FindPic ("fonts/conchars", (findimage_t)R_FindImage);
|
||||
}
|
||||
|
||||
/* Daikatana */
|
||||
if (!draw_chars)
|
||||
{
|
||||
|
|
|
@ -38,6 +38,13 @@ GL3_Draw_InitLocal(void)
|
|||
{
|
||||
/* load console characters */
|
||||
draw_chars = R_FindPic("conchars", (findimage_t)GL3_FindImage);
|
||||
|
||||
/* Anachronox */
|
||||
if (!draw_chars)
|
||||
{
|
||||
draw_chars = R_FindPic ("fonts/conchars", (findimage_t)GL3_FindImage);
|
||||
}
|
||||
|
||||
/* Daikatana */
|
||||
if (!draw_chars)
|
||||
{
|
||||
|
|
|
@ -38,6 +38,19 @@ GL4_Draw_InitLocal(void)
|
|||
{
|
||||
/* load console characters */
|
||||
draw_chars = R_FindPic("conchars", (findimage_t)GL4_FindImage);
|
||||
|
||||
/* Anachronox */
|
||||
if (!draw_chars)
|
||||
{
|
||||
draw_chars = R_FindPic ("fonts/conchars", (findimage_t)GL4_FindImage);
|
||||
}
|
||||
|
||||
/* Daikatana */
|
||||
if (!draw_chars)
|
||||
{
|
||||
draw_chars = R_FindPic ("dkchars", (findimage_t)GL4_FindImage);
|
||||
}
|
||||
|
||||
if (!draw_chars)
|
||||
{
|
||||
Com_Error(ERR_FATAL, "%s: Couldn't load pics/conchars.pcx",
|
||||
|
|
|
@ -48,6 +48,13 @@ void
|
|||
Draw_InitLocal (void)
|
||||
{
|
||||
draw_chars = R_FindPic ("conchars", (findimage_t)R_FindImage);
|
||||
|
||||
/* Anachronox */
|
||||
if (!draw_chars)
|
||||
{
|
||||
draw_chars = R_FindPic ("fonts/conchars", (findimage_t)R_FindImage);
|
||||
}
|
||||
|
||||
/* Daikatana */
|
||||
if (!draw_chars)
|
||||
{
|
||||
|
|
|
@ -32,6 +32,13 @@ Draw_InitLocal
|
|||
void Draw_InitLocal (void)
|
||||
{
|
||||
draw_chars = R_FindPic ("conchars", (findimage_t)Vk_FindImage);
|
||||
|
||||
/* Anachronox */
|
||||
if (!draw_chars)
|
||||
{
|
||||
draw_chars = R_FindPic ("fonts/conchars", (findimage_t)Vk_FindImage);
|
||||
}
|
||||
|
||||
/* Daikatana */
|
||||
if (!draw_chars)
|
||||
{
|
||||
|
|
|
@ -1036,6 +1036,7 @@ FS_LoadDAT(const char *packPath)
|
|||
strncpy(prefix, prefixpos + 1,
|
||||
Q_min(strlen(prefixpos) - 5, sizeof(prefix) - 1));
|
||||
|
||||
Q_strlwr(prefix);
|
||||
prefix_size = strlen(prefix);
|
||||
|
||||
/* Parse the directory. */
|
||||
|
|
Loading…
Reference in a new issue