override_config_data(3)
β¨ override_config_data(3) β¨
okay so bestie, welcome to the Allegro manual β yes, that Allegro, the game programming library π. This page is all about override_config_data, and it's lowkey one of the cutest little functions in the config family π.
πΈ NAME πΈ
override_config_data β specifies a block of data containing config overrides. Allegro game programming library. π
π¦ SYNOPSIS π¦
#include <allegro.h>
void override_config_data(const char *data, int length);
π DESCRIPTION π
So basically, this is the version of override_config_file() that works with a block of data already read into memory β like, it's not gonna go open a file for you, you already did that part, main character π«Ά. You just have to tell it how big that block is, and you do that by specifying the length in bytes. Periodt.
Example, because we love a demo β¨:
/* Force German as system language, Spanish keyboard map. */
const char *override_data = "[system]\n"
"language=DE\n"
"keyboard=ES";
override_config_data(override_data, ustrsize(override_data));
β οΈ Important, no cap: this function and override_config_file() are mutually exclusive β meaning if you call one, it cancels out the effects of the other. They literally cannot coexist. Pick a lane, bestie ππ.
π SEE ALSO π
And that's the whole vibe, babes π β this page came to you straight from Allegro, version 4.4.3 β¨ππ¦. Go forth and override responsibly, iykyk π πΈ
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms