Commit Graph

2099 Commits

Author SHA1 Message Date
Arisotura 50faf6e932 fix alpha in RGB camera pictures 2022-10-02 16:37:34 +02:00
Arisotura 3e7108b2e1 add support for NV12 camera format 2022-10-02 15:38:31 +02:00
Arisotura 23fc51f4bd ASFGDAFGSHFAHGSJASAS 2022-10-02 14:22:38 +02:00
Arisotura a4b0ac29b1 er, better this way 2022-10-02 14:20:08 +02:00
Arisotura 42a33b9282 camera: actually check whether the formats we attempt using are supported 2022-10-02 14:08:41 +02:00
Nadia Holmquist Pedersen a1a342143b Camera UI fixes
* Add camera permission on macOS
* Fix buttonClicked event for Qt 6 (it's now idClicked?)
2022-10-01 20:49:32 +02:00
Arisotura 93dfcf8714 adjust camera shito for Qt6 2022-10-01 20:16:52 +02:00
Arisotura eca086ef95 try to unfuck it for Qt6 2022-09-26 22:42:15 +02:00
Arisotura 432d73a86a hopefully unfuck the CI 2022-09-26 22:16:30 +02:00
Arisotura 592ae4cdff unfuck the cmake file, too 2022-09-26 21:43:12 +02:00
Arisotura 139d1b0862 oh ffs 2022-09-26 21:33:04 +02:00
Arisotura 5239e42698
Merge branch 'master' into camera_betterer 2022-09-26 21:27:41 +02:00
Arisotura 308ea6289a implement xflip in the UI 2022-09-26 21:13:58 +02:00
Arisotura 7c9e37b156 remove some cruft 2022-09-26 20:37:25 +02:00
Arisotura b58e944351 add support for camera X/Y flip 2022-09-26 19:32:50 +02:00
Arisotura 5f365afb9c make the camera settings dialog not suck balls 2022-09-26 19:20:30 +02:00
Arisotura d102f63686 nah, git managed to fuck one more thing
heh
2022-09-25 22:06:28 +02:00
Arisotura 98f45b72ab oh god git what are you doing 2022-09-25 22:00:53 +02:00
Arisotura 2f1664a5ae unfuck the merge 2022-09-25 21:55:13 +02:00
Arisotura e63c2985fc modernize camera_betterer 2022-09-25 21:33:17 +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
Nadia Holmquist Pedersen d0f60e43f3 Add Qt Multimedia dependency to the CMake build 2022-08-22 19:43:34 +02:00
Arisotura 0004d64087 stashing temp. camera work 2022-08-22 19:15:10 +02:00
Arisotura 7c91aa7fdb get more shit done 2022-08-22 19:15:10 +02:00
Arisotura 1884db5e42 attempt 2022-08-22 19:15:10 +02:00
Arisotura 6ec340d264 here have more code 2022-08-22 19:15:10 +02:00
Arisotura 7d453effb2 begin work on the CameraManager 2022-08-22 19:15:09 +02:00
Arisotura 16d0b05fb5 blaaaaarg
maybe now you can get motivated and get work done, Arisotura
2022-08-22 19:14:14 +02:00
Arisotura b1f03e71b3 lay base for camera settings dialog 2022-08-22 19:13:17 +02:00
Arisotura ed616ea43e commit a bunch of random WIP crap 2022-08-22 19:13:15 +02:00
Arisotura ac9a4cfd6d camera: fix bugs that Epicpkmn11's camera demo revealed 2022-08-22 19:12:07 +02:00
Arisotura a6e88bf6c0 oops, the camera transfer buffer is 512 words long, not 1024 2022-08-22 19:12:07 +02:00
Arisotura ee61062aa1 basic provision for feeding external pictures to the cameras 2022-08-22 19:12:07 +02:00