Commit Graph

88 Commits

Author SHA1 Message Date
OBattler
64e85fdfbc Retooled ZIP emulation into more expansible Removable Disk emulation, ZIP 100 and 250 types remain selectable, alongside the new 86Box (ie. generic) option. 2025-07-25 16:30:40 +02:00
Alexander Babikov
5918356719 Fix keybinds being saved in native/localized form
Keybinds are now both saved and read in portable form
and only converted to native one for display purposes, fixing
them not being read correctly when certain languages are set.

Also get rid of qPrintable() due to it using the system 8-bit codepage
instead of UTF-8, and some unnecessary QString ↔ C string conversions

Co-Authored-by: Cacodemon345 <wahil1976@outlook.com>
2025-05-07 19:23:28 +05:00
Alexander Babikov
e1007d2377 Get rid of Windows LCIDs as numeric language IDs 2025-04-18 02:14:29 +05:00
OBattler
63f106a0fd Added plat_break() for raising breakpoints and warning() and log_warning() to raise visible non-fatal warnings to the user. 2025-03-22 00:49:20 +01:00
OBattler
5c4fcfaf85 ESC/P Printer: No longer assume roms/ is where the binary is, fixes #5221. 2025-02-17 04:49:43 +01:00
OBattler
8f5cf293bd Assorted fixes, including warning message box for unavailable devices and translation fixes. 2025-01-27 01:20:37 +01:00
Mike Swanson
dd1d835e15 Use F8+F12 to release mouse on all platforms
It seems that Ctrl+End was used on non-Win32 platforms because
WxWidgets couldn’t use non-modifier keys as a keyboard sequence.  Qt
can, and F8+F12 interferes with the operation of software a lot less
than Ctrl+End does (try doing some text editing!).

86Box hasn’t used WxWidgets for quite some time and this platform
limitation hack has long outlived its necessity.
2024-09-02 13:23:00 -07:00
rilysh
189be035d2 Mark plat_vidapi() argument as const and remove the NULL
* plat_vidapi() accepts char pointer, which never gets modifed
later on. Mark it as const.

* In src/config.c, va_name is initialized as NULL, however,
plat_vidapi_name() never returns a NULL pointer, nor it was
initialized under a condition branch. Removing NULL, might
save one instruction, which requires zeroing the register
before setting its initial value.
2024-07-21 12:49:06 +05:30
Cacodemon345
a44936f3e1 Add Generic PCL Printer 2024-06-21 15:36:28 +06:00
cold-brewed
aaf3ab575e Add new platform functions for global directories 2024-05-17 15:09:04 -04:00
Alexander Babikov
8e06b5449f Overhaul plat_get_string()
Now takes constants with human-readable names instead of
Win32 string table IDs, language.h is no longer needed

ui_msgbox*() no longer accepts string IDs as arguments directly,
plat_get_string() must be explicitly called to retrieve the string
2024-03-20 20:33:28 +05:00
Alexander Babikov
23ba920bbf Clean up the plat and ui API
Remove functions no longer defined or used on any plat/UI
Remove the old non-multi-monitor-aware plat_resize() and rename
plat_resize_monitor() to plat_resize()
2024-03-19 14:30:24 +05:00
Alexander Babikov
224daa92d0 qt: Remove fullscreen status icons 2024-02-13 21:13:25 +05:00
RichardG867
67c84f1ae6 Add automatically-generated names to threads 2024-01-09 20:14:21 -03:00
Miran Grča
05ac665ee7 Merge branch 'master' into fullscreenstaticonqt 2023-11-08 07:08:51 +01:00
Jasmine Iwanek
ad3cca65f6 Fallthrough fixes for MSVC 2023-08-16 13:04:58 -04:00
Jasmine Iwanek
bd6508350b Yet more tabs to spaces 2023-08-15 13:28:04 -04:00
OBattler
782015a923 More mouse and PIC fixes and the mouse now takes of the ration between guest resolution and actual render area size, multiplied by the DPI, when returning coordinate deltas, also unified the delta return function across the various emulated mice. 2023-08-11 04:45:32 +02:00
Miran Grča
e55b06da4c Merge pull request #3534 from jriwanek-forks/sonarlint
Yet more Sonarlint and a few warning fixes.
2023-08-10 05:13:47 +02:00
Jasmine Iwanek
81bb5e564b Better fallthrough annotation macro. 2023-08-09 20:09:36 -04:00
cold-brewed
15013e1ede Added new platform function to get cpu string (#3533)
Co-authored-by: cold-brewed <cold-brewed@users.noreply.github.com>
2023-08-09 18:12:27 -03:00
Jasmine Iwanek
bee11bcbba Fix my clang fix 2023-07-26 19:54:39 -04:00
Jasmine Iwanek
d2f42198fd Fix clang build failure 2023-07-26 12:41:18 -04:00
Jasmine Iwanek
21adfd4d50 Next round of sonarlint cleanups 2023-06-26 18:28:13 -04:00
Cacodemon345
3a10ebd28d Merge branch 'master' into global-config-screenshot 2022-12-03 20:29:26 +06:00
Jasmine Iwanek
3fe4f75108 A bit more clang-format 2022-11-19 11:53:07 -05:00
OBattler
27ebb27db7 Makefile.mingw corrections and made the code pass much stricter checks (now mandated by Makefile.mignw) to ensure GCC 14 readiness. 2022-11-17 22:44:06 +01:00
Jasmine Iwanek
bd75bc141a Header cleanups
Tabs to spaces
Consistency
2022-11-13 21:15:47 -05:00
Cacodemon345
e4e1852462 Start of global config infrastructure 2022-11-06 22:35:47 +06:00
ts-korhonen
f7c11a94e9 Fix windows clang+vcpkg build. 2022-10-18 20:44:09 +03:00
Jasmine Iwanek
ae4f9aedaa clang-format in src/include/86box/ 2022-09-18 17:22:54 -04:00
Miran Grča
f55ae27652 Merge pull request #2453 from elyosh/qtstatusbar
qt: switch to polling for status bar updating
2022-07-13 02:02:04 +02:00
Adrien Moulin
24ee676b13 qt: switch to polling for status bar updating 2022-07-13 01:04:01 +02:00
Cacodemon345
27e4124574 qt: Fix performance regression 2022-07-12 14:41:38 +06:00
Cacodemon345
826a75292f Fix Win32 compilation 2022-07-05 19:01:00 +06:00
Cacodemon345
e8ffc699ba qt: Implement per-monitor resizing 2022-07-04 17:54:38 +06:00
Cacodemon345
7ab71cafd3 Working multimonitor 2022-07-04 01:50:42 +06:00
Cacodemon345
8a3367ff6f Multi-monitor support (backend preparation part) 2022-07-03 01:18:23 +06:00
David Hrdlička
e60af6c29d Clean up plat.h a bit 2022-04-20 01:03:39 +02:00
Cacodemon345
1a3a7bec0e Move platform-specific ROM path adding code into plat modules 2022-04-06 16:16:25 +06:00
Cacodemon345
c1f9d35de8 qt: Add support for Haiku
* OpenAL backend is enabled by default on Haiku
* bswap include now makes use of builtins if they exist
* Use a local fgetws method for Haiku to avoid crashes
* OpenGL renderers are completely disabled on Haiku (they do not work)
* Software renderer is a widget, not a window on Haiku (fixes blank screen)
* Add option to disable System MIDI at compile time
2022-03-11 12:13:08 +06:00
Cacodemon345
7dc84e0f67 qt: Fix HDD path relativization on Windows 2022-03-04 01:25:34 +06:00
Jasmine Iwanek
1362ade967 Merge branch 'master' into more-updates 2022-02-19 23:39:55 -05:00
OBattler
bd32abf94e Attempt to make the main thread wait for network mutex. 2022-02-20 01:22:28 +01:00
Jasmine Iwanek
7fc893bdb0 Include guards on our headers 2022-02-18 19:42:21 -05:00
Cacodemon345
c577aa85f2 qt: Add fullscreen status icons support and option 2022-02-16 01:42:11 +06:00
ts-korhonen
d52b749128 Merge branch 'master' of https://github.com/86Box/86Box into qt 2022-01-09 16:52:30 +02:00
ts-korhonen
9a566a501c Add hide_tool_bar config file setting
In preparation for toolbar implementation
2022-01-09 16:46:44 +02:00
ts-korhonen
c523283ca0 Merge branch 'master' of https://github.com/86Box/86Box into qt 2022-01-01 18:57:28 +02:00
OBattler
394768f5ac In default mode, the SDL2 renderers now use UpdateTexture(). 2021-12-29 20:53:32 +01:00