Commit Graph
99 Commits
Author SHA1 Message Date
PabloMK7andOpenSauce fac8ae2682 Fix VS uniform fields type declaration 2025-03-17 22:59:47 +00:00
PabloMK7andOpenSauce 9d03856026 Fix uninitialized movable check on artic setup 2025-03-17 20:07:29 +00:00
PabloMK7andGitHub 0eb4a71720 Implement framebuffer vertical flip flag (#699)
* Implement framebuffer vertical flip flag

* Make VerticalMirror const
2025-03-17 19:39:55 +00:00
PabloMK7andOpenSauce 007b809ad7 Add support for uninitialized movable 2025-03-17 19:37:16 +00:00
PabloMK7andOpenSauce 66d8e58dcd Fix artic traffic label being white on light theme 2025-03-17 19:34:45 +00:00
PabloMK7andOpenSauce c13d2d7208 Fix incorrect crypto file handling if exefs override fails 2025-03-17 16:19:56 +00:00
PabloMK7andOpenSauce dac463d74a Fix system files setup on macos 2025-03-17 16:19:56 +00:00
PabloMK7andOpenSauce d72948ca22 am: Fix force new 3ds deviceID 2025-03-15 23:24:04 +00:00
PabloMK7andOpenSauce04 58b2ebd5cd android: Added MAC address setting from QT 2025-03-13 21:17:41 +00:00
PabloMK7andOpenSauce04 d5745cae8f Add LLE modules for online features option + AM Refactor w/ various improvements/fixes
- Added option to enable required LLE modules for online features.
- (Android) Fixed bug that would cause FS RenameFile to fail sometimes on Android.
- (Android) Moved New 3DS mode and LLE applets to system settings tab on Android.
- (Android) Fixed cfg save data related issues (mostly Console ID).
- Made AM title scanning asynchronous, which makes game boot way faster on Android on most cases.
- Made more AM functions asynchronous, to prevent stutter.
- Fixed bug in SOC that could cause the emulator to crash when disconnecting.
- Fixed keys not being initialized when processing console unique files.
2025-03-13 21:17:32 +00:00
42d77cd720 Implement "Set Up System Files" on Android (#653)
* Implement "Set Up System Files" on Android

* Use correct strings + Remove chunks of unused code

* Updated license header

* SystemFilesFragment.kt: Use radio buttons for selecting O3DS/N3DS

* HomeSettingsFragment.kt: Moved `Install CIA` above `Set Up System Files`

* strings.xml: Updated system file setup button strings

* android: Remove System Files Warning

This warning is no longer relevant due to changes in how system files are installed

---------

Co-authored-by: OpenSauce04 <opensauce04@gmail.com>
2025-03-12 22:41:45 +01:00
PabloMK7 db168cfac4 Various savestate bugfixes 2025-03-12 20:50:51 +01:00
PabloMK7andOpenSauce a5ad887771 Do data migration before QtConfig is constructed 2025-03-10 12:16:14 +00:00
PabloMK7andOpenSauce dd9c743041 Add cmake option to enable microprofile 2025-03-10 11:41:05 +00:00
PabloMK7andGitHub e3a21c8ef1 Add 'Set Up System Files' option (#642)
* Add 'Set Up System Files' option

* Fix CIA installation and HLE module loading when no console unique data provided.
2025-03-10 10:48:11 +00:00
PabloMK7andOpenSauce 43dbe42b29 Fix dynarmic on msys2 2025-03-08 22:29:48 +00:00
PabloMK7andGitHub 8149302187 Use NEON intrinsics in Vec4 dot operation (#598) 2025-03-01 23:24:19 +01:00
PabloMK7andGitHub 99c211d7f9 Update discord rich presence to use Azahar application (#589) 2025-03-01 13:50:35 +01:00
PabloMK7andOpenSauce 76a929346a Fix CreateFullPath not working with windows paths 2025-03-01 12:16:26 +00:00
PabloMK7andGitHub 8ad53ca705 Encrypt downloaded apps with a console unique key 2025-03-01 12:12:52 +00:00
PabloMK7andGitHub 5a0ad29bab Merge pull request #4 from PabloMK7/amimprovements
Major revamps to match game loading decisions.
2025-02-27 14:39:12 +01:00
PabloMK7 dc1ebb63cb Major revamps to match game loading decisions.
- Allow downloading titles from eshop and system settings
- Remove encrypted game support
2025-02-27 14:22:50 +01:00
PabloMK7andOpenSauce04 758ded7fae renderer: Add disable right eye performance hack 2024-11-19 16:36:24 +00:00
PabloMK7 ec14c621ff memory: Cache last physical memory pointer 2024-11-13 12:35:13 +01:00
PabloMK7 50f8e3f3ed plgldr: Fix loading of plugins due to typo 2024-11-13 11:14:00 +01:00
PabloMK7 9d2d669066 Make plugins only load for apps and not applets (#265) 2024-11-07 14:47:32 +01:00
PabloMK7 a37d5727f5 Match changes to svcMapProcessMemoryEx from latest Luma3DS (#264) 2024-11-07 14:47:32 +01:00
PabloMK7 2c349668f3 Update submodules and build environments (#232)
* Update Vulkan and QT submodules

* Undefine FORTIFY_SOURCE before defining again

* Update discord-rpc submodule
2024-11-07 14:47:28 +01:00
PabloMK7andIndecisiveTurtle 407bff43e5 pica: Move mutex lock below tracing check on register write (#210)
Co-authored-by: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com>
2024-11-07 14:47:27 +01:00
PabloMK7 efe2ee6a43 Add instant log flush option (#209) 2024-11-07 14:47:26 +01:00
PabloMK7 60c29ede5e Artic Base: Fix issue when 0 bytes are read from file (#199) 2024-11-07 14:47:25 +01:00
PabloMK7 70221780ef renderer_vulkan: Address vulkan surface recreation issues (#198) 2024-11-07 14:47:25 +01:00
PabloMK7 59ca96da97 Artic Base: Add Artic Controller support (#195) 2024-11-07 14:47:25 +01:00
PabloMK7 ba30bfa737 Revert "android: implement device rotation options (#182)" (#194)
This reverts commit 93025c95f2ce4baed37a7b587236f12ef667c540.
2024-11-07 14:47:24 +01:00
PabloMK7 e74cee245e renderer_vulkan: Reduce wait semaphores and wait for present before destroying 2024-11-07 14:44:08 +01:00
PabloMK7 63cbd90049 Workaround a performance bug in older Mali GPUs (#185) 2024-11-07 14:44:07 +01:00
PabloMK7 9e9f63bc67 Implement game render thread delay (#180)
More details: https://www.reddit.com/r/Citra/comments/1e1v4e1/fixing_luigis_mansion_2_performance_issues_once/
2024-11-07 14:44:07 +01:00
PabloMK7 3b2f8cfcd7 Fixup logic for GSP_GPU::TriggerCmdReqQueue (#177) 2024-11-07 14:44:06 +01:00
PabloMK7 a19a4fad7e Artic Base: Implement DLC support and other fixes (#173)
* Artic Base: Implement DLC support and other fixes

* Fix per game settings not working with artic loader

* Fix compilation error
2024-11-07 14:44:06 +01:00
PabloMK7 ccabbaf2ac Artic Base: Fix fallback read/write not being chunked (#171) 2024-11-07 14:44:05 +01:00
PabloMK7 9a6a2d879d Update dynarmic to the latest version. (#170) 2024-11-07 14:44:04 +01:00
PabloMK7 3eb5754cfe Fix crash when cubemap face id is invalid (#154)
* Fix crash when cubemap face id is invalid

* make variable const
2024-11-07 14:44:04 +01:00
PabloMK7 23ed261fba Fix HTTP RequestState values (fixes Pretendo Network support with HLE http) (#143)
* Fix http RequestState values

* Fix formatting
2024-11-07 14:44:02 +01:00
PabloMK7 404130ce78 Do not use the cache if the read would result in OOB (#130) 2024-11-07 14:44:01 +01:00
PabloMK7 c171aaad10 Revert "Artic Base: Fix out of bounds cache reads (#127)" (#129)
This reverts commit 05cccb585d7c248784e547ae65ca595823c385c7.
2024-11-07 14:44:01 +01:00
PabloMK7 475a061a72 Artic Base: Fix out of bounds cache reads (#127) 2024-11-07 14:44:01 +01:00
PabloMK7 c59bbd1ddb Fix PTM ext data creation after Artic Base changes. (#111) 2024-11-07 14:44:00 +01:00
PabloMK7 af6087406b Add Artic Base support (#105)
* Add Artic Base support

* Add Android support
2024-11-07 14:44:00 +01:00
PabloMK7 6e353d22ce renderer_vulkan: Use proper image view on LCD fills (#91) 2024-11-07 14:43:56 +01:00
PabloMK7 a166784716 Fix showing color console if debugger attached on windows. (#88) 2024-11-07 14:43:55 +01:00
PabloMK7 e7758d47f6 Remove resource limit checks for now. (#89) 2024-11-07 14:43:55 +01:00
PabloMK7 03b5704aab Allow loading IPS files from Luma3DS folders. (#87) 2024-11-07 14:43:55 +01:00
PabloMK7 df35636354 Add svcs to get and set the emulation speed. (#57) 2024-11-07 14:43:24 +01:00
PabloMK7 67ff74696c Reduce log levels for some FS functions and stub cache svcs (#51) 2024-11-07 14:43:24 +01:00
PabloMK7 277570f7c7 Remove dependencies to old docker containers (#21)
* Fix CI

* Change missing yml
2024-11-07 14:41:31 +01:00
PabloMK7andDaniel López Guimaraes 162bc51dc6 Add console unique data (SecureInfo, LocalFriendCodeSeed, CTCert) (#6)
* Add console unique secure data

* Add CTCert and DeviceID support

* Fix AM_U::GetDeviceID

Co-authored-by: Daniel López Guimaraes <112760654+DaniElectra@users.noreply.github.com>

* Update to latest master changes.

---------

Co-authored-by: Daniel López Guimaraes <112760654+DaniElectra@users.noreply.github.com>
2024-11-07 14:41:31 +01:00
PabloMK7 e225e13baa Add log regex filter (#9) 2024-11-07 14:41:29 +01:00
PabloMK7 7089c6adb2 Add HOST_TICK and BUILD_PLATFORM to svcGetSystemInfo CITRA_INFORMATION type (#8)
* Add HOST_TICK to svcGetSystemInfo CITRA_INFORMATION type

* Add BUILD_PLATFORM
2024-11-07 14:41:29 +01:00
PabloMK7 16e34f8e89 Implement plugin loader Mode3 mem strategy (#7) 2024-11-07 14:41:28 +01:00
PabloMK7 82ed656630 Revert "Implement some missing/wrong AC functionality." (#5)
* Revert "Implement some missing/wrong AC functionality."

* Remove setting wifi level from nwm
2024-11-07 14:41:27 +01:00
PabloMK7 b582cfc959 Update submodule repositories (First Azahar commit) 2024-11-07 14:39:52 +01:00
PabloMK7andGitHub d41ce64f7b Add ipv6 socket support (#7418)
* Add IPV6 socket support

* Suggestions
2024-02-07 19:22:44 -08:00
PabloMK7andGitHub 95ae46f6a8 SOC_U: Account for variable CTRSockAddr size (#7387)
* SOC_U: Account for variable CTRSockAddr size.

* Apply suggestions
2024-01-26 08:00:19 -08:00
PabloMK7andGitHub 6a7841d4b0 fs: Update comment in Get[This]SaveDataSecureValue (#7359)
Upon further research, I found out the unknown value in FS::Get[This]SaveDataSecureValue indicates that the requesting process is a game card. I have updated the comment for future reference.
2024-01-15 11:42:28 -08:00
PabloMK7andGitHub 72c1075402 Reorder error handling in extdata FS::CreateFile (#7346)
* Reorder error handling in extdata CreateFile

* Apply suggestions
2024-01-13 12:37:06 -08:00
PabloMK7andGitHub a177769c3b Add random sleep to game main thread on first boot when using LLE modules (#7199)
* Add random delay to app main thread

* Suggestions

* Remove randomness, only delay with lle

* Apply suggestions

* Fix clang format

* Fix compilation (again)

* Remove unused include
2024-01-12 12:48:00 -08:00
PabloMK7andGitHub 19d5695aa3 Implement some missing/wrong AC functionality. (#7171)
* Implement some missing/wrong AC functionality.

* Schedule NDM connect event into the future

* Disable NDM connect for now as it's causing issues

* Apply latest changes and suggestions.

* Workaround to fake wifi connection.

* Add missing command to ac:i

* Fix compilation

* Fix error codes for CamcelConnectAsync

* Fix missing global state.
2024-01-12 09:15:47 -08:00
PabloMK7andGitHub a47d8a7b4d Fix incorrect service name in SOC_U::GetService (#7261) 2023-12-19 08:04:28 -08:00
PabloMK7andGitHub d680b79725 Implement some missing SOC functionality (#7176)
* Implement some missing SOC functionality

* Add LOG_POLL macro for debugging

* Fix compilation

* Temporary fix for Android

* Temporary fix for Android (for real)

* Apply suggestions

* Add stubbed notice to android sockatmark

* Apply suggestions
2023-12-17 08:50:24 -08:00
PabloMK7andGitHub f8ae41dfe3 Implement cfg UUID Clock Sequence (#7169)
* Implement cfg UUID Clock Sequence

* Remove unneeded variable.

* Apply suggestions

* Apply suggestions
2023-11-20 20:05:16 -08:00
PabloMK7andGitHub b6acebcb11 Stub some missing AM Ticket functions (#7172) 2023-11-18 15:55:47 -08:00
PabloMK7andGitHub 680e132318 Unlock RW access to opened files on windows (#7161)
* Unlock RW access to opened files on windows

* Add missing include
2023-11-17 03:14:00 -08:00
PabloMK7andGitHub de40153fa4 Implement PS:GetRandomBytes and use openssl for random bytes (#7164) 2023-11-14 16:15:50 -08:00
PabloMK7andGitHub e9936e01c2 Stub QTM_S:GetHeadtrackingInfo (#7166)
* Stub QTM_S:GetHeadtrackingInfo

* Suggestions
2023-11-15 02:04:14 +02:00
PabloMK7andGitHub 63d1830429 Download TWL titles from NUS and list them in AM. (#7162)
* Download TWL titles from NUS and list them in AM.

* Remove duplicate entries.

* Move TODO comment
2023-11-14 01:33:58 -08:00
PabloMK7andGitHub 3b31720c4d Map MappedBuffer guard pages in a single operation. (#7158) 2023-11-14 01:33:38 -08:00
PabloMK7andGitHub 1c793deece Lower log level of CSND::ExecuteCommands stub warning (#7163) 2023-11-13 13:34:56 -08:00
PabloMK7andGitHub 4284893044 Implement RomFS cache and async reads. (#7089)
* Implement RomFS cache and async reads.

* Suggestions and fix compilation.

* Apply suggestions
2023-11-02 17:19:00 -07:00
PabloMK7andGitHub 597a2e8ead Add missing FS:USER functions (#7051) 2023-10-31 14:01:25 -07:00
PabloMK7andGitHub 897d1fa957 Implement more HTTP:C functionality (#7035)
* Implement missing http:c functionality.

* More implementation details and cleanup.

* Organize code

* Disable treat errors as warnings for httplib

* Fix defines

* Remove pragmas that do nothing and mark as SYSTEM

* Make httplib system

* Try to fix issue from httplib

* Apply suggestions

* Fix header ordering

* Fix compilation issue

* Create and use ctx.CommandID()

* Add and use Common::TruncateString

* Apply more suggestions

* Apply suggestions

* Fix compilation

* Apply suggestions

* Fix format

* Revert SplitURL to previous version

* Apply suggestions
2023-10-11 10:09:16 -07:00
PabloMK7andGitHub 6264b6d43c Use RunAsync in multiple socket operations (#7053)
* Use RunAsync in multiple socket operations

* EOF newline

* Fix linux compilation

* Fix compilation on macos
2023-10-09 14:59:08 -07:00
PabloMK7andGitHub 9ec4954380 Add HLERequestContext::RunAsync (#7027) 2023-10-02 11:09:27 -07:00
PabloMK7andGitHub 5b9f4d4129 SOC: Fix setting TTL to default value when TTL = 0 (#6835) 2023-08-02 13:06:51 -07:00
PabloMK7andGitHub 35e208b447 Move MiiData to its own namespace and add ChecksummedMiiData (#6824)
* Move mii to own namespace and add checksummed mii data

* Fix compile issues

* Make mii classes trivial and add cast operator

* Fix Android side

* Add new line at the end of files.

* Make miidata a struct and crc16 a u32_be as per switch code.

* Apply suggestions

* Change back crc to u16 and set padding to 0.
2023-07-31 20:38:47 -07:00
PabloMK7andGitHub 2281bf5b0b Add range check for renderer config (#6560) 2023-05-21 19:01:26 -07:00
PabloMK7andGitHub 5c45c97ff9 Implement/Fix more SOC related functions (#6267)
* Implement SOC_U::GetHostByName and partial SOC_U::GetNetworkOpt

* Implement AC::GetWifiStatus, and get proper network interface.

* Minor fixes

* More minor fixes

* Even more fixes

* Fix Get/Set SockOpt

* Implement SendToOther

* Apply suggestions and fix timer advance

* Fix variable name

* Add more sockopt values and fix send/recv flags.

* Fix dontwait logic

* Add missing header for linux

* Remove TCP_STDURG

* Fix poll and add more 3ds <-> platform conversions

* Finish implementing all platform <-> 3ds conversion.

* Disable UDP connreset and fix poll again.

* Fix compile issues

* Apply suggestions

* Fix compiler issues

* Fix compiler errors (again)

* Fix GetAddrInfo

* Use IPC::MakeHeader instead of raw hardcoded value.
2023-05-21 19:01:08 -07:00
63bc0b59bb Use IPC:MakeHeader instead of hardcoded raw values for IPC command tables. (#6453)
* Use IPC:MakeHeader instead of hardcoded values for IPC command tables.

* Use u32 instead of unsigned int in MakeHeader function

Co-authored-by: SachinVin <26602104+SachinVin@users.noreply.github.com>

* Fix clang format

---------

Co-authored-by: SachinVin <26602104+SachinVin@users.noreply.github.com>
2023-04-27 22:31:03 -07:00
PabloMK7andGitHub 3fb48716c5 CreateThread invalid processor ID return error instead of assert. (#6354) 2023-03-21 17:06:07 +01:00
PabloMK7andGitHub 0f6478a928 Fix crash when plugin has missing text section (#6264) 2023-01-27 15:06:35 +02:00
PabloMK7andGitHub 9c6035f254 Implement svcGetHandleInfo, svcOpenProcess/Thread, svcGetProcessList (#6243)
* Implement svcGetHandleInfo, svcOpenProcess/Thread, svcGetProcessList

* Apply suggestions

* Add comment to stubbed enum values in svcGetHandleInfo

* Revert u32 -> size_t
2023-01-15 21:50:54 +05:30
PabloMK7andGitHub 016ce6c286 Add 3GX plugin loader (#6172)
* Initial plugin loader support

* More plugin loader progress

* Organize code and more plugin features

* Fix clang-format

* Fix compilation and add android gui

* Fix clang-format

* Fix macos build

* Fix copy-paste bug and clang-format

* More merge fixes

* Make suggestions

* Move global variable to static member

* Fix typo

* Apply suggestions

* Proper initialization order

* Allocate plugin memory from SYSTEM instead of APPLICATION

* Do not mark free pages as RWX

* Fix plugins in old 3DS mode.

* Implement KernelSetState and notif 0x203

* Apply changes

* Remove unused variable

* Fix dynarmic commit

* Sublicense files with MIT License

* Remove non-ascii characters from license
2022-12-11 10:08:58 +02:00
PabloMK7andGitHub d04d71e4c9 Remove misplaced return statement 2022-11-09 16:25:52 +01:00
PabloMK7andGitHub 4d684174e0 Fix socket poll and handling in windows (#6166)
* Fix socket poll and handling in windows

* Fix clang

* Add guest timing adjust

* Use platform independent time fetch

* Use proper type in time_point

* Fix ambiguous function call

* Do suggestions

* Take cpu_clock_scale into account in tick adjust
2022-10-27 18:35:49 +05:30
PabloMK7 e14b9f7a25 Fix clang-format and unused include 2022-10-27 01:09:18 +02:00
PabloMK7 fd7ada2a9c Fix chainloading for all apps 2022-10-23 22:55:50 +02:00
PabloMK7 d396944487 Fix self updating ncch app jump 2022-10-21 01:12:29 +02:00
PabloMK7 c49379442d Fix auto updating ncch files 2022-10-20 23:14:57 +02:00
PabloMK7andGitHub 67c4b87184 Add internet permission to android build (#6167) 2022-10-20 07:18:32 +05:30
PabloMK7andGitHub 593b0b2d8f Add svcGetSystemInfo 0x20000 to get citra information (#5955) 2022-04-14 19:58:44 +05:30