Do not initialize unnecessarily #426

Closed
marco-carvalho wants to merge 1 commits from CA1805 into master
marco-carvalho commented 2024-12-22 13:26:45 +00:00 (Migrated from github.com)
No description provided.
github-actions[bot] commented 2024-12-22 13:35:27 +00:00 (Migrated from github.com)
Download the artifacts for this pull request: * [ryujinx-Release-1.2.0+918500d-linux_arm64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353396128.zip) * [ryujinx-Release-1.2.0+918500d-linux_arm64-AppImage](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353396156.zip) * [ryujinx-Release-1.2.0+918500d-linux_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353397579.zip) * [ryujinx-Release-1.2.0+918500d-linux_x64-AppImage](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353397610.zip) * [ryujinx-Release-1.2.0+918500d-macos_universal](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353399464.zip) * [ryujinx-Release-1.2.0+918500d-win_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353401697.zip) <details><summary>GUI-less</summary> * [nogui-ryujinx-Release-1.2.0+918500d-linux_arm64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353396205.zip) * [nogui-ryujinx-Release-1.2.0+918500d-linux_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353397648.zip) * [nogui-ryujinx-Release-1.2.0+918500d-macos_universal](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353399502.zip) * [nogui-ryujinx-Release-1.2.0+918500d-win_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353401767.zip) </details> <details><summary>Only for Developers</summary> * [ryujinx-Debug-1.2.0+918500d-linux_arm64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353396153.zip) * [ryujinx-Debug-1.2.0+918500d-linux_arm64-AppImage](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353396218.zip) * [nogui-ryujinx-Debug-1.2.0+918500d-linux_arm64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353396275.zip) * [ryujinx-Debug-1.2.0+918500d-linux_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353398135.zip) * [ryujinx-Debug-1.2.0+918500d-linux_x64-AppImage](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353398177.zip) * [nogui-ryujinx-Debug-1.2.0+918500d-linux_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353398234.zip) * [ryujinx-Debug-1.2.0+918500d-macos_universal](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353400223.zip) * [nogui-ryujinx-Debug-1.2.0+918500d-macos_universal](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353400287.zip) * [ryujinx-Debug-1.2.0+918500d-win_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353402153.zip) * [nogui-ryujinx-Debug-1.2.0+918500d-win_x64](https://nightly.link/GreemDev/Ryujinx/actions/artifacts/2353402229.zip) </details>
GreemDev (Migrated from github.com) requested changes 2024-12-22 17:54:09 +00:00
GreemDev (Migrated from github.com) left a comment

Please add warning suppressions in the places with them.
A lot of them don't need to be fixed, since them never changing their value is mostly due to behavior that doesn't exist.

For example the _accumulatedSuspendedTickValue field in Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ISelfController.cs; this value is used (I think) for calculating how long the guest application has been suspended for when the user hits the home button to return to QLaunch (Switch Home Screen). We don't support QLaunch and likely never will, thus this value will likely always stay at 0.
We could inline usages to remove traces of something we don't support, but I'd rather leave it as is so if someone with a desire to see QLaunch working, they can add it in and take advantage of the fact that we already partially have the code made in a way that makes it easier.

Please add warning suppressions in the places with them. A lot of them don't need to be fixed, since them never changing their value is mostly due to behavior that doesn't exist. > For example the `_accumulatedSuspendedTickValue` field in `Ryujinx.HLE/HOS/Services/Am/AppletAE/AllSystemAppletProxiesService/SystemAppletProxy/ISelfController.cs`; this value is used (I think) for calculating how long the guest application has been suspended for when the user hits the home button to return to QLaunch (Switch Home Screen). We don't support QLaunch and likely never will, thus this value will likely always stay at 0. We could inline usages to remove traces of something we don't support, but I'd rather leave it as is so if someone with a desire to see QLaunch working, they can add it in and take advantage of the fact that we already partially have the code made in a way that makes it easier.

Pull request closed

Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MeloNX/Ryujinx-ryubing#426
No description provided.