filesystem: fix maps autocomplete for Anachronox

This commit is contained in:
Denis Pauk 2024-06-23 18:38:35 +03:00
parent 6a3859cd9e
commit 4268fedce0
7 changed files with 49 additions and 0 deletions

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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",

View file

@ -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)
{

View file

@ -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)
{

View file

@ -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. */