| 913 | } |
| 914 | |
| 915 | StringTableEntry Platform::getExecutablePath() |
| 916 | { |
| 917 | #ifdef UNICODE |
| 918 | StringTableEntry path; |
| 919 | getExecutableInfo( &path, NULL ); |
| 920 | return path; |
| 921 | #else |
| 922 | static StringTableEntry cen = NULL; |
| 923 | if (!cen) |
| 924 | { |
| 925 | char cen_buf[2048]; |
| 926 | GetModuleFileNameA( NULL, cen_buf, 2047); |
| 927 | forwardslash(cen_buf); |
| 928 | |
| 929 | char *delimiter = dStrrchr( cen_buf, '/' ); |
| 930 | |
| 931 | if( delimiter != NULL ) |
| 932 | *delimiter = 0x00; |
| 933 | |
| 934 | cen = StringTable->insert(cen_buf); |
| 935 | } |
| 936 | return cen; |
| 937 | #endif |
| 938 | } |
| 939 | |
| 940 | //-------------------------------------- |
| 941 | bool Platform::isFile(const char *pFilePath) |
nothing calls this directly
no test coverage detected