Rev 1 | Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 15 | ||
---|---|---|---|
Line 670... | Line 670... | ||
670 | } |
670 | } |
671 | 671 | ||
672 | // IDA: int __usercall PDCheckDriveExists2@<EAX>(char *pThe_path@<EAX>, char *pFile_name@<EDX>, tU32 pMin_size@<EBX>) |
672 | // IDA: int __usercall PDCheckDriveExists2@<EAX>(char *pThe_path@<EAX>, char *pFile_name@<EDX>, tU32 pMin_size@<EBX>) |
673 | int PDCheckDriveExists2(char* pThe_path, char* pFile_name, tU32 pMin_size) { |
673 | int PDCheckDriveExists2(char* pThe_path, char* pFile_name, tU32 pMin_size) { |
674 | struct stat buf; |
674 | struct stat buf; |
675 | //void (*old_critical_isr)(); |
675 | //void (*old_critical_isr)(); // Pierre-Marie Baty -- unused variable |
676 | int stat_failed; |
676 | int stat_failed; |
677 | //char slasher[4]; |
677 | //char slasher[4]; // Pierre-Marie Baty -- unused variable |
678 | char the_path[256]; |
678 | char the_path[256]; |
679 | LOG_TRACE("(\"%s\", \"%s\", %d)", pThe_path, pFile_name, pMin_size); |
679 | LOG_TRACE("(\"%s\", \"%s\", %d)", pThe_path, pFile_name, pMin_size); |
680 | 680 | ||
681 | //strcpy(slasher, "?:\\"); |
681 | //strcpy(slasher, "?:\\"); // Pierre-Marie Baty -- unused variable |
682 | if (pFile_name) { |
682 | if (pFile_name) { |
683 | PathCat(the_path, pThe_path, pFile_name); |
683 | PathCat(the_path, pThe_path, pFile_name); |
684 | } else { |
684 | } else { |
685 | strcpy(the_path, pThe_path); |
685 | strcpy(the_path, pThe_path); |
686 | } |
686 | } |