MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / FindMediaFile

Function FindMediaFile

kaplademo/source/kaplaDemo/MediaPath.cpp:58–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58char* FindMediaFile(const char *fname,char *buff)
59{
60 strcpy(buff,"d:\\");
61 strcat(buff,fname);
62
63 if(MediaFileExists(buff))
64 return buff;
65
66 DmMapDevkitDrive();
67
68 strcpy(buff,"DEVKIT:\\");
69 strcat(buff,fname);
70
71 if(MediaFileExists(buff))
72 return buff;
73
74 char msg[1024];
75 sprintf(msg, "Can't find media file: %s\n", fname);
76 OutputDebugString(msg);
77
78 return buff;
79}
80
81char* GetTempFilePath(char *buff)
82{

Callers 4

createTerrainMethod · 0.85
importRAWFileMethod · 0.85
newTextureMethod · 0.85

Calls 1

MediaFileExistsFunction · 0.85

Tested by

no test coverage detected