Commit Graph

2089 Commits

Author SHA1 Message Date
RSDuck d90471aded stuff Arisotura said 2022-10-17 22:21:38 +02:00
RSDuck c9dc1e8f4d don't emit window updates when OGL display is used 2022-10-17 22:21:37 +02:00
Nadia Holmquist Pedersen 494a943595 Set ScreenPanelGL's minimum size immediately
Fixes GL context creation for OpenGL display on macOS using the wrong
size as the underlying window was not resized to the correct size by Qt
yet.
2022-10-17 15:19:43 +02:00
Nadia Holmquist Pedersen 2f4bd45e5e macOS: Link Cocoa framework explicitly when not building with Qt6
Seems to be needed for the classes used by DuckStation's GL context
code.
2022-10-15 20:25:31 +02:00
RSDuck c68e8ee8ef disable stencil test while drawing framebuffers 2022-10-15 19:14:22 +02:00
RSDuck 937a778365 reset lastScreenWidth/Height when deiniting OpenGL 2022-10-15 00:05:26 +02:00
RSDuck 2f9e0a4384 don't let the emuthread deinit OGL if there's no OGL 2022-10-13 19:55:06 +02:00
RSDuck af8efe1119 cleanup 2022-10-13 19:45:40 +02:00
RSDuck 4b0fc122a2 C stupidness 2022-10-13 19:39:49 +02:00
Nadia Holmquist Pedersen 81d1ccb8de Fix small mistake in GL context creation on macOS causing version 3.2 to
be considered invalid
2022-10-13 19:34:55 +02:00
RSDuck 92951b6f04 do OGL surface resizing from the mainthread 2022-10-13 19:23:49 +02:00
RSDuck d82f08e98d make the OpenGL renderer work again
that was stupid
2022-10-13 14:24:02 +02:00
RSDuck db26406600 let's try this 2022-10-13 03:02:09 +02:00
RSDuck 8ebe8711bb try again for Windows 2022-10-13 02:01:19 +02:00
RSDuck 81ab444d76 hm 2022-10-13 01:42:32 +02:00
RSDuck 1edbc800be fix Ubuntu 2022-10-13 01:25:47 +02:00
RSDuck 5c6bf5fcf7 try creating an OGL 4.3 context first
(https://i.kym-cdn.com/photos/images/original/001/264/842/220.png)
2022-10-13 01:10:08 +02:00
RSDuck f6654166e0 ok how about this 2022-10-13 01:08:05 +02:00
RSDuck c8f6319f7f let's try this 2022-10-13 00:11:05 +02:00
RSDuck 09e78c20ed try to get it working on Ubuntu CI
also update instructions
2022-10-13 00:06:03 +02:00
RSDuck ceec3f30ff
Merge branch 'master' into no-more-context-mess 2022-10-12 23:55:50 +02:00
RSDuck 01113631b5 macos? 2022-10-12 23:54:30 +02:00
RSDuck 9a6cbc98c3 reorganise and cleanup build system
it's still not good, but better than before
2022-10-12 23:48:05 +02:00
RSDuck dbd75f8ae4 don't segfault on closing 2022-10-12 23:28:07 +02:00
RSDuck cdaa52256f linux support 2022-10-12 21:53:56 +02:00
Nadia Holmquist Pedersen 349316a078 Work around a really strange issue when building teakra with -O0 on Windows 2022-10-12 20:49:15 +02:00
Arisotura b33f0434a6 unfuck the DSP enough that it will actually run code
(don't get your hopes up, it's still pretty much a trainwreck)
2022-10-11 00:26:42 +02:00
Nadia Holmquist Pedersen 9a85bc7453
Merge pull request #1528 from Phosphorus-M/patch-1
Update the README.md to add the missing dependency on qt5-multimedia needed by the camera support.
2022-10-10 18:53:46 +02:00
Nadia Holmquist Pedersen 338b8b5bfe
Change Qt dependencies for Windows dynamic builds as well
no reason to install the full huge Qt framework when there are individual packages.
2022-10-10 18:51:16 +02:00
Phosphorus Moscu 5e74fecb87
Update README.md
Add the missing dependencies to solve the errors when you run cmake
2022-10-09 22:24:16 -03:00
Arisotura b76e5adc1d unfuck the DSP code some
(still doesn't work)
2022-10-10 00:22:46 +02:00
Nadia Holmquist Pedersen c177fae51f Clean up optimization flags
* The way -O3 was set for release builds was accidentally removing
  -DNDEBUG
* -Og seems to mess with debugging with lldb, even though the GCC manual
  page says to use it for debug builds, so remove it
2022-10-09 20:14:27 +02:00
Nadia Holmquist Pedersen 5b867eb7a7 macOS: Add NSPrincipalClass value to the Info.plist
According to the Qt documentation we should have this for proper
high-DPI support on macOS. Whether or not it's still relevant I'm not
sure, but if it isn't it might at least help on older macOS or Qt.
2022-10-08 19:10:50 +02:00
RSDuck b4599e3064 make it atleast a little more thread safe 2022-10-05 00:08:17 +02:00
Nadia Holmquist Pedersen aa9a6ceed5
Merge pull request #1282 from gal20/scale_fix
Fix screen scaling error
2022-10-04 20:40:00 +02:00
Arisotura 1a602376c7 this was prolly bad 2022-10-04 19:37:49 +02:00
RSDuck 2f0c89cbe9 add back vsync 2022-10-04 13:15:50 +02:00
RSDuck 7e09c23f1d reenable gay OSD 2022-10-04 12:43:49 +02:00
RSDuck ef763aa569 WIP: use Duckstation's context code to directly render into QT Widget from separate thread without two OpenGL contexts
currently only works on Windows
2022-10-04 12:21:16 +02:00
Arisotura 571d1c403f properly stop any started cameras upon reset/shutdown 2022-10-02 23:29:24 +02:00
Arisotura 62879c4484 add support for UYVY format (FaceTime camera) 2022-10-02 19:43:57 +02:00
Arisotura af9a77b0b4 camera: fix x-flip crustiness 2022-10-02 18:44:47 +02:00
Arisotura 3f4573574a
actual DSi camera support (#1520)
basically feeding something that isn't a fixed stripe pattern, and emulating enough of the camera hardware to make this work
2022-10-02 16:47:57 +02:00
Arisotura c1c4cbc838
update Patreon URL 2022-09-30 15:53:38 +02:00
Nadia Holmquist Pedersen 37e5e2c3c0 Account for the screen gap being scaled with the window size
Fixes #1430
2022-09-25 20:48:40 +02:00
Arisotura 86786738cc properly make the DSi NAND instance-unique 2022-09-23 22:53:23 +02:00
Arisotura fc11258071 remove Windows console shito we don't need anymore 2022-09-22 20:33:32 +02:00
Arisotura b1e4bd5520
merge local_wifi (#1516)
* attempt at betterer wifi

* add preliminary sync mechanism
* fix gaps in wifi implementation

* move local-MP comm to its own module instead of cramping Platform.cpp

* remove some stupid cruft

* as you wish, Sorer

(starting work on shared-memory system)

* shared-memory IPC that actually works (albeit Windows-only for now)

* shut up logging from NULL writes on ARM7 (ffs Nintendo learn to code)

* get this somewhat good

* leave client sync mode when host deauths. makes download play actually work.

* start implementing MP-comm error handling

* * add MP-reply error counters
* feeble attempt at fixing slowdown/desync/etc problems

* somewhat better exchange/sync method

* * when entering power-saving mode, be sure to finish transferring the current frame first
* fix misc bug due to old cruft leftover

makes for a more stable connection

* remove a bunch of cruft

* set wifi time interval to 34 cycles instead of 33. games seem sensitive to the general timing of wifi vs the rest of the system, and this seems to make things run better, atleast until I rewrite this to use a proper scheduler.

* more graceful handling of disconnects

* deal with FIFO overflow more gracefully

* BAHAHAHAHAHAHAHAHHHH

THE SNEAKY BASTARDS

so, when the DS receives a beacon with the right BSSID

that beacon's timestamp is copied to USCOUNTER

* attempt at making the connection process smoother for weird games

* * begin adding POWCNT2, only applies to wifi for now
* begin work on wifi scheduler

* implement the shitty timers

* add the RF wakeup thing

* begin work on receiving frames. for now it can just receive melonAP beacons, but hey, it's a start.

* add enough TX functionality that online wifi is a possibility again.

* there are problems with this scheduler thing. committing it anyway

* kind of a rollback... we're gonna work out a compromise on this, I guess

* don't transmit shit if RXCNT.bit15 isn't set

* move RX-finish to its own function. more accurate filtering. implement RXFILTER.

* remove some cruft

* fix some of the shittiness when trying to connect more than two players

* fix some more shittiness

* fix more wifi shittiness (mainly don't try to receive shit while sending a frame)

* run wifi every 8µs. improves performance.

* fix IRQ14/IRQ15

* make this work under Linux

* Make it work on macOS, for now using a custom sem_timedwait
implementation.

If anyone knows anything about mach ports and have an idea for how to
make this work using mach IPC, please do let me know.

* 25ms seems like a good timeout

* begin work on proper multiplayer UI shito.

for now, determine a global instance ID, and derivate the system MAC from it. remove 'randomize MAC' option.

* finish removing RandomizeMAC

* lay groundwork for instance-unique config

* work some on the UI... make it not labelled Fart

* more UI work: make it explicit that some things are instance-unique

* separate firmware files for multiplayer instances

* make instances save to different save files, too

* more UI work, make things somewhat less shitty

* lay base for the multiplayer settings dialog

* actually hook up most of that dialog

* actually implement the fun audio settings

* ensure all the wifi shit is properly savestated and reset. properly update timings for the wifi region when wifi is disabled.

* add more fun labels

* * ignore WEP frames if WEP is off
* implement RX_LEN_CROP

* fake enough of WEP processing to make Inazuma Eleven work

* * do not copy more ROM banner data than actually needed
* avoid trying to read out of bounds if the banner offset is bad

* Fix oversight with the preferences action causing the build to fail on macOS

Co-authored-by: Nadia Holmquist Pedersen <nadia@nhp.sh>
2022-09-22 20:32:27 +02:00
Nadia Holmquist Pedersen b5073e6014 lol oops 2022-09-18 23:39:19 +02:00
Nadia Holmquist Pedersen 993928095a Update repo URL in README.md 2022-09-14 19:02:22 +02:00