| 56 | } |
| 57 | |
| 58 | char* 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 | |
| 81 | char* GetTempFilePath(char *buff) |
| 82 | { |
no test coverage detected