Commit graph

1336 commits

Author SHA1 Message Date
wheremyfoodat
3b9490e633
Add controller support to Qt (#475)
* Add controllers to Qt

Co-Authored-By: Nadia Holmquist Pedersen <893884+nadiaholmquist@users.noreply.github.com>

* Remove debug logs

* Bonk

---------

Co-authored-by: Nadia Holmquist Pedersen <893884+nadiaholmquist@users.noreply.github.com>
2024-03-27 21:11:47 +02:00
Auxy6858
429dc2a944
Added rom path (#474)
* Added app icon to the window

* Added Roms path

Added an option to the config to set a folder that opens when selecting a game instead of having to navigate to the folder manually every time.

* Clear up PR

* Clear up PR

---------

Co-authored-by: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com>
2024-03-26 18:40:10 +02:00
Wunk
5284109fd4
Implement shader-interpreter relative MOVA addressing (#471)
* Add shader uniform-read unit test

* Add unit test f24 vector formatter

* Add Address Register Offset shader unit test

* Implement float-uniform out-of-bound return value

In the case that the resulting float-uniform index is greater than the 96 slots that it has, a result of `{1,1,1,1}` is to be returned.

* Implement shader relative addressing

Fails on the negative unit tests at the moment but passes all of the
others.

* Fix `MOVA` source register indexing
2024-03-22 18:48:03 +02:00
Paris Oplopoios
3270cfe602
First step towards configurable keyboard mappings (#464)
* Configurable keyboard mappings

* Cleanup

* Cleanup

* Biggest mistake of my career

* format

* Fix naming convention

---------

Co-authored-by: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com>
2024-03-21 15:54:18 +02:00
Wunkolo
40e2774b7f Implement arm64 LG2/EX2 2024-03-19 21:26:13 -07:00
Paris Oplopoios
27ad7b01f3
Rename Emulator::run to FrontendSDL::run (#466)
* Rename Emulator::run to FrontendSDL::run

* Update frontend_sdl.cpp

---------

Co-authored-by: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com>
2024-03-16 23:20:37 +02:00
Wunkolo
2b34ef4a89 Implement PICA200 compliant arm64 MUL
Adds `emitSafeMUL` to implement a PICA200 compliant multiplication that
handles the special `0 * inf = 0` case.
2024-03-14 12:30:42 -07:00
Wunk
c89fe05b8a
Fix shader-interpreter non-IEEE outputs (#459)
* Re-enable non-IEEE shader test

* Fix shader-interpreter RCP/RSQ output

Handle the `-0.0` special-case

* Fix shader-interpreter MIN/MAX output

Takes advantage of min/max's properties regarding non-finites to return
NaN depending on its input position:
```
max(NaN, 2.f) -> NaN
max(2.f, NaN) -> 2
min(NaN, 2.f) -> NaN
min(2.f, NaN) -> 2
```

* Fix shader-interpreter FLR indexing bug

`3 - 1` should be `3 - i`
2024-03-12 08:34:02 +02:00
SpikeHD
57193e7944
Stub ALL getNsDataIdList functions (#452)
* fix: stub ALL getNsDataIdList functions

* fix: spaces -> tabs
2024-03-09 13:45:38 +02:00
Ada
ff1eaed0a4
peeve: guarantee toml order (#451) 2024-03-08 18:08:41 +02:00
Ishan09811
498d19fa51
keep screen on in `gameactivity` (#450) 2024-03-08 15:27:06 +02:00
wheremyfoodat
048eca557e
Merge pull request #439 from wheremyfoodat/y2r-stubs
Y2R: Stub IsFinishedSending/Receiving functions
2024-03-07 18:17:56 +00:00
wheremyfoodat
d68b81c037
Merge pull request #444 from wheremyfoodat/gsp_read_hw_regs
GSP_GPU: Implement ReadHwRegs
2024-03-07 18:03:21 +00:00
wheremyfoodat
e4bea43fd6
Implement GetResourceLimitValue for thread count (#438) 2024-03-07 19:48:08 +02:00
wheremyfoodat
25d8e5807f
Fix dynarmic submodule (#446)
* Remove dynarmic submodule

* Add dynarmic mirror

* Update oaknut

* Update shader JIT to work with latest oaknut

* Maybe fix oaknut finally

* hlep

* More arm64 shader derps

* Fixing more shader JIT brokenness

* aaaaaaaaaaaa

* Update shader_rec_emitter_arm64.hpp

* Update shader_rec_emitter_arm64.cpp
2024-03-07 19:47:21 +02:00
wheremyfoodat
361172b4de
GSP_GPU: Implement ReadHwRegs 2024-03-07 00:09:41 +00:00
wheremyfoodat
3505bf0df9
Y2R: Stub IsFinishedSending/Receiving functions 2024-03-06 00:37:12 +00:00
wheremyfoodat
914193a765 Android cleanup and bugfixing 2024-03-01 00:23:12 +02:00
Gabriel Machado
02496b57eb
Pandroid: Screen layout editor (#425)
* Add Dynamic colors option for Android 12 or above  (#8)

* Dynamic color for android 12 or above @Ishan09811

* Revert "Add Dynamic colors option for Android 12 or above  (#8)" (#9)

This reverts commit 6ee1a39fb4.

* Material Switch  (#10) | ISHAN | REVIEW

* Review Material Switch

* basic implement, ds editor, and remake theme selector

* add swap screen in drawer

* basic file provider for access private folder from file explorer

* Pandroid: Game about dialog (#7)

* Alert dialog idea

* Reimplement ishan game dialog.

* Add Picture In Picture support with a option  (#11)

- Ishan picture in picture pr

* some fixes

* Add game to launcher and some clear code.

---------

Co-authored-by: Ishan09811 <156402647+Ishan09811@users.noreply.github.com>
Co-authored-by: gabriel <gabriel>
2024-02-29 22:06:23 +02:00
Ishan09811
43dfda0f19
Allows the user to switch between performance and battery saving modes (#422)
* add game_mode_config in mainfest

* add ``game_mode_config``
2024-02-27 09:22:25 +02:00
wheremyfoodat
9d8868cffd
Don't start audio device on resume if audio is disabled 2024-02-25 18:36:35 +02:00
wheremyfoodat
d459cb1d6c
Get audio output working with LLE DSP (#419)
* Implement audio output

* Semi-proper audio output

* Add audio enable and vsync settings

* Add audio enable and vsync settings

* Optimize audio output a bit

* Make max ring buffer timeout smaller

* Make max ring buffer timeout smaller

* Revert to spinlocking for audio sync

* Sleep emulator thread if too many samples queued

* Fix Teakra submodule breaking

* Don't start audio device too soon

* Fix IWYU errors

* Fix compilation errors on GCC/Clang

* Ignore std::hardware_destructive_interference_size on Android NDK

* Fix more IWYU errors
2024-02-24 03:26:23 +02:00
wheremyfoodat
4b46b6ebf9
Bind input to Lua 2024-02-22 19:41:18 +02:00
wheremyfoodat
85161b08ea
Update lua.cpp 2024-02-22 17:19:33 +02:00
wheremyfoodat
9110176e00
Bind LoadROM to Lua 2024-02-22 17:18:00 +02:00
wheremyfoodat
cc1e7e2162
Bind more Lua functions 2024-02-22 16:47:02 +02:00
wheremyfoodat
6279ed699a
Store program ID and expose it in Lua (#414) 2024-02-22 16:26:31 +02:00
Ishan09811
267b1b3cc8
Add proper proguard rules (#412)
* add proper proguard-rules

* enable apk optimisations

* Android: Remove duplicate proguard rule

* derp

---------

Co-authored-by: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com>
2024-02-21 11:40:19 +02:00
wheremyfoodat
505abbe532
Stub NWM_UDS::Initialize to fail 2024-02-20 21:59:33 +02:00
wheremyfoodat
093364f615
Merge pull request #410 from wheremyfoodat/dsp
WIP: DSP support
2024-02-19 19:34:05 +00:00
wheremyfoodat
f7c6ec3b57 Properly handle DSP interrupts in HLE 2024-02-19 18:50:41 +02:00
wheremyfoodat
7a5bb2859e Make DSP backends properly configurable 2024-02-19 17:57:21 +02:00
wheremyfoodat
33eb096ef8 Better DSP scheduling 2024-02-18 22:22:00 +02:00
wheremyfoodat
f58354af06 Update DSP semaphore on semaphore event signal
Fixes Pokemon X and other DSP-needy games...
2024-02-18 03:54:00 +02:00
wheremyfoodat
d3dc9e2f71 Forward interrupts properly in Teakra DSP core 2024-02-18 00:24:08 +02:00
wheremyfoodat
16a312ee15
Add GSP::GPU::SetBufferSwap 2024-02-17 18:15:06 +02:00
Gabriel Machado
6af4a04987
Pandroid: Storage Access Framework (SAF) (#408) 2024-02-17 18:09:46 +02:00
wheremyfoodat
5dd3c02ffb Moar Teak LLE
Co-Authored-By: PSISP <12768103+psi-rockin@users.noreply.github.com>
2024-02-17 03:48:37 +02:00
wheremyfoodat
363c71e66c Hook DSP interface to DSP service HLE
Co-Authored-By: PSISP <12768103+psi-rockin@users.noreply.github.com>
2024-02-17 01:36:10 +02:00
wheremyfoodat
0a51a80d91 Add DSP emulation interface
Co-Authored-By: PSISP <12768103+psi-rockin@users.noreply.github.com>
2024-02-17 00:39:55 +02:00
wheremyfoodat
3c25be4c63
CPU: Remove totalTicks (unused since scheduler was added) 2024-02-11 21:57:44 +00:00
Ishan09811
51e2ef893c
Android: Split strings into categories (#405) 2024-02-11 21:47:19 +02:00
wheremyfoodat
641c23e58c
Merge pull request #404 from GabrielBRDeveloper/ishan-reviews
MaterialUI: Review ishan pr
2024-02-11 19:03:20 +00:00
gabriel
45bdfd67b1 Review and fix ishan things 2024-02-11 12:26:21 -04:00
wheremyfoodat
adcc9d93e4
Run clang-format 2024-02-11 13:50:50 +02:00
Ishan09811
f37bd9363f
use dialog instead of using toast when a rom is failed to load 2024-02-11 16:57:38 +05:30
wheremyfoodat
a797297105 Android: Toast when ROM fails to load 2024-02-10 18:48:56 +02:00
Ishan09811
3b4960194f
Material UI (#394)
* used material ui in ``holder_game`` + added click effect

* add click effect to use in ``holder_game``

* use material ui in ``dialog_lua_scripts``

* add required imports to use material ui in ``dialog_lua_scripts``

* use material ui in ``holder_lua_script``

* use material ui in ``fragment_game_drawer``

* use material ui in ``fragment_games``

* add appbar with app name + Material EditText

* fix drawarlayout

* remove line divider from ``NavigationView``
2024-02-08 17:38:47 +02:00
wheremyfoodat
b256c89e23
[APT] Make logs slightly less cluttered for better debugging 2024-02-03 00:14:43 +02:00
Gabriel Machado
74ea66efc5
Pandroid: Fix Navigation bar. (#398)
* fix navbar transparent

* too mutch fixes

- Fix Ui Render in android 7.
- Fix Navigation bar in android 7
- Rename developer option to advanced option.
- Fix crash because setTitle in action bar
- New style for switch button

* bonk

---------

Co-authored-by: gabriel <gabriel>
2024-02-03 00:11:59 +02:00