| 806 | //} |
| 807 | |
| 808 | StringTableEntry Platform::getCurrentDirectory() |
| 809 | { |
| 810 | TempAlloc< TCHAR > buf( 2048 ); |
| 811 | |
| 812 | GetCurrentDirectory( buf.size, buf ); |
| 813 | forwardslash( buf ); |
| 814 | |
| 815 | #ifdef UNICODE |
| 816 | char* utf8 = createUTF8string( buf ); |
| 817 | StringTableEntry result = StringTable->insert( utf8 ); |
| 818 | SAFE_DELETE_ARRAY( utf8 ); |
| 819 | return result; |
| 820 | #else |
| 821 | return StringTable->insert( buf ); |
| 822 | #endif |
| 823 | } |
| 824 | |
| 825 | bool Platform::setCurrentDirectory(StringTableEntry newDir) |
| 826 | { |
nothing calls this directly
no test coverage detected