mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 05:10:00 +00:00
fix use of LoadFile
This commit is contained in:
parent
14f7dbade8
commit
77884e0a57
|
@ -139,7 +139,7 @@ vehicleRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header)
|
||||||
void
|
void
|
||||||
CreateVehiclePipe(void)
|
CreateVehiclePipe(void)
|
||||||
{
|
{
|
||||||
if(CFileMgr::LoadFile("neo/carTweakingTable.dat", work_buff, sizeof(work_buff), "r") == 0)
|
if(CFileMgr::LoadFile("neo/carTweakingTable.dat", work_buff, sizeof(work_buff), "r") <= 0)
|
||||||
printf("Error: couldn't open 'neo/carTweakingTable.dat'\n");
|
printf("Error: couldn't open 'neo/carTweakingTable.dat'\n");
|
||||||
else{
|
else{
|
||||||
char *fp = (char*)work_buff;
|
char *fp = (char*)work_buff;
|
||||||
|
@ -254,7 +254,7 @@ worldRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header)
|
||||||
void
|
void
|
||||||
CreateWorldPipe(void)
|
CreateWorldPipe(void)
|
||||||
{
|
{
|
||||||
if(CFileMgr::LoadFile("neo/worldTweakingTable.dat", work_buff, sizeof(work_buff), "r") == 0)
|
if(CFileMgr::LoadFile("neo/worldTweakingTable.dat", work_buff, sizeof(work_buff), "r") <= 0)
|
||||||
printf("Error: couldn't open 'neo/worldTweakingTable.dat'\n");
|
printf("Error: couldn't open 'neo/worldTweakingTable.dat'\n");
|
||||||
else
|
else
|
||||||
ReadTweakValueTable((char*)work_buff, WorldLightmapBlend);
|
ReadTweakValueTable((char*)work_buff, WorldLightmapBlend);
|
||||||
|
@ -500,7 +500,7 @@ rimSkinRenderCB(rw::Atomic *atomic, rw::d3d9::InstanceDataHeader *header)
|
||||||
void
|
void
|
||||||
CreateRimLightPipes(void)
|
CreateRimLightPipes(void)
|
||||||
{
|
{
|
||||||
if(CFileMgr::LoadFile("neo/rimTweakingTable.dat", work_buff, sizeof(work_buff), "r") == 0)
|
if(CFileMgr::LoadFile("neo/rimTweakingTable.dat", work_buff, sizeof(work_buff), "r") <= 0)
|
||||||
printf("Error: couldn't open 'neo/rimTweakingTable.dat'\n");
|
printf("Error: couldn't open 'neo/rimTweakingTable.dat'\n");
|
||||||
else{
|
else{
|
||||||
char *fp = (char*)work_buff;
|
char *fp = (char*)work_buff;
|
||||||
|
|
|
@ -147,7 +147,7 @@ CreateVehiclePipe(void)
|
||||||
using namespace rw;
|
using namespace rw;
|
||||||
using namespace rw::gl3;
|
using namespace rw::gl3;
|
||||||
|
|
||||||
if(CFileMgr::LoadFile("neo/carTweakingTable.dat", work_buff, sizeof(work_buff), "r") == 0)
|
if(CFileMgr::LoadFile("neo/carTweakingTable.dat", work_buff, sizeof(work_buff), "r") <= 0)
|
||||||
printf("Error: couldn't open 'neo/carTweakingTable.dat'\n");
|
printf("Error: couldn't open 'neo/carTweakingTable.dat'\n");
|
||||||
else{
|
else{
|
||||||
char *fp = (char*)work_buff;
|
char *fp = (char*)work_buff;
|
||||||
|
@ -264,7 +264,7 @@ CreateWorldPipe(void)
|
||||||
using namespace rw;
|
using namespace rw;
|
||||||
using namespace rw::gl3;
|
using namespace rw::gl3;
|
||||||
|
|
||||||
if(CFileMgr::LoadFile("neo/worldTweakingTable.dat", work_buff, sizeof(work_buff), "r") == 0)
|
if(CFileMgr::LoadFile("neo/worldTweakingTable.dat", work_buff, sizeof(work_buff), "r") <= 0)
|
||||||
printf("Error: couldn't open 'neo/worldTweakingTable.dat'\n");
|
printf("Error: couldn't open 'neo/worldTweakingTable.dat'\n");
|
||||||
else
|
else
|
||||||
ReadTweakValueTable((char*)work_buff, WorldLightmapBlend);
|
ReadTweakValueTable((char*)work_buff, WorldLightmapBlend);
|
||||||
|
@ -533,7 +533,7 @@ CreateRimLightPipes(void)
|
||||||
{
|
{
|
||||||
using namespace rw::gl3;
|
using namespace rw::gl3;
|
||||||
|
|
||||||
if(CFileMgr::LoadFile("neo/rimTweakingTable.dat", work_buff, sizeof(work_buff), "r") == 0)
|
if(CFileMgr::LoadFile("neo/rimTweakingTable.dat", work_buff, sizeof(work_buff), "r") <= 0)
|
||||||
printf("Error: couldn't open 'neo/rimTweakingTable.dat'\n");
|
printf("Error: couldn't open 'neo/rimTweakingTable.dat'\n");
|
||||||
else{
|
else{
|
||||||
char *fp = (char*)work_buff;
|
char *fp = (char*)work_buff;
|
||||||
|
|
Loading…
Reference in a new issue