From 600f79510463e9f6dfdcd0b1d78a81afc10ebe90 Mon Sep 17 00:00:00 2001 From: Dniel97 Date: Fri, 14 Jul 2023 01:07:22 +0200 Subject: [PATCH] disable dipsw by default --- dist/idac/segatools.ini | 1 + platform/config.c | 2 +- platform/dipsw.c | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/idac/segatools.ini b/dist/idac/segatools.ini index c6660ca..feae701 100644 --- a/dist/idac/segatools.ini +++ b/dist/idac/segatools.ini @@ -41,6 +41,7 @@ region=4 [gpio] ; ALLS DIP switches. +enable=1 ; If multiple machines are present on the same LAN then set this to 1 on ; exactly one machine and set this to 0 on all others. diff --git a/platform/config.c b/platform/config.c index 62f2707..a9f4759 100644 --- a/platform/config.c +++ b/platform/config.c @@ -327,7 +327,7 @@ void dipsw_config_load(struct dipsw_config *cfg, const wchar_t *filename) assert(cfg != NULL); assert(filename != NULL); - cfg->enable = GetPrivateProfileIntW(L"gpio", L"enable", 1, filename); + cfg->enable = GetPrivateProfileIntW(L"gpio", L"enable", 0, filename); wcscpy_s(name, _countof(name), L"dipsw0"); diff --git a/platform/dipsw.c b/platform/dipsw.c index e6af610..ee6dd91 100644 --- a/platform/dipsw.c +++ b/platform/dipsw.c @@ -3,7 +3,6 @@ #include #include -// #include #include "platform/dipsw.h" #include "platform/vfs.h"