| 30 | using namespace Hikari; |
| 31 | |
| 32 | std::string getCurrentWorkingDirectory() |
| 33 | { |
| 34 | char currentPath[_MAX_PATH + 1] = {0}; |
| 35 | #if MYGUI_PLATFORM == MYGUI_PLATFORM_WIN32 |
| 36 | ::GetCurrentDirectoryA(MAX_PATH, currentPath); |
| 37 | #else |
| 38 | getcwd(currentPath, _MAX_PATH); |
| 39 | #endif |
| 40 | std::string workingDirectory = currentPath; |
| 41 | |
| 42 | return workingDirectory + "\\"; |
| 43 | } |
| 44 | |
| 45 | FlashControl::FlashControl(HikariWidget* _owner, HMODULE _lib) : |
| 46 | mOwner(_owner), |