MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / OutputError

Function OutputError

emmy_tool/src/windows/utility.cpp:178–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177
178void OutputError(DWORD error) {
179 char buffer[1024];
180 if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, nullptr, error, 0, buffer, 1024, nullptr)) {
181 std::string message = "Error: ";
182 message += buffer;
183 MessageEvent(message, MessageType_Error);
184 }
185}
186
187bool GetStartupDirectory(char *path, int maxPathLength) {
188 if (!GetModuleFileName(nullptr, path, maxPathLength)) {

Callers 1

InjectDllFunction · 0.85

Calls 1

MessageEventFunction · 0.85

Tested by

no test coverage detected