Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Query D2GL configs

Bayaraa edited this page Dec 21, 2023 · 1 revision

Since v1.3.2 you can query some d2gl boolean config from externally.
Might be usefull for other mods.
Howto: Include https://github.com/bayaraa/d2gl/blob/master/d2gl/src/d2gl.h and call d2glConfigQuery with config id.

Example to check if HD Text enabled:

#include "d2gl.h"
...
void someFunction() {
	...
	BOOL hd_text_enabled = d2glConfigQuery(D2GL_CONFIG_HD_TEXT);
	...
}
...
Clone this wiki locally