* WINDOWS function to get the current directory. * NOTE: getenv("CD") does not work for Windows Vista. * The Windows function GetCurrentDirectory is used instead. * * @return The path of the current directory */
| 802 | * @return The path of the current directory |
| 803 | */ |
| 804 | string ASConsole::getCurrentDirectory(const string& fileName_) const |
| 805 | { |
| 806 | char currdir[MAX_PATH]; |
| 807 | currdir[0] = '\0'; |
| 808 | if (!GetCurrentDirectory(sizeof(currdir), currdir)) |
| 809 | error("Cannot find file", fileName_.c_str()); |
| 810 | return string(currdir); |
| 811 | } |
| 812 | |
| 813 | /** |
| 814 | * WINDOWS function to resolve wildcards and recurse into sub directories. |