From bf208df81fc3463f45208f1d52e0c46c8982d9a3 Mon Sep 17 00:00:00 2001 From: Link Mauve Date: Tue, 24 Jun 2025 03:39:26 +0200 Subject: [PATCH] Fix MSVC build in _ShowGpu initializers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit “A default member initializer is not allowed for a member of an anonymous struct within a union.” --- desmume/src/NDSSystem.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/desmume/src/NDSSystem.h b/desmume/src/NDSSystem.h index 320ab455f..edbf2c466 100644 --- a/desmume/src/NDSSystem.h +++ b/desmume/src/NDSSystem.h @@ -598,11 +598,9 @@ extern struct TCommonSettings bool spu_advanced = true; struct _ShowGpu { + _ShowGpu() : main(true), sub(true) {} union { - struct { - bool main = true; - bool sub = true; - }; + struct { bool main, sub; }; bool screens[2]; }; } showGpu;