mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 09:11:27 +01:00
fix segfault when ini file does not exist
This commit is contained in:
parent
efaa1803ea
commit
8eab7da8f1
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ ALLEGRO_CONFIG *config;
|
||||||
|
|
||||||
void InitConfig() {
|
void InitConfig() {
|
||||||
config = al_load_config_file("SuperDerpy.ini");
|
config = al_load_config_file("SuperDerpy.ini");
|
||||||
|
if (!config) config=al_create_config();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetConfigOption(char* section, char* name, char* value) {
|
void SetConfigOption(char* section, char* name, char* value) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue