Re: [hatari-devel] Hatari debug mode |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
Le 17/08/2025 à 18:18, Eero Tamminen a écrit :
Hi, On 17.8.2025 19.04, Christian Zietz wrote:Nicolas Pomarède schrieb:As there's no "one solution fits all" for this problem of console vs GUI app vs "-W" switch, maybe we should decide if we provide 2 64 bitbinaries (console and gui) to cover most usage and drop the 32 bit version.This sounds like a suitable way forward.Yet, for the *GUI* version, I still find that Eero's patch makes sense. If someone presses AltGr+Pause, they would expect the debugger to pop up, and for that a console window needs to be opened. (If it wasn't already done with the "-W" switch.)Was there some way to detect whether code is compiled as Windows console program or GUI application, or do those builds need to use some define to differentiate them?So that Windows GUI version would force the separate console window, but in the Windows console version they would be no-ops (like is the case on every other platform)?
Hilooking at Vincent's mail a few days ago, I'm not sure it's possible to detect this, but maybe I misread (or perh there's a more convoluted method by testing some Windows' only properties for file handles 1 and 2)
Nicolas
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |