void Context::takeScreenShot()
{
static uint8_t* data = new GLubyte[App.viewport.size.x * App.viewport.size.y * 4];
memset(data, 0, App.viewport.size.x * App.viewport.size.y * 4);
glPixelStorei(GL_PACK_ALIGNMENT, 1);
glReadPixels(App.viewport.offset.x, App.viewport.offset.y, App.viewport.size.x, App.viewport.size.y, GL_RGBA, GL_UNSIGNED_BYTE, data);
std::string file_name = helpers::saveScreenShot(data, App.viewport.size.x, App.viewport.size.y);
}
helpers::getProcOffset(helpers::getVersionOffset({ "d2win.dll" }, { -10168 }, { -10168 }, { -10205 }, { -10014 }, { -10196 }, { -10187 }, { -10107 }, { 0xFA7A0 }))
d2versions: 109d,110,111,111b,112,113c,113d,114d