aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* JIT: Add bits for Windows ARM64 supportNadia Holmquist Pedersen2022-11-05
|
* mainWindow may be nullptr when audioMute() is called.Nadia Holmquist Pedersen2022-11-05
| | | | Fixes potential crash on launch when multiplayer audio output is set to only the current window.
* fix a tidbit with GXFIFO NDMA, I thinkArisotura2022-11-03
|
* fix up DSi direct bootArisotura2022-10-28
|
* CLI 2.0: Electric Boogaloo (#1546)patata2022-10-28
| | | | | | | | | | | | | | | | | | * CLI: begin QT reimplementation * Add first batch of parameters * ROM loading (no archives yet) * --fullscreen * --boot (non-functional???) * fix --boot * archives! * Add disclaimer that a.zip|b.nds is kind of fucky * remove shit7 debugging * Apply requested changes
* comment out semaphore shit in teakraArisotura2022-10-25
|
* Make clang shut up about -Wno-error=maybe-uninitialized in teakraNadia Holmquist Pedersen2022-10-23
|
* fatfs: Fix -Wstrict-prototypes + -Wimplicit-function-declaration warningsorbea2022-10-23
| | | | | | This will be required for upcoming gcc and clang versions. Reference: https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
* force-align all read/write accesses. fixes #1540 (unaligned DMA address)Arisotura2022-10-22
|
* getWindowInfo: handle if the Wayland window handle is nullNadia Holmquist Pedersen2022-10-19
|
* No more context mess (#1531)RSDuck2022-10-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: use Duckstation's context code to directly render into QT Widget from separate thread without two OpenGL contexts currently only works on Windows * reenable gay OSD * add back vsync * make it atleast a little more thread safe * linux support * don't segfault on closing * reorganise and cleanup build system it's still not good, but better than before * macos? * try to get it working on Ubuntu CI also update instructions * let's try this * ok how about this * try creating an OGL 4.3 context first (https://i.kym-cdn.com/photos/images/original/001/264/842/220.png) * fix Ubuntu * hm * try again for Windows * let's try this * make the OpenGL renderer work again that was stupid * do OGL surface resizing from the mainthread * Fix small mistake in GL context creation on macOS causing version 3.2 to be considered invalid * C stupidness * cleanup * don't let the emuthread deinit OGL if there's no OGL * reset lastScreenWidth/Height when deiniting OpenGL * disable stencil test while drawing framebuffers * macOS: Link Cocoa framework explicitly when not building with Qt6 Seems to be needed for the classes used by DuckStation's GL context code. * 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. * don't emit window updates when OGL display is used * stuff Arisotura said Co-authored-by: Nadia Holmquist Pedersen <nadia@nhp.sh>
* more fun DSP fixesArisotura2022-10-17
| | | | | | * aac.a thinks it is funny to start DMA by writing to 8184 directly * implement retd (gross hack!!) * remove another unimplemented exception (wat)
* I don't think NWRAMMask is relevant hereArisotura2022-10-14
|
* more DSP unfucking: make Teakra directly use melonDS's NWRAM banks instead ↵Arisotura2022-10-14
| | | | of trying to translate to a flat buffer, fixes bugs with the way the memory banks are ordered etc
* Work around a really strange issue when building teakra with -O0 on WindowsNadia Holmquist Pedersen2022-10-12
|
* unfuck the DSP enough that it will actually run codeArisotura2022-10-11
| | | | (don't get your hopes up, it's still pretty much a trainwreck)
* unfuck the DSP code someArisotura2022-10-10
| | | | (still doesn't work)
* Merge pull request #1282 from gal20/scale_fixNadia Holmquist Pedersen2022-10-04
|\ | | | | Fix screen scaling error
| * Fix screen scalinggal202022-01-05
| | | | | | | | | | The screen gap wasn't multiplied by the scaling factor, causing the result to be too low Additionally, results of division should be rounded up
* | this was prolly badArisotura2022-10-04
| |
* | properly stop any started cameras upon reset/shutdownArisotura2022-10-02
| |
* | add support for UYVY format (FaceTime camera)Arisotura2022-10-02
| |
* | camera: fix x-flip crustinessArisotura2022-10-02
| |
* | 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
* | Account for the screen gap being scaled with the window sizeNadia Holmquist Pedersen2022-09-25
| | | | | | | | Fixes #1430
* | properly make the DSi NAND instance-uniqueArisotura2022-09-23
| |
* | remove Windows console shito we don't need anymoreArisotura2022-09-22
| |
* | 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>
* | lol oopsNadia Holmquist Pedersen2022-09-18
| |
* | Fix handling of utf16 title strings in ROMInfoDialogRayyan Ansari2022-09-02
| | | | | | | | | | | | 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.)
* | Fix reading banner from homebrew ROMsRayyan Ansari2022-09-02
| | | | | | | | | | 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.
* | for all people who hate speed, here you can build melonDS againRSDuck2022-08-22
| |
* | invalidate JIT blocks in ARM7 WVRAM when it's remappedRSDuck2022-08-22
| |
* | fix SCFG_MC cartridge inserted bitRSDuck2022-08-21
| |
* | implement 8- and 16-bit DSi AES register accessesRSDuck2022-08-21
| | | | | | | | fixes NAND access through Godmode9i
* | fix last commit for when no SD is insertedRSDuck2022-08-21
| |
* | fix DSi SD newly inserted/removed IRQ bitsRSDuck2022-08-21
| | | | | | | | | | we don't support SD card hot swapping and SDIO wifi is always inserted, so those bits are always zero special thanks to Evie
* | basic implementation of SNDExCntRSDuck2022-08-21
| | | | | | | | | | isn't hooked up to the DSP or microphone though fixes memory abort in TwilightMenu
* | Fix Windows debug builds not having a console because something, probably ↵Nadia Holmquist Pedersen2022-08-17
| | | | | | | | some library's CMake script, sets -mwindows when it shouldn't.
* | a bit of refactoring around ScreenHandlerRSDuck2022-08-05
| | | | | | | | also gets rid of that annoying warning about const char* being converted to char*
* | Apply strong focus policy to joystick mapping button as well. Fixes #1491Nadia Holmquist Pedersen2022-07-31
| |
* | fixes editor warnings about undefined types in a bunch of filesValtýr Kári Daníelsson2022-07-27
| |
* | constexpr-s the DMA timing tables (#1489)Valtýr Kári Daníelsson2022-07-27
| |
* | Fix triggers being recognized as negative analog stick values when assigning ↵Nadia Holmquist Pedersen2022-07-07
| | | | | | | | an input if the axis is moved too slowly.
* | GL: Fix 16x resolution on macOSNadia Holmquist Pedersen2022-06-02
| |
* | Add 3DS 16:10 aspect ratio and refactor GUI aspect ratio codeNadia Holmquist Pedersen2022-05-23
| |
* | Modernize CMake build system (#1434)Nadia Holmquist Pedersen2022-05-21
| | | | | | | | | | | | | | | | | | | | | | These changes modernize the CMake build system to (hopefully) match newer best practices * Library linking is simpler and more automatic because of using imported targets * Multi-configuration builds should be supported (Ninja Multi-Config, Visual Studio, etc. generators) * Clean up build options using cmake_dependent_option * Let CMake do its job in more cases, like finding the math/dl libraries and detecting and enabling LTO support * Remove platform-specific kludges like the Fedora/flatpak LTO workaround and a bunch of Windows stuff * Simplify Windows static builds * Consistent formatting
* | Update teakra (fixes #1441)Nadia Holmquist Pedersen2022-05-13
| |
* | Accomodate top/bottom only lzyout when setting screen sizeNadia Holmquist Pedersen2022-04-20
| |
* | fix potential issues with 32bit GPU writesArisotura2022-04-10
| |