Commit Graph

27572 Commits

Author SHA1 Message Date
Zephyron
98d0c627e6 hle/service: Implement missing Glue services for 20.0.0+ support
- **ARP Service (arp:r/arp:w)**: Added 20.0.0+ function support
  * arp:r: GetApplicationInstanceUnregistrationNotifier, ListApplicationInstanceId,
    GetMicroApplicationInstanceId, GetApplicationCertificate, GetPreomiaApplicationLaunchProperty,
    GetPreomiaApplicationControlProperty
  * arp:w: AcquireApplicationProcessPropertyUpdater, AcquireApplicationCertificateUpdater,
    RegisterApplicationControlProperty
  * Added interface classes: IUnregistrationNotifier, IApplicationProcessPropertyUpdater,
    IApplicationCertificateUpdater

- **Platform Service Manager (pl:u)**: Added Switch 2 [S2] functions
  * Commands 2010, 2020, 2100 (Unknown2010, Unknown2020, OpenFont)

- **ECTX Service**: Added missing ectx:r service implementation
  * Registered ectx:r service alongside existing ectx:aw

- All functions properly stubbed
- Fixed PushIpcInterface usage with shared_ptr
- Command mappings follow switchbrew.org documentation
- Ensures compatibility with 20.0.0+ system versions

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-07-01 20:06:45 +10:00
Zephyron
fd6f3c0418 Merge branch 'am-add-new-functions-services' into 'master'
core/hle: Implement all missing AM (Applet Manager) service functions

See merge request citron/rewrite!29
2025-07-01 07:54:43 +00:00
Zephyron
2776962067 core/hle: Implement all missing AM (Applet Manager) service functions
Add complete implementation of missing functions and services from the Applet Manager services documentation, including 20.0.0+ functions.

Changes:
- IApplicationFunctions: Add functions 210-999 including 20.0.0+ function 460
  * GetLaunchRequiredVersionUpgrade, RequestToLaunchApplication
  * DeclareApplicationAlive, GetApplicationControlProperty
  * CreateApplicationResourceUsageSystemReportForDebug, etc.

- IHomeMenuFunctions: Add functions 300-910
  * RebootSystem, LaunchApplication, GetAppletLaunchedHistory
  * TakeScreenShotOfOwnLayerEx, CreateFloatingLibraryApplet, etc.

- IGlobalStateController: Add functions 50-400
  * VR mode functions, wireless priority mode, system button history
  * Operation mode changes, sleep/wake functionality, etc.

- ISelfController: Add functions 140-950
  * Recording functions, CPU boost, performance configuration
  * Migration services, album accessors, etc.

- ICommonStateGetter: Add functions 600-1063
  * Save data functions, cache storage, GPU error detection
  * Capture image functions, HDCP authentication, etc.

- Create new service classes:
  * IOverlayAppletProxy with IOverlayAppletFunctions
  * ISystemApplicationProxy for system applications

- Fix IAllSystemAppletProxiesService stub implementations:
  * OpenOverlayAppletProxy, OpenSystemApplicationProxy
  * CreateSelfLibraryAppletCreatorForDevelop, GetDebugFunctions

All functions are appropriately implemented. Functions without descriptions return stub implementations. Includes all 20.0.0+ functions from switchbrew documentation.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-07-01 17:54:07 +10:00
Zephyron
e2e35d1af6 Merge branch 'tma-add-new-functions-services' into 'master'
core/hle: Implement TMA (Target Manager Agent) service

See merge request citron/rewrite!28
2025-07-01 06:27:59 +00:00
Zephyron
04b0624930 core/hle: Implement TMA (Target Manager Agent) service
Add implementation for the TMA service which provides file I/O
and debugging functionality for development tools.

Changes:
- Add TMA service with IFileManager, IFileAccessor, and IDirectoryAccessor
- Implement stubbed file operations (ReadFile, WriteFile, GetFileSize, etc.)
- Implement stubbed directory operations (ReadDirectory, GetEntryCount, etc.)
- Add TMA logging category for service debugging
- Fix parameter alignment in ReadFile function signature

All functions are provided as-is to allow games and development tools to initialize
without errors.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-07-01 16:25:30 +10:00
Zephyron
312de1beca Merge branch 'fsp-add-new-functions-services' into 'master'
fs: Implement missing filesystem functions and interfaces

See merge request citron/rewrite!27
2025-06-30 09:26:35 +00:00
Zephyron
90f265837d fs: Implement missing filesystem functions and interfaces
- Add IDeviceOperator interface with 49 functions for SD card, MMC, and game card operations
- Add IEventNotifier interface for filesystem event notifications
- Add ISaveDataTransferManager and related transfer interfaces (exporter/importer)
- Add IWiper interface for BIS partition wiping
- Enhance FSP_SRV with OpenDeviceOperator, OpenSdCardDetectionEventNotifier, OpenSaveDataTransferManager, and other missing functions
- Enhance FSP_LDR with OpenCodeFileSystem, IsArchivedProgram, and SetCurrentProcess implementations
- Enhance FSP_PR with RegisterProgram, UnregisterProgram, and verification functions
- Fix ServiceContext usage for proper event creation and management
- Fix function parameter alignment issues for CMIF serialization
- Update build system to include new source files
- Update copyright headers to 2025 citron

All functions are implemented with appropriate logging and parameter validation based on Nintendo Switch filesystem services documentation.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-30 19:24:23 +10:00
Zephyron
7f5661440a Merge branch 'sockets-add-new-functions-services' into 'master'
core/sockets: Add missing socket services and functions from switchbrew

See merge request citron/rewrite!26
2025-06-30 08:02:01 +00:00
Zephyron
90dc2df21a core/sockets: Add missing socket services and functions from switchbrew
- Add Unknown39 and Unknown40 functions to BSD service for [20.0.0+]
- Implement bsd:nu service with ISfUserService and ISfAssignedNetworkInterfaceService
- Add dns:priv and ethc:c/ethc:i service stubs
- Update CMakeLists.txt to include new socket service files
- All new functions include basic stub implementations following existing patterns

This completes the socket services implementation based on switchbrew.org documentation.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-29 16:57:26 +10:00
Zephyron
ed6d170c3b Merge branch 'hid-add-new-functions-services' into 'master'
hid: Implement missing HID service functions and stubs

See merge request citron/rewrite!25
2025-06-29 05:57:14 +00:00
Zephyron
04dfb8914f hid: Complete HID service implementation with all switchbrew functions
- Add all missing function declarations and implementations for HID server
- Implement functions from 15.0.0+ through 20.0.1+ firmware versions
- Add proper command buffer IDs matching switchbrew documentation:
  * 1010: SetForceSixAxisSensorFusedParameters [15.0.0+]
  * 1011: GetForceSixAxisSensorFusedParameters [15.0.0+]
  * 1012: GetFirmwareVersionStringForUserSupportPage [20.0.0+]
  * 1420: GetAppletResourceProperty [19.0.0+]
  * 533: SetPalmaDisallowedActiveApplications [20.0.0+]
  * 410: GetNpadOfHighestBatteryLevelForJoyLeft
- Add comprehensive Unknown function stubs for gaps in documentation
- Update HID debug server with missing functions and fix duplicate entries
- Organize functions by firmware version with proper comments
- Update firmware version string to realistic Atmosphere 1.9.1 + NX 20.1.5
- Fix GetResourceManager to use Initialize() instead of UpdateControllers()
- Ensure all functions have proper stub implementations with logging

This brings Citron's HID service implementation to full parity with the
official Nintendo Switch HID service as documented on switchbrew.org.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-29 15:55:54 +10:00
Zephyron
407c656f69 hid: Implement missing HID service functions and stubs
Add implementations for previously unimplemented HID functions:

* Accelerometer parameter functions (73-78):
  - SetAccelerometerParameters, GetAccelerometerParameters, ResetAccelerometerParameters
  - SetAccelerometerPlayMode, GetAccelerometerPlayMode, ResetAccelerometerPlayMode

* Six-axis sensor calibration (86):
  - StoreSixAxisSensorCalibrationParameter

* Seven six-axis sensor fusion strength (308-309):
  - SetSevenSixAxisSensorFusionStrength, GetSevenSixAxisSensorFusionStrength

* USB Full Key Controller and battery functions (401-408):
  - EnableUsbFullKeyController, IsUsbFullKeyControllerConnected
  - HasBattery, HasLeftRightBattery
  - GetNpadInterfaceType, GetNpadLeftRightInterfaceType
  - GetNpadOfHighestBatteryLevel, GetNpadOfHighestBatteryLevelForJoyRight

* Digitizer activation (2000):
  - ActivateDigitizer

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-28 20:33:39 +10:00
Zephyron
cdcda1fa5b feat(core): Update HOS and NintendoSDK version constants
- Bumps HOS version from 20.1.1 to 20.1.5
- Updates the corresponding `VERSION_HASH`, `DISPLAY_VERSION`, and
  `DISPLAY_TITLE` strings.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-28 19:55:42 +10:00
Zephyron
9e49ff3897 Revert "audio_core: Improve audio renderer compatibility and error handling"
This reverts commit c8aeab799d.
2025-06-23 19:15:09 +10:00
Zephyron
39ed0afa1f Revert "Implement IApplicationFunctions function 210 (RequestToAcquireUserUsedMemory)"
This reverts commit 1471d150d0.
2025-06-23 19:14:23 +10:00
Zephyron
1471d150d0 Implement IApplicationFunctions function 210 (RequestToAcquireUserUsedMemory) 2025-06-20 15:52:14 +10:00
Zephyron
66a3980a43 hid: Implement ActivateDebugMouse function
Adds implementation for the missing ActivateDebugMouse HID service function
that was causing crashes when games attempted to call it.

- Add ActivateDebugMouse declaration to IHidServer header
- Implement ActivateDebugMouse function following the same pattern as ActivateMouse
- Update function table to call the actual implementation instead of nullptr
- Add missing include for debug_mouse.h

Fixes crashes in games (GEX Trilogy) that use debug mouse functionality.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-18 19:41:43 +10:00
Zephyron
c8aeab799d audio_core: Improve audio renderer compatibility and error handling
- Change mix size mismatch from error to warning with recovery
- Adjust input pointer when consumed size doesn't match header size
  to prevent desync and allow processing to continue
- Expand VoiceInfo::InParameter struct by 24 bytes (0x170 -> 0x188)
  to support newer audio renderer versions
- Update static_assert to reflect new structure size

This improves compatibility with games that use newer audio renderer versions or have slight structural differences.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-16 17:24:58 +10:00
Zephyron
4aee8c6709 video_core: Suppress MSVC warnings for VulkanMemoryAllocator
- Add citron copyright header
- Disable compiler warnings for vulkan_common/vma.cpp on MSVC builds
  to prevent third-party VMA library warnings from cluttering build output

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-16 17:22:29 +10:00
Zephyron
08a5d2b4d4 Merge branch 'settings-ui-redesign' into 'master'
ui: Redesign settings dialog with modern layout and improved UX

See merge request citron/rewrite!24
2025-06-16 06:26:27 +00:00
Zephyron
190e7ecfb7 feat: Add Build ID display to per-game configuration dialog
- Extract and display Base Build ID and Update Build ID for Nintendo Switch games
- Support multiple file formats: NSO, Deconstructed ROM, XCI, NSP, and NCA
- Read build IDs directly from NSO headers at offset 0x40 (32 bytes)
- Handle complex file structures with proper fallback mechanisms
- Add dedicated UI fields for both base and update build IDs
- Improve cheat compatibility by showing build IDs needed for cheat files

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-16 16:17:50 +10:00
Zephyron
1abbc3d475 fix: prevent crash when detecting newer updates in NCA integrity verification
- Change storage assignment from SetDataStorage() method to direct array indexing to prevent crashes when newer game updates are detected.
- The previous method was incorrectly handling storage info assignment for integrity verification layers.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-11 18:47:25 +10:00
Zephyron
bc39ce4e74 ui: Redesign settings dialog with modern layout and improved UX
- Reorganize tabs in logical order (General first, UI, System, etc.)
- Implement single-row dynamic tab layout for cleaner appearance
- Shorten tab labels for better fit ("UI", "Graphics (Adv)")
- Fix Graphics tab layout with proper scrolling and spacing
- Remove redundant reset settings checkbox (use General tab instead)
- Apply modern dark theme styling with improved colors and spacing
- Enhance tab button sizing and responsiveness
- Update copyright headers for 2025

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-04 17:08:25 +10:00
Zephyron
e8918426fa Merge branch 'aoc-add-new-functions-services' into 'master'
feat(service/aoc): Implement IContentsServiceManager

See merge request citron/rewrite!23
2025-06-03 12:20:35 +00:00
Zephyron
4bd4e662d2 feat(service/aoc): Implement IContentsServiceManager
- Add IContentsServiceManager class with RequestContentsAuthorizationToken function
- Add IAsyncData class for handling asynchronous authorization token operations
- Implement CreateContentsServiceManager in IAddOnContentManager (was previously stubbed)
- Add support for GetSize, Read, Cancel, and GetSystemEvent operations in IAsyncData
- Update CMakeLists.txt to include new source files

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-03 22:19:44 +10:00
Zephyron
1febbc4911 feat(core): Update HOS and NintendoSDK version constants
- Bumps HOS version from 20.0.1 to 20.1.1.
- Updates the corresponding `VERSION_HASH`, `DISPLAY_VERSION`, and
  `DISPLAY_TITLE` strings.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-03 21:48:46 +10:00
Zephyron
050f876ace Merge branch 'openal-audio-implementation' into 'master'
audio_core: Add OpenAL audio backend support

See merge request citron/rewrite!22
2025-06-01 05:27:58 +00:00
Zephyron
abf5f6730b audio_core: Add OpenAL audio backend support
- Add complete OpenAL sink implementation with robust error handling
- Support for device enumeration using ALC extensions
- Implement dummy streams for graceful degradation when OpenAL fails
- Add proper audio threading and buffer management
- Include comprehensive logging and diagnostic information
- Add stream limits and retry mechanisms for stability

Additional changes:
- Add ENABLE_OPENAL CMake option and OpenAL dependency management
- Include openal-soft in vcpkg dependencies
- Add OpenAL to audio engine settings enum

The OpenAL backend provides an alternative audio solution alongside
existing Cubeb and SDL2 backends, with enhanced device compatibility
and improved error recovery mechanisms.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-06-01 15:26:55 +10:00
Zephyron
1238d37f27 Merge branch 'android-advanced-emulation-settings' into 'master'
cmake(android): Optimize Vulkan Validation Layer handling

See merge request citron/rewrite!21
2025-05-30 07:38:33 +00:00
Zephyron
d9192952bb Merge branch 'grid-view-implementation' into 'master'
feat: Add grid view with round icons for game list

See merge request citron/rewrite!20
2025-05-30 07:23:51 +00:00
Zephyron
55867a6972 style: Use rounded corners instead of circular icons in grid view
- Replace circular clipping with subtle rounded corners (radius = size/8) for a more modern and polished appearance.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-30 17:04:17 +10:00
Zephyron
8671e067ae feat: Add grid view with round icons for game list
- Implement toggle between list and grid view modes (Ctrl+G)
- Add round icon rendering with anti-aliased circular clipping
- Display game titles below icons in grid layout
- Create flat model for grid view showing only games
- Add View menu option and Ctrl+G hotkey for toggling
- Implement separate filtering logic for both view modes
- Update grid layout with proper spacing and text alignment
- Maintain existing tree view functionality and features
- Support double-click to launch and right-click context menus in both modes

The grid view provides a more visual game browsing experience while
preserving all existing functionality of the original list view.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-30 16:45:02 +10:00
Zephyron
837af6ccb9 feat: Add compact overlay system with FPS, thermal, and RAM indicators
- Replace old text-based FPS/thermal overlays with custom views
- Add new FpsIndicatorView with color-coded performance display
- Add ThermalIndicatorView showing battery temperature in °C/°F
- Add RamMeterView with usage percentage and visual progress bar
- Arrange all overlays horizontally at top center of screen
- Add native configuration support for show_ram_meter setting
- Update overlay options menu to include RAM meter toggle
- Implement proper battery temperature reading via BatteryManager
- Use compact 120x60 (FPS/thermal) and 140x60 (RAM) dimensions
- Add color coding: green (good), orange (moderate), red (poor/hot)
- Include appropriate icons and shadows for better visibility (WIP)

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-25 21:22:29 +10:00
Zephyron
693eb0e863 android: Port advanced emulation settings to Zep Zone
- Add memory layout configuration (4GB-16GB DRAM options)
- Implement ASTC texture handling controls
- Add shader backend selection (GLSL/GLASM/SPIR-V)
- Include VRAM usage mode settings
- Create organized UI with headers and detailed descriptions
- Based On Uzuy Commit 8f49bef05c 14/09/2024

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-25 19:44:29 +10:00
Zephyron
f15e592810 android: Major build configuration update
- Upgrade to Android 35 (API 35) with NDK 27.2.12479018
- Enable release build optimizations (resource shrinking, proguard-optimize)
- Drop x86_64 support, ARM64-only builds
- Update CMake to 3.31.7 with flexible page sizes support
- Clean up unused dependencies

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-25 19:37:05 +10:00
Zephyron
e85f691767 nsd: Suppress unused variable warnings
Mark ResultNotImplemented and ResultNsdNotInitialized with
[[maybe_unused]] to avoid compiler warnings.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-25 19:33:54 +10:00
Zephyron
110ffa1521 cmake(android): Optimize Vulkan Validation Layer handling
- Check if libVkLayer_khronos_validation.so exists before downloading
- Skip extraction if android-binaries directory already exists
- Reduces redundant downloads and extractions during CMake reconfiguration
- Maintains backward compatibility with existing build process

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-25 19:32:42 +10:00
Zephyron
f40624bf25 ui(android): Add Citron's XML Logo's
Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-25 15:05:58 +10:00
Zephyron
294949855f Merge branch 'memory-layout-10-12-14-16gb' into 'master'
feat: Add 10GB, 12GB, 14GB, and 16GB DRAM configuration options

See merge request citron/rewrite!19
2025-05-24 07:14:38 +00:00
Zephyron
fdf1bfc06a feat: Add 10GB, 12GB, 14GB, and 16GB DRAM configuration options
- Extended MemoryLayout enum with new memory size options
- Added corresponding SMC memory size and arrangement constants
- Updated system control functions to handle new memory configurations
- Added appropriate application pool sizes for higher memory modes
- Updated UI translations to display new DRAM options as "Unsafe"
- Increased maximum memory layout setting from 8GB to 16GB

This allows users to configure higher memory amounts for games and
texture mods that require more than the standard 4-8GB configurations.
All new options are marked as "Unsafe" in the UI to indicate they
are experimental features beyond Nintendo's official specifications.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-24 17:10:19 +10:00
Zephyron
f3c8a1bfcd Merge branch 'audio-add-new-functions-services' into 'master'
hle/service/audio: Implement missing audio services and functions

See merge request citron/rewrite!18
2025-05-24 06:40:11 +00:00
Zephyron
238e8282b2 hle/service/audio: Implement missing audio services and functions
- Add complete IAudioController implementation with 32 missing functions:
  * Volume control (GetTargetVolume, SetTargetVolume, etc.)
  * Mute control (IsTargetMute, SetTargetMute, etc.)
  * Target management (SetDefaultTarget, GetDefaultTarget, etc.)
  * Play report functions (10000+ series command IDs)
  * Hearing protection safeguard functions
  * Debug and system functions

- Add new audio services:
  * codecctl - Codec controller service with 13 functions
  * auddebug - Audio debug service placeholder
  * Device suspend/resume services (audout:d, audin:d, audrec:d, audren:d)
  * System audio services (aud:a, aud:d)
  * Applet audio services (audout:a, audin:a, audren:a)

- Update IAudioDevice with missing functions:
  * GetAudioSystemMasterVolumeSetting
  * GetActiveAudioOutputDeviceName
  * Fix function ID mappings to match official documentation

- Register all services in main audio LoopProcess function
- Update CMakeLists.txt with new source files

All implementations follow the official Switch audio services documentation
from switchbrew.org and provide appropriate stub implementations with
sensible default values for enhanced game compatibility.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-24 16:39:15 +10:00
Zephyron
4dde579132 Merge branch 'acc-add-new-functions-services' into 'master'
hle/service/acc: Implement acc:e, acc:e:u1, acc:e:u2, and dauth:0 services

See merge request citron/rewrite!17
2025-05-24 05:46:07 +00:00
Zephyron
129e76a13c hle/service/acc: Implement acc:e, acc:e:u1, acc:e:u2, and dauth:0 services
- Add acc:e service with full account management functionality
- Add acc:e:u1 service (minimal implementation)
- Add acc:e:u2 service with extended functionality including PIN code support
- Add dauth:0 device authentication service
- Update acc_su function mappings to match newer firmware versions
- Move TrySelectUserWithoutInteraction from ID 51 to 52 with deprecated fallback

These services provide additional account management interfaces used by
newer Switch firmware versions and some games that require extended
account functionality.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-24 15:42:58 +10:00
Zephyron
1ba7861366 Merge branch 'pm-add-new-function-services' into 'master'
feat(service/pm): Align PM services with Switchbrew documentation

See merge request citron/rewrite!16
2025-05-20 08:04:21 +00:00
Zephyron
a35d0de5a6 feat(service/pm): Align PM services with Switchbrew documentation
- **pm:bm (IBootModeInterface):**
    - Added stubs for Cmd 2 (`[19.0.0+]`) and Cmd 3 (`[19.0.0+]`) as "UnknownCmd2" and "UnknownCmd3" respectively.
- **pm:dmnt (IDebugMonitorInterface):**
    - Corrected typo in Cmd 5 name from "HookToCreateApplicationProgress" to "HookToCreateApplicationProcess".
    - Added stub for Cmd 7 (`GetProgramId`, `[14.0.0+]`).
- **pm:info (IInformationInterface):**
    - Added stub for Cmd 1 (`GetAppletCurrentResourceLimitValues`, `[14.0.0+]`).
    - Added stub for Cmd 2 (`GetAppletPeakResourceLimitValues`, `[14.0.0+]`).
- **pm:shell (IShellInterface):**
    - Added stub for Cmd 10 (`BoostSystemThreadResourceLimit`, `[14.0.0+]`).
    - Added stub for Cmd 12 (`GetProcessId`, `[19.0.0+]`).

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-20 17:58:38 +10:00
Zephyron
f26864fda5 Merge branch 'npns-add-new-functions-services' into 'master'
feat(service/npns): Add NPNS stubs and interfaces from documentation

See merge request citron/rewrite!15
2025-05-20 06:02:16 +00:00
Zephyron
9ac1277fd7 feat(service/npns): Add NPNS stubs and interfaces from documentation
- Addition of all documented commands for `INpnsSystem` and `INpnsUser` as `nullptr` stubs. This includes newly added commands and ensures all known commands have a placeholder.
- Introduction of empty class definitions for `INotificationReceiver`, `ICreateTokenAsyncContext`, `ISubscriptionUpdateNotifier`, and `IFuture` interfaces as specified in the documentation.
- Reversion of the previous change that made `nullptr` stubs call an `UnimplementedMethod` that returned success. Stubs are now back to being `nullptr`.
- Update of the copyright year in `npns.cpp`.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-20 16:01:15 +10:00
Zephyron
4462611a6b Merge branch '32-9-aspect-ratio' into 'master'
feat: Implement 32:9 aspect ratio

See merge request citron/rewrite!14
2025-05-18 05:12:18 +00:00
Zephyron
c5604ced4f feat: Implement 32:9 aspect ratio
This commit introduces support for a 32:9 aspect ratio throughout Citron.

Key changes include:

-   **Enum Updates**: Added `R32_9` to `Settings::AspectRatio` and `Layout::AspectRatio` enums, ensuring consistent integer mapping for casting between them.
-   **Core Logic**:
    -   Modified `UISettings::CalculateWidth` to correctly compute width for the 32:9 ratio.
    -   Updated `Layout::EmulationAspectRatio` to handle the new `R32_9` case and return the appropriate float value (9.0f / 32.0f).
-   **Android Integration**:
    -   Updated `EmulationFragment.kt` and `EmulationActivity.kt` (for Picture-in-Picture) to recognize and apply the 32:9 aspect ratio (mapping setting value `4` to `Rational(32, 9)`).
-   **UI Configuration**:
    -   Added "Force 32:9" to the aspect ratio selection in the graphics settings UI via `shared_translation.cpp`. This string is translatable.

This enhancement allows users to utilize ultra-widescreen 32:9 displays for a more immersive experience.

Signed-off-by: Zephyron <zephyron@citron-emu.org>
2025-05-18 15:10:47 +10:00