mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Don't findfile shader flatfiles
This commit is contained in:
parent
00cf5ff50f
commit
29185a0d2a
1 changed files with 1 additions and 8 deletions
|
|
@ -2507,14 +2507,7 @@ static boolean ReadShaderFlatFile(const char *filename, size_t *size, void *dest
|
||||||
strncpy(filename_only_buf, filename_buf, 512);
|
strncpy(filename_only_buf, filename_buf, 512);
|
||||||
filename_only_buf[512 - 1] = '\0';
|
filename_only_buf[512 - 1] = '\0';
|
||||||
sprintf(filename_buf, "%s/shaders/%s", srb2path, filename_only_buf);
|
sprintf(filename_buf, "%s/shaders/%s", srb2path, filename_only_buf);
|
||||||
if (findfile(filename_buf, NULL, true))
|
if ((flat_handle = fopen(filename_buf, "rb")) == NULL)
|
||||||
{
|
|
||||||
if ((flat_handle = fopen(filename_buf, "rb")) == NULL)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue