| 884 | #endif |
| 885 | |
| 886 | StringTableEntry Platform::getExecutableName() |
| 887 | { |
| 888 | #ifdef UNICODE |
| 889 | StringTableEntry exe; |
| 890 | getExecutableInfo( NULL, &exe ); |
| 891 | return exe; |
| 892 | #else |
| 893 | static StringTableEntry cen = NULL; |
| 894 | if (!cen) |
| 895 | { |
| 896 | char cen_buf[2048]; |
| 897 | GetModuleFileNameA( NULL, cen_buf, 2047); |
| 898 | forwardslash(cen_buf); |
| 899 | |
| 900 | char *delimiter = dStrrchr( cen_buf, '/' ); |
| 901 | |
| 902 | if( delimiter != NULL ) |
| 903 | { |
| 904 | *delimiter = 0x00; |
| 905 | delimiter++; |
| 906 | cen = StringTable->insert(delimiter); |
| 907 | } |
| 908 | else |
| 909 | cen = StringTable->insert(cen_buf); |
| 910 | } |
| 911 | return cen; |
| 912 | #endif |
| 913 | } |
| 914 | |
| 915 | StringTableEntry Platform::getExecutablePath() |
| 916 | { |
nothing calls this directly
no test coverage detected