aboutsummaryrefslogtreecommitdiff
path: root/src/Platform.h
Commit message (Collapse)AuthorAge
* actual DSi camera support (#1520)Arisotura2022-10-02
| | | basically feeding something that isn't a fixed stripe pattern, and emulating enough of the camera hardware to make this work
* merge local_wifi (#1516)Arisotura2022-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* update copyright headersArisotura2022-01-09
|
* Custom path support (#1333)Arisotura2022-01-07
| | | | | | | also including: * getting rid of shitty strings * all new, cleaner ROM handling code * base for DSi savestates * GBA slot addons (for now, memory cart)
* move 'randomize MAC' setting to firmware settings, and add setting for ↵Arisotura2021-11-19
| | | | | | changing the MAC. make things overall betterer.
* finally decouple Config from the core. baahhahahahahArisotura2021-11-18
|
* decouple more config shit from the core. bahahahArisotura2021-11-17
|
* * remove more Config dependencies from the coreArisotura2021-11-17
| | | | * also use less shitty strings
* decouple JIT from Config. bahahahahahArisotura2021-11-17
|
* DLDI/SD folder-sync apparatus (#1251)Arisotura2021-10-28
| | | guess we can finally have DLDI that isn't obtuse
* update copyright year and add missing GPL headersRSDuck2021-03-12
|
* Remove unneeded OpenGL loading function code (#1006)WaluigiWare642021-02-17
|
* use std::function in Thread_Create so we can revert back to using itRSDuck2021-02-11
|
* Improved SRAM performance (#925)Kimmy Andersson2021-01-09
| | | | | | | | | * Offload NDS SRAM writing to separate thread, debounce writes to two seconds after last flush or DeInit. * Fixed printf messages. * Fixes after CR. * Fixed potential portability issue with time_t
* Merge vram dirty trackingRSDuck2020-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit b463a05d4b909372f0cd1ad91caa0c77a25e5901 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 30 01:55:35 2020 +0100 minor fix commit ce73cebbdf5da243d7ebade82d8799ded9cd6b28 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 30 00:43:08 2020 +0100 fix dirty flags of BG/OBJ mappings not being reset commit fc5d73a6178e3adc444398bdd23de8314b5ca8f8 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 30 00:11:13 2020 +0100 use flat vram for gpu2d everywhere commit 34ee9fe2bf04fcfa2a5a1c8d78d70007e606f1a2 Author: RSDuck <rsduck@users.noreply.github.com> Date: Sat Nov 28 19:10:34 2020 +0100 mark VRAM dirty for display capture commit e8778fa2f429c6df0eece19d6a5ee83ae23a0cf4 Author: RSDuck <rsduck@users.noreply.github.com> Date: Sat Nov 28 18:59:31 2020 +0100 use flat VRAM for textures and texpals also skip rendering if nothing changed and a bunch of fixes commit 53f2041e2e1a28b35702a2ed51de885c36689f71 Author: RSDuck <rsduck@users.noreply.github.com> Date: Fri Nov 27 18:29:56 2020 +0100 use vram dirty tracking for extpals also preparations to take this further commit 4cdfa329e95aed26d3b21319c8fd86a04abf20f7 Author: RSDuck <rsduck@users.noreply.github.com> Date: Mon Nov 16 23:32:22 2020 +0100 VRAM dirty tracking
* make platform objects typesafer and add mutexRSDuck2020-11-09
|
* keep the ugliness confined in Platform.cppArisotura2020-05-19
|
* update copyright yearsArisotura2020-02-14
|
* Add a UNIX_PORTABLE build option, turning it off makes a build of melonDS ↵Nadia Holmquist Pedersen2019-12-04
| | | | suitable for systemwide installation.
* first attempt at thingsArisotura2019-04-01
| | | | (also fix softrenderer reset)
* * remove EmuDirectory from the coreArisotura2019-03-27
| | | | * rework OpenLocalFile(), make the code more elegant, also fixes #352
* * move melon_fopen_local() to Platform.cppArisotura2019-03-27
| | | | | * make it require that the file already exist (hopefully fixing config saving bug) * finally axe melon_fopen.cpp
* move melon_fopen() to Platform.cppArisotura2019-03-27
| | | | melon_fopen_local() will need fixoring
* also, update copyright nameArisotura2019-01-22
|
* fixor copyright years.StapleButter2018-09-15
|
* wifi: more shitStapleButter2017-12-18
|
* actually init pcap etcStapleButter2017-12-17
|
* add support for SPI shutdown, btwStapleButter2017-09-21
|
* properly reset 3D thread stateStapleButter2017-05-26
|
* first attempt at threading the 3D rendererStapleButter2017-05-23
|
* draft APIs for threading in the core.StapleButter2017-05-19
| | | | also, misc wifi crap, nothing noteworthy.
* attempt at actually sending packets.StapleButter2017-05-12
| | | | into the void for now.
* (untested yet) code for sending and receiving packets via socketsStapleButter2017-05-11
| | | | MAC randomization
* salvage socket init codeStapleButter2017-05-11
|
* lay base for core->platform interactionStapleButter2017-05-09
(immediately planned: threaded 3D renderer, wifi connectivity)