| 464 | } |
| 465 | |
| 466 | String Win32Platform::GetMainDirectory() |
| 467 | { |
| 468 | Char buffer[MAX_PATH]; |
| 469 | GetModuleFileNameW(nullptr, buffer, MAX_PATH); |
| 470 | const String str(buffer); |
| 471 | int32 pos = str.FindLast(TEXT('\\')); |
| 472 | if (pos != -1 && ++pos < str.Length()) |
| 473 | return str.Left(pos); |
| 474 | return str; |
| 475 | } |
| 476 | |
| 477 | String Win32Platform::GetExecutableFilePath() |
| 478 | { |