MCPcopy Create free account
hub / github.com/MyGUI/mygui / getCurrentWorkingDirectory

Function getCurrentWorkingDirectory

Plugins/Plugin_HikariWidget/FlashControl.cpp:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30using namespace Hikari;
31
32std::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
45FlashControl::FlashControl(HikariWidget* _owner, HMODULE _lib) :
46 mOwner(_owner),

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected