[Ohrrpgce] SVN: teeemcee/13381 scons: cleanup related to transpiling and to minos variant of win32

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 23:09:11 -0700 (Sun, 29 Oct 2023) 67 scons: cleanup related to transpiling and to minos variant of win32 --- U wip/SConscript U wip/fb/fb_stub.h ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster

[Ohrrpgce] SVN: teeemcee/13380 Add Blackbox target, based on changes by Matthew Gambrell

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 23:09:02 -0700 (Sun, 29 Oct 2023) 57 Add Blackbox target, based on changes by Matthew Gambrell --- U wip/SConscript U wip/common.rbas U wip/config.bi U wip/config.h U wip/fb/fb_config.h U wip/fb/fb_stub.h U wip/miscc.c U wip/music_sdl.bas U wip/reload.bi U wi

[Ohrrpgce] SVN: teeemcee/13379 gfx_sdl2: continue if SDL_Init fails to initialise joysticks/gamepads

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:55:56 -0700 (Sun, 29 Oct 2023) 194 gfx_sdl2: continue if SDL_Init fails to initialise joysticks/gamepads This happens when running in Firefox (but not Chrome) when accessed over the internet (not localhost) and served over HTTP. --- U wip/gfx_sdl2.bas

[Ohrrpgce] SVN: teeemcee/13378 web: get gfx_sdl & music_sdl to compile. However the screen is black.

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:55:48 -0700 (Sun, 29 Oct 2023) 223 web: get gfx_sdl & music_sdl to compile. However the screen is black. Note gfx_sdl2 works, this is an attempt to get gfx_sdl working too. music_sdl does work. The problem may be that I haven't fully fixed FB's SDL.bi yet. --- U wip/gfx_s

[Ohrrpgce] SVN: teeemcee/13377 Silence incorrect GCC 12 warning in sha1.c/h

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:55:40 -0700 (Sun, 29 Oct 2023) 141 Silence incorrect GCC 12 warning in sha1.c/h Some discussion at https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21781#note_1811423 --- U wip/lib/sha1.c U wip/lib/sha1.h ___ Ohrrpgc

[Ohrrpgce] SVN: teeemcee/13376 Fix bug that caused // in the file browser when you start in /

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:55:32 -0700 (Sun, 29 Oct 2023) 110 Fix bug that caused // in the file browser when you start in / Was easy to run into on Android and Emscripten --- U wip/browse.bas ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org htt

[Ohrrpgce] SVN: teeemcee/13375 web: don't use shell(), set signal handlers, or use return_address

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:55:23 -0700 (Sun, 29 Oct 2023) 87 web: don't use shell(), set signal handlers, or use return_address None are supported. --- U wip/miscc.c U wip/os_unix.c U wip/os_unix2.bas U wip/util.bas ___ Ohrrpgce mailing list ohrrpgc

[Ohrrpgce] SVN: teeemcee/13374 web: write debug logging to the browser console

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:55:14 -0700 (Sun, 29 Oct 2023) 47 web: write debug logging to the browser console --- U wip/os_unix.c ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.o

[Ohrrpgce] SVN: teeemcee/13373 Make C and FB declarations of RGBcolor union more identical

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:55:06 -0700 (Sun, 29 Oct 2023) 137 Make C and FB declarations of RGBcolor union more identical I thought there might be a need for this, but there's not. But good to have. --- U wip/blend.h U wip/surface.h ___ Ohrrpgce mailing

[Ohrrpgce] SVN: teeemcee/13371 web: don't use thread local storage (TLS) for the cliprect: add NO_TLS #

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:54:45 -0700 (Sun, 29 Oct 2023) 78 web: don't use thread local storage (TLS) for the cliprect: add NO_TLS #define --- U wip/allmodex.bas U wip/config.bi U wip/config.h U wip/os_unix.c ___ Ohrrpgce mailing list ohrrpgce@lists

[Ohrrpgce] SVN: teeemcee/13372 gfx_surfaceCopy was wrongly declared. Caused an emscripten error when ca

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:54:52 -0700 (Sun, 29 Oct 2023) 77 gfx_surfaceCopy was wrongly declared. Caused an emscripten error when called. --- U wip/surface.h ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinf

[Ohrrpgce] SVN: teeemcee/13370 web: Ensure vectors are 8-byte aligned

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:54:34 -0700 (Sun, 29 Oct 2023) 136 web: Ensure vectors are 8-byte aligned Fixes an alignment fault error thrown by emscripten's -sSAFE_HEAP=1, and it's a good idea anyway --- U wip/array.c ___ Ohrrpgce mailing list ohrrpgce@list

[Ohrrpgce] SVN: teeemcee/13369 All test programs print "All passed." and other minor cleanup

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:54:21 -0700 (Sun, 29 Oct 2023) 61 All test programs print "All passed." and other minor cleanup --- U wip/common.rbas U wip/rbtest.rbas U wip/testing.bi U wip/util.bas U wip/vectortest.bas ___ Ohrrpgce mailing list ohrrpg

[Ohrrpgce] SVN: teeemcee/13368 web: Fix another potential memory misalignment bug in stringhash; add te

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:54:11 -0700 (Sun, 29 Oct 2023) 154 web: Fix another potential memory misalignment bug in stringhash; add tests I didn't actually see emscripten throw an error for this until I added tests. --- U wip/miscc.c U wip/util.bas ___

[Ohrrpgce] SVN: teeemcee/13367 web: Fix RELOAD memory alignment bug under emscripten asm.js

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:54:03 -0700 (Sun, 29 Oct 2023) 357 web: Fix RELOAD memory alignment bug under emscripten asm.js HashZString broke strict C memory alignment rules which are followed by asm.js (non-wasm target) but which don't need to be on x86 and modern ARM. Caused reloadtest failures where

[Ohrrpgce] SVN: teeemcee/13366 New & improved filetest tests, and support for web/minos targets

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:53:54 -0700 (Sun, 29 Oct 2023) 120 New & improved filetest tests, and support for web/minos targets Got rid of use of accesses to unreadable system files. --- U wip/filetest.bas ___ Ohrrpgce mailing list ohrrpgce@lists.motherham

[Ohrrpgce] SVN: teeemcee/13365 Fix simplify_path_further edgecase when fromdir is the root directory

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 19:53:46 -0700 (Sun, 29 Oct 2023) 111 Fix simplify_path_further edgecase when fromdir is the root directory Also fix utiltest failure if CURDIR is / --- U wip/util.bas ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http

[Ohrrpgce] SVN: teeemcee/13364 Replace running_on_desktop() with windowed_platform()

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 18:22:40 -0700 (Sun, 29 Oct 2023) 245 Replace running_on_desktop() with windowed_platform() ..which is what it was actually used for. (No point having a running_on_desktop() function which isn't used.) Disables (but doesn't hide) Switch to Windowed/Fullscreen menu options on w

[Ohrrpgce] SVN: teeemcee/13363 web: Add #define MINIMAL_OS and litter it and __FB_JS__ around. Based on

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 18:22:31 -0700 (Sun, 29 Oct 2023) 329 web: Add #define MINIMAL_OS and litter it and __FB_JS__ around. Based on patch by Blain There are many more places where MINIMAL_OS should be used but this is nearly enough to get the emscripten port to compile, since Emscripten emulates a

[Ohrrpgce] SVN: teeemcee/13362 web: ohrrpgce-shell-template.html: remove the emulated terminal, other c

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 18:22:16 -0700 (Sun, 29 Oct 2023) 176 web: ohrrpgce-shell-template.html: remove the emulated terminal, other changes (patch by Blain) Also give the tabindex=-1, important for focusing (in a later commit). --- U wip/web/ohrrpgce-shell-template.html _

[Ohrrpgce] SVN: teeemcee/13361 web: Import FB's fb_shell.html, renamed to ohrrpgce-shell-template.html

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 18:22:09 -0700 (Sun, 29 Oct 2023) 71 web: Import FB's fb_shell.html, renamed to ohrrpgce-shell-template.html --- A wip/web/ A wip/web/ohrrpgce-shell-template.html ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://l

[Ohrrpgce] SVN: teeemcee/13360 scons: Add web/js (emscripten) target; based on patch by Blain Maguire.

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 18:22:01 -0700 (Sun, 29 Oct 2023) 71 scons: Add web/js (emscripten) target; based on patch by Blain Maguire. --- U wip/SConscript ___ Ohrrpgce mailing list ohrrpgce@lists.motherhamster.org http://lists.motherhamster.org/listinfo.cgi

[Ohrrpgce] SVN: teeemcee/13359 scons: Various cleanup, particularly of environments

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 18:21:53 -0700 (Sun, 29 Oct 2023) 213 scons: Various cleanup, particularly of environments Look for libfb[...].a rather than fbrt0.o because not all platforms actually use the latter, so although FB currently always builds it, it might not in future. --- U wip/SConscript ___

[Ohrrpgce] SVN: teeemcee/13358 Further update android/compile-using-toolchain.sh for non-standalone too

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 18:21:46 -0700 (Sun, 29 Oct 2023) 263 Further update android/compile-using-toolchain.sh for non-standalone toolchains Still doesn't fully work due to gcc/clang not knowing the paths to system headers. But I thought it was working before, when I added STANDALONE as a config opti

[Ohrrpgce] SVN: teeemcee/13357 scons: reimplement android-source=1 using transpiledir=, much less hacky

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 18:21:38 -0700 (Sun, 29 Oct 2023) 143 scons: reimplement android-source=1 using transpiledir=, much less hacky Also, no longer refuse to compile targets other than game and custom. --- U wip/SConscript U wip/ohrbuild.py ___ Ohrrp

[Ohrrpgce] SVN: teeemcee/13356 scons: cleanup of CFLAGS variables. Some changes to flags passed to comp

2023-10-29 Thread subversion--- via Ohrrpgce
teeemcee 2023-10-29 18:21:29 -0700 (Sun, 29 Oct 2023) 707 scons: cleanup of CFLAGS variables. Some changes to flags passed to compilers. -Renamed TRUE_CFLAGS -> NONFBC_CFLAGS and FBCC_CFLAGS -> FBC_CFLAGS -CFLAGS is now also used for compiling -gen gcc generated .c files, so that it's not necess