mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Allow use of grp files which exist outside of the game directory
git-svn-id: https://svn.eduke32.com/eduke32@481 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0a1afbd3f3
commit
72ec04ff88
3 changed files with 21 additions and 15 deletions
|
@ -4644,8 +4644,8 @@ int ExtInit(void)
|
||||||
int i;
|
int i;
|
||||||
#if 1
|
#if 1
|
||||||
i=wm_ynbox("Texture Caching",
|
i=wm_ynbox("Texture Caching",
|
||||||
"Would you like to enable the on-disk texture cache? This feature may use around 140 megabytes of disk "
|
"Would you like to enable the on-disk texture cache? This feature will use an undetermined amount of space "
|
||||||
"space if you have a great deal of high resolution textures and skins, but textures will load dramatically "
|
"on your hard disk to store textures in your video card's native format, enabling them to load dramatically "
|
||||||
"faster after the first time they are loaded.\n\n"
|
"faster after the first time they are loaded.\n\n"
|
||||||
"You will generally want to say 'yes' here, especially if using the HRP.");
|
"You will generally want to say 'yes' here, especially if using the HRP.");
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -1576,7 +1576,7 @@ static void weaponnum(short ind,long x,long y,long num1, long num2,char ha)
|
||||||
|
|
||||||
if (VOLUMEONE && (ind > HANDBOMB_WEAPON || ind < 0))
|
if (VOLUMEONE && (ind > HANDBOMB_WEAPON || ind < 0))
|
||||||
{
|
{
|
||||||
minitextshade(x+1,y-4,"ORDER",20,11,2+8+16);
|
minitextshade(x+1,y-4,"ORDER",20,11,2+8+16+256);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8340,6 +8340,8 @@ static int loadgroupfiles(char *fn)
|
||||||
case T_LOADGRP:
|
case T_LOADGRP:
|
||||||
{
|
{
|
||||||
char *fn;
|
char *fn;
|
||||||
|
|
||||||
|
pathsearchmode = 1;
|
||||||
if (!scriptfile_getstring(script,&fn))
|
if (!scriptfile_getstring(script,&fn))
|
||||||
{
|
{
|
||||||
int j = initgroupfile(fn);
|
int j = initgroupfile(fn);
|
||||||
|
@ -8349,6 +8351,7 @@ static int loadgroupfiles(char *fn)
|
||||||
else
|
else
|
||||||
initprintf("Using group file %s.\n",fn);
|
initprintf("Using group file %s.\n",fn);
|
||||||
}
|
}
|
||||||
|
pathsearchmode = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case T_CACHESIZE:
|
case T_CACHESIZE:
|
||||||
|
@ -9701,8 +9704,8 @@ void app_main(int argc,char **argv)
|
||||||
if (glusetexcache == -1 || glusetexcachecompression == -1)
|
if (glusetexcache == -1 || glusetexcachecompression == -1)
|
||||||
{
|
{
|
||||||
i=wm_ynbox("Texture Caching",
|
i=wm_ynbox("Texture Caching",
|
||||||
"Would you like to enable the on-disk texture cache? This feature may use around 140 megabytes of disk "
|
"Would you like to enable the on-disk texture cache? This feature will use an undetermined amount of space "
|
||||||
"space if you have a great deal of high resolution textures and skins, but textures will load dramatically "
|
"on your hard disk to store textures in your video card's native format, enabling them to load dramatically "
|
||||||
"faster after the first time they are loaded.\n\n"
|
"faster after the first time they are loaded.\n\n"
|
||||||
"You will generally want to say 'yes' here, especially if using the HRP.");
|
"You will generally want to say 'yes' here, especially if using the HRP.");
|
||||||
if (i) useprecache = glusetexcompr = glusetexcache = glusetexcachecompression = 1;
|
if (i) useprecache = glusetexcompr = glusetexcache = glusetexcachecompression = 1;
|
||||||
|
@ -9826,18 +9829,12 @@ void app_main(int argc,char **argv)
|
||||||
|
|
||||||
initprintf("Main GRP file: %s.\n", duke3dgrp);
|
initprintf("Main GRP file: %s.\n", duke3dgrp);
|
||||||
initgroupfile(duke3dgrp);
|
initgroupfile(duke3dgrp);
|
||||||
|
|
||||||
i = kopen4load("DUKESW.BIN",1); // JBF 20030810
|
|
||||||
if (i!=-1)
|
|
||||||
{
|
|
||||||
shareware = 1;
|
|
||||||
kclose(i);
|
|
||||||
}
|
|
||||||
|
|
||||||
loadgroupfiles(duke3ddef);
|
loadgroupfiles(duke3ddef);
|
||||||
|
|
||||||
{
|
{
|
||||||
struct strllist *s;
|
struct strllist *s;
|
||||||
|
|
||||||
|
pathsearchmode = 1;
|
||||||
while (CommandGrps)
|
while (CommandGrps)
|
||||||
{
|
{
|
||||||
s = CommandGrps->next;
|
s = CommandGrps->next;
|
||||||
|
@ -9853,6 +9850,14 @@ void app_main(int argc,char **argv)
|
||||||
free(CommandGrps);
|
free(CommandGrps);
|
||||||
CommandGrps = s;
|
CommandGrps = s;
|
||||||
}
|
}
|
||||||
|
pathsearchmode = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
i = kopen4load("DUKESW.BIN",1); // JBF 20030810
|
||||||
|
if (i!=-1)
|
||||||
|
{
|
||||||
|
shareware = 1;
|
||||||
|
kclose(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
@ -25,7 +25,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
// PRIMITIVE
|
// PRIMITIVE
|
||||||
|
|
||||||
char haltsoundhack;
|
static int haltsoundhack;
|
||||||
|
|
||||||
int callsound(int sn,int whatsprite)
|
int callsound(int sn,int whatsprite)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -376,7 +377,7 @@ int setanimation(short animsect,long *animptr, long thegoal, long thevel)
|
||||||
|
|
||||||
void animatecamsprite(void)
|
void animatecamsprite(void)
|
||||||
{
|
{
|
||||||
short i;
|
int i;
|
||||||
|
|
||||||
if (camsprite <= 0) return;
|
if (camsprite <= 0) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue