uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 972d2a494b776daa1e5bf3186f128a3dfd773358
parent 256e597e48d7ab8feb0f236edf4a5f164cee3576
Author: Andrew Alderwick <andrew@alderwick.co.uk>
Date:   Sun, 19 Dec 2021 11:39:41 +0000

Add --console switch to build with Console support on Windows.

Diffstat:
MREADME.md | 2++
Mbuild.sh | 7++++++-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -55,6 +55,8 @@ cd uxn ./build.sh ``` +If you'd like to work with the Console device in `uxnemu.exe`, run `./build.sh --console` instead: this will bring up an extra window for console I/O unless you run `uxnemu.exe` in Command Prompt or PowerShell. + ## Getting Started ### Emulator diff --git a/build.sh b/build.sh @@ -30,7 +30,12 @@ CC="${CC:-cc}" CFLAGS="${CFLAGS:--std=c89 -Wall -Wno-unknown-pragmas}" case "$(uname -s 2>/dev/null)" in MSYS_NT*|MINGW*) # MSYS2 on Windows - UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)" + if [ "${1}" = '--console' ]; + then + UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs | sed -e 's/ -mwindows//g')" + else + UXNEMU_LDFLAGS="-static $(sdl2-config --cflags --static-libs)" + fi ;; Darwin) # macOS CFLAGS="${CFLAGS} -Wno-typedef-redefinition"