aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/main.cpp
Commit message (Collapse)AuthorAge
* 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
* 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>
* 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
* | 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
* | 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
| |
* | a bit of refactoring around ScreenHandlerRSDuck2022-08-05
| | | | | | | | also gets rid of that annoying warning about const char* being converted to char*
* | Add 3DS 16:10 aspect ratio and refactor GUI aspect ratio codeNadia Holmquist Pedersen2022-05-23
| |
* | Accomodate top/bottom only lzyout when setting screen sizeNadia Holmquist Pedersen2022-04-20
| |
* | insert wacky commit messageArisotura2022-03-08
| |
* | Add support for changing the DS and DSi battery levelRayyan Ansari2022-03-07
| | | | | | | | | | | | The DS battery level is configured via the SPI Power Management Device, and the DSi's is configured via the I2C BPTWL. Add support for changing these registers and add the "Power Management" dialog in the UI.
* | Implement MainRAM management dialog😁 (#1248)2jun02022-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement MainRAM management dialog * Modify RAMInfoDialog - use emuThread to avoid a race condition. - replace RAMUpdateThread to QTimer Co-Authored-By: RSDuck <RSDuck@users.noreply.github.com> * Update src/frontend/qt_sdl/RAMInfoDialog.cpp small typo Co-authored-by: Rayyan Ansari <68647953+RayyanAnsari@users.noreply.github.com> * Update src/frontend/qt_sdl/RAMInfoDialog.h small typo Co-authored-by: Rayyan Ansari <68647953+RayyanAnsari@users.noreply.github.com> * typo errors in RAMInfoDialog Rrevious->Previous * add new line to the end of the file Co-authored-by: Rayyan Ansari <rayyan@ansari.sh> * enable raminfo when cart is inserted * Modify that only the 'value' item can be edited in RAMinfoDialog * fix: function name incorrect error * fix: function name incorrect error2 * fix: wrong way to get ram value Co-authored-by: RSDuck <RSDuck@users.noreply.github.com> Co-authored-by: Rayyan Ansari <68647953+RayyanAnsari@users.noreply.github.com> Co-authored-by: Rayyan Ansari <rayyan@ansari.sh>
* | we prolly don't need to init SDL video, given we don't use itArisotura2022-03-06
| |
* | fix typo in enum for screen sizing (#1377)Brankale2022-02-25
| |
* | Use enum for screen sizingRSDuck2022-02-25
| |
* | Allowing Swap screens hotkey to swap between displaying only top screen and ↵ZackWeinstein2022-02-25
| | | | | | | | only bottom screen. (#1283)
* | lower window update rate if rendering too fastRSDuck2022-02-14
| |
* | Merge branch 'master' of github.com:Arisotura/melonDSArisotura2022-01-09
|\ \
| * | Make the message when SDL2 fails to init more descriptiveNadia Holmquist Pedersen2022-01-08
| | |
* | | 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)
* ScreenPanelNative: Don't try to render the framebuffer if the emulator is ↵Nadia Holmquist Pedersen2021-12-09
| | | | | | not actually active. This fixes an issue where the window draws with a gray background in macOS, and is see-through on Wayland-based desktops.
* Manually center the window after setting its size on macOSNadia Holmquist Pedersen2021-12-09
| | | | | | Qt's default window positioning is somewhat unreliable, and since we don't currently remember the window position, let's at least make sure that it's properly centered on open.
* Treat SDL_INIT_JOYSTICK fail as non-critical (#1277)andrigamerita2021-12-01
| | | Treating the fail of SDL_INIT_JOYSTICK as non-critical, because on some systems that SDL feature can for some reason fail. This leads to the emulator closing with a critical error, even though it would work perfectly fine with just a keyboard.
* 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
|
* Generate a simple non-bootable firmware when not provided. (v2) (#1175)Adrian Siekierka2021-10-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Generate a simple non-bootable firmware when not provided. * Expose Username and Language into settings dialog. * Add firmware overrides for more settings. Also make override optionals when a firmware is provided. * Refactor firmware settings into separate dialog. * use usernameLength instead of u16Username.length() (#3) * Fix curly braces code-style. * LoadUserSettingsFromConfig: convert from UTF-8 to UTF-16 via wstring_convert * Fix firmware username capitalization. * cleanup firmware backup logic * Put brace where it should be Co-authored-by: Rayyan Ansari <68647953+RayyanAnsari@users.noreply.github.com> Co-authored-by: Filippo Scognamiglio <flscogna@gmail.com> Co-authored-by: kyandora <71771686+kyandora@users.noreply.github.com> Co-authored-by: Filippo Scognamiglio <filippo.scognamiglio@felgo.com> Co-authored-by: RSDuck <RSDuck@users.noreply.github.com> Co-authored-by: Rayyan Ansari <68647953+RayyanAnsari@users.noreply.github.com>
* Redesign the Input dialog (#1226)Rayyan Ansari2021-09-30
|
* having fun with fatfs (#1189)Arisotura2021-08-24
| | | | * patch TSC coords in DSi mode * DSiware importer and shit
* Call emuPause before loading a ROM so we don't crash if one is already loadedNadia Holmquist Pedersen2021-08-23
|
* macOS: Allow opening ROMs with melonDS from Finder.Nadia Holmquist Pedersen2021-08-23
|
* SPU: Emulate SOUNDBIAS and 10-bit degradeNadia Holmquist Pedersen2021-08-17
|
* tidbitsArisotura2021-08-08
|
* factor duplicate code in micLoadWav(). also add support for all sorts of WAV ↵Arisotura2021-08-08
| | | | formats SDL can support.
* fix pissfucking touchscreen (again)Arisotura2021-08-08
|
* Audio interpolation (#1176)Arisotura2021-08-08
| | | add audio interpolation (emulation improvement)
* only open microphone when actually needed. fixes #1165Arisotura2021-07-29
|
* Merge branch 'master' of https://github.com/Arisotura/melonDSArisotura2021-07-20
|\
| * enable undo savestate load in the guiRSDuck2021-07-17
| |
* | oopsiesArisotura2021-07-20
|/
* Add ROM Header struct and ROM info dialog (#1095)WaluigiWare642021-07-02
|
* UI: detect and save when window is maximized, and restore it as such. fixes ↵Arisotura2021-06-20
| | | | #1135
* Add "frame step" hotkey and function (#1119)cat2021-06-05
|
* Explicitly set NoRole on the setup cheats option so Qt on mac will stop ↵Nadia Holmquist Pedersen2021-06-05
| | | | stealing it
* frontend: handle tablet and touch eventsRSDuck2021-05-24
| | | | fixes #654 and #548
* Remove outdated frontend solar sensor code (#1102)Raphaël Zumer2021-05-16
|