Commit Graph

2076 Commits

Author SHA1 Message Date
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
Rayyan Ansari 61de50069b Fix handling of utf16 title strings in ROMInfoDialog
Title strings should be null-terminated.
Read the string up until this point instead of reading the full 128 characters.
(Also fix the .ui file of ROMInfoDialog to prevent it from being too wide.)
2022-09-02 11:57:49 +01:00
Rayyan Ansari c3bd1d2e83
Fix reading banner from homebrew ROMs
Some homebrew ROMs do not have a banner, and use a null value to indicate this.
Do not attempt to read the banner when this is the case.
2022-09-02 11:47:12 +01:00
Nadia Holmquist Pedersen 9d56055afb mac-libs.rb: Make fallback rpaths less stupid, also shut up code
signature warnings
2022-08-31 21:39:32 +02:00
Rayyan Ansari 43b6ef1f60 Fix imports in mac-universal.py again 2022-08-31 18:35:10 +01:00
Rayyan Ansari 686aecb36c Make nested directories in mac-universal.py 2022-08-31 18:33:00 +01:00
Rayyan Ansari 21194375f8 Fix imports in mac-universal.py 2022-08-31 18:28:33 +01:00
Rayyan Ansari 926f200329 Find correct pkg-config 2022-08-31 18:26:36 +01:00
Rayyan Ansari 08f5a2aa82 Fix CMake prefixes 2022-08-31 18:06:19 +01:00
Rayyan Ansari 76c9340920 Create parent directories as well 2022-08-31 17:57:31 +01:00
Rayyan Ansari 80f76ef34d Fix dependencies between jobs 2022-08-31 17:56:18 +01:00
Rayyan Ansari cac1ec8fbd Fix macOS runner cleanup 2022-08-31 17:53:09 +01:00
Rayyan Ansari d1dbb1f51e Add self-hosted macOS ARM64 Universal Binary runner
Adds a workflow file for building a universal binary with a self hosted runner.
Also adds a Python script to assist with creating the universal binary
2022-08-31 17:50:03 +01:00
RSDuck ce68e883c4 for all people who hate speed, here you can build melonDS again 2022-08-22 00:44:48 +02:00