mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-31 01:11:15 +00:00
Add buildvfs, abstraction layer for file I/O.
Currently it passes calls through to the system libraries as before. Also adds an incomplete implementation on PhysFS. git-svn-id: https://svn.eduke32.com/eduke32@7359 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5c9b921285
commit
7414f29348
78 changed files with 1108 additions and 991 deletions
|
@ -26,9 +26,7 @@ Ken Silverman's official web site: http://www.advsys.net/ken
|
|||
#include "palette.h"
|
||||
#include "tilepacker.h"
|
||||
|
||||
#ifndef _WIN32
|
||||
extern int32_t filelength(int h); // kplib.c
|
||||
#endif
|
||||
#include "vfs.h"
|
||||
|
||||
extern char textfont[2048], smalltextfont[2048];
|
||||
|
||||
|
@ -2363,8 +2361,8 @@ int32_t gloadtile_hi(int32_t dapic,int32_t dapalnum, int32_t facen, hicreplctyp
|
|||
fn = hicr->filename;
|
||||
}
|
||||
|
||||
int32_t filh;
|
||||
if (EDUKE32_PREDICT_FALSE((filh = kopen4load(fn, 0)) < 0))
|
||||
buildvfs_kfd filh;
|
||||
if (EDUKE32_PREDICT_FALSE((filh = kopen4load(fn, 0)) == buildvfs_kfd_invalid))
|
||||
{
|
||||
OSD_Printf("hightile: %s (pic %d) not found\n", fn, dapic);
|
||||
return -2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue