z4none
10/26/2016 - 1:18 PM

get application directory

get application directory

char path[MAX_PATH] = { 0 };
GetModuleFileNameA(NULL, path, MAX_PATH);
strrchr(path, '\\')[0] = '\0';