+ if CHKVAR("a314") {
+ if (!a314_initialized) {
+ int32_t res = a314_init();
+ if (res != 0) {
+ printf("[AMIGA] Failed to enable A314 emulation, error return code: %d.\n", res);
+ } else {
+ printf("[AMIGA] A314 emulation enabled.\n");
+ add_z2_pic(ACTYPE_A314, 0);
+ a314_emulation_enabled = 1;
+ a314_initialized = 1;
+ }
+ } else {
+ add_z2_pic(ACTYPE_A314, 0);
+ a314_emulation_enabled = 1;
+ }
+ }
+ if CHKVAR("a314_conf") {
+ if (val && strlen(val) != 0) {
+ a314_set_config_file(val);
+ }
+ }