aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-12-29Fix GUI freeze wehn closing without any emulation running (#853)Thog
2019-12-26Fix LibHac.IStorage not being disposed in FileSystem proxy (#851)Thog
2019-12-26Make HLE disposable safely (#850)Thog
* Make HLE disposable safely This fix the oldest issue with the HLE code: the kernel side disposability. Changelog: - Implement KProcess::UnpauseAndTerminateAllThreadsExcept, KThread::Terminate, KThread::TerminateCurrentProcess, KThread::PrepareForTermiation and the svc post handler accurately. - Implement svcTerminateProcess and svcExitProcess. (both untested) - Fix KHandleTable::Destroy not decrementing refcount of all objects stored in the table. - Spawn a custom KProcess with the maximum priority to terminate every guest KProcess. (terminating kernel emulation safely) - General system stability improvements to enhance the user's experience. * Fix a typo in a comment in KProcess.cs * Address gdk's comments
2019-12-25Fix remap ioctl map offset (#852)gdkchan
* Fix remap ioctl map offset * Correct offset type
2019-12-23Also use Github Actions as a CI" (#847)Thog
2019-12-23Fix an endge case in bsd IClient::Poll implementation (#848)Thog
This add some code to handle usage of poll without any fds. This is required by Dark Souls Remastered main loop logic as it's calling it without any fds during initialization. === General system stability improvements to enhance the user's experience.
2019-12-22GUI: Implement context menu for the game table (#840)Xpl0itR
* Add context menu to the game table * Minor bugfix and cleanup * add ability to create directory if it doesn't exist * nit * dont show menu when right-clicking nothing
2019-12-21Rewrite the configuration system (#831)Thog
The configuration system was quite fragile and too dependent on everything, this fix #812 . The changes: The file configuration is now entirely independent from the internal configuration state. The file configuration is versioned (current version is 1). Every configuration elements are now reactive properties that the emulator can register on to handle initialization and configuration changes. The configuration system is now in Ryujinx.Common to be accessible on every projects. Discord integration is now independent from the UI and can be reloaded. The primary controller is now configurable at runtime (NOTE: the UI currently doesn't have any options to configure real controller). The logger is entirely reloadable. You can now hotplug your controller when the emulator is running. The logger now takes name for every LogTarget to make them removable at runtime. The logger now always add the default "console" target to avoid loosing early init logs. The configuration system now generates a default file configuration if it's missing or too new. General system stability improvements to enhance the user's experience
2019-12-14Add a limit for the number of instructions in a function (#843)gdkchan
2019-12-08Fix ILogger type and size decoding (#842)Thog
* Fix ILogger type and size decoding The type and size are custom encoded integer not byte. This fix issues on games that send messages longer than 127 characters. * Address gdk's comments
2019-12-07Implemented fast paths for: (#841)LDj3SNuD
* cpu-misc_opt * B = ~b * ;
2019-12-03Fully reverse swkbd configuration structure and follow-up to swkbd ↵jduncanator
implementation (#839) * am: Fully reverse swkbd configuration structure * Add documentation * Remove explicit access modifiers * Fix formatting * Fix further formatting issues
2019-11-29prepo: Silent error while parsing report (#837)Ac_K
Due to a guessed parsing implementation of the report, sometime it throw an error, since the data isn't really useful, it's better to silent possible exceptions with a message.
2019-11-29Add features to GUI (#757)Xpl0itR
* controller image changes depending on the selected controller type the new controller image assets are temporary until i get new ones * Game list scans subdirs for games * Key file existence check * Only shows Program NCAs in Application list * Change shown GUI columns without restarting * Sort by column if you click on the column header Columns are sorted as text so there are inaccuracies on some columns * Fix sort on Time Played, Last Played and File Size columns * Add ability to designate favourite games #1 TODO: - Make fav games persistent - Fix invisible check marks due to theme * Add ability to designate favourite games #2 Also removed default theme * Added a Windows specific build condition and a Linux bug fix * bugfix * Load metadata from JSONs * Temp bug fix for MacOS * lil clean up * requested changes * Misc fixes * edited schema and config * Show the TitleID of games on the title bar * gui column config option have names * Async loading of game list * bugfix and cleanup * thog's requested changes * requested changes and cleanup still need to fix the gtk seizure * Fix issue where an ExeFS as a NSP didn't show up in the application list * Minor fixes * catch glib unhandled exceptions * Make sure to do UI manipulation in the main thread * Print path of invalid files * Ac_k's requested changes * Return of the dark theme * move AboutInfo struct to another file * sort usings * changes - gdkchan's requested changes that have been marked resolved - made some structs internal as they aren't used outside of the GUI - renamed Ryujinx.UI to Ryujinx.Ui to fit naming convention and folder structure - fixed bug where controller type dropdown box is stretched
2019-11-27time: Fix wrong buffer usage in ↵Thog
CalculateStandardUserSystemClockDifferenceByUser & CalculateSpanBetween (#836)
2019-11-26Fix issues on ro implementation (#834)Thog
* ro: Fixes some bugs * Fix critical overflow in random computation
2019-11-25prepo: Implement calls of IPrepoService (#830)Ac_K
* prepo: Implement calls of IPrepoService - Implement `SaveReportOld`, `SaveReportWithUserOld`, `SaveReport`, `SaveReportWithUser` not accurate by RE (except for result codes). It's here to do something with the data since we will never use the `Play Report` sent by the game. So it's better than just a stub. - Fix a typo in `ldn` result code. Close #807 * Add a processing method * Address some comments * remove unneeded using * Resolve requested changes * Typo * Update IPrepoService.cs
2019-11-25Remove one extraneous incrementation (#833)Thog
This incrementation is entirely wrong.
2019-11-23Fix appveyor link and badge to master branchAc_K
2019-11-23Use BinaryPrimitives.ReverseEndianness instead EndianSwap class (#832)Ac_K
This PR remove the `EndianSwap` class who isn't needed anymore since .NET Core 3.0 got a buildin method `BinaryPrimitives.ReverseEndianness` who did the same thing.
2019-11-21ldn: Implement calls of UserLocalCommunicationService (#829)Ac_K
* ldn: Implement calls of UserLocalCommunicationService - Implement `IUserServiceCreator: CreateUserLocalCommunicationService` according to RE. - Implement `IUserLocalCommunicationService` calls: - Every calls in this interface are layered to `NetworkInterface`. - `GetState` according to RE. - `InitializeOld`, `Initialize` and `Finalize` stubbed with the appropriate result code and some TODO according to RE. - `AttachStateChangeEvent` according to RE. * Fix var name and TODO comments * Fix review
2019-11-18Initial swkbd implementation (#826)jduncanator
* am: Initial swkbd implementation Currently only implements the full screen keyboard, inline keyboard will come later. * Remove unnecessary logging * Miscellaneous tidy up * am: Always pop incoming interactive session data * am: Add a reminder to implement the full config struct * am: Check for a max length of zero We should only limit/truncate text when the max length is set to a non-zero value. * Add documentation * am: Return IStorage not available when queue is empty We should be returning the appropriate error code when the FIFO is empty, rather than just throwing an exception and killing the emulator. * Fix typo * Code style changes
2019-11-15Implement IApplicationFunctions & IQueryService commands (#823)Ac_K
* Implement IApplicationFunctions & IQueryService commands - Fix some nits in `IApplicationFunctions` - Implement `QueryApplicationPlayStatistics` and `QueryApplicationPlayStatisticsByUid` checked by RE. - Implement `QueryApplicationPlayStatisticsForSystem` and `QueryApplicationPlayStatisticsByUserAccountIdForSystem` checked by RE. - Implement `QueryPlayStatisticsManager` to get/set played games statistics. We currently don't store any statistics because it's handled by qlaunch (or maybe am service?) on Switch. We can add support later if games use returned statistics for something. * Fix reviews
2019-11-14Set AArch32 mode in KThread (#818)Natalie C
* Set AArch32 mode in KThread * Update ProgramLoader.cs
2019-11-14Fix GetAudioDeviceServiceWithRevisionInfo logging (#822)Ac_K
* Fix GetAudioDeviceServiceWithRevisionInfo logging `revisionInfo` and `appletResourceUserId` were read in the wrong order. * Fix comment
2019-11-14Implement a rudimentary applets system (#804)jduncanator
* Implement Player Select applet * Initialize the Horizon system reference * Tidy up namespaces * Resolve nits * Resolve nits * Rename stack to queue * Implement an applet FIFO * Remove debugging log * Log applet creation events * Reorganise AppletFifo * More reorganisation * Final changes
2019-11-14Add Mrs & Msr (Nzcv) Inst., with Tests. (#819)LDj3SNuD
* Add Mrs & Msr (Nzcv) Inst., with Tests. * Don't use `NativeInterface`.
2019-11-10Update KEYS.md to use a new dumping guide and correct title.key formatting ↵MysticExile
(#814) * Update title.keys formatting and add key dumping guide * Update README.md to reflect changes in KEYS.md * Address feedback and minor style changes * Remove key templates * Fix Co-Authored-By: Ac_K <Acoustik666@gmail.com> * Fix 2 Co-Authored-By: jduncanator <1518948+jduncanator@users.noreply.github.com> * Add a description of what keys are * Minor changes and style fixes * Fix 3
2019-11-09Fix Fcmge_S/V & Fcmgt_S/V Inst.s (#815)LDj3SNuD
* Fix Fcmge_S/V & Fcmgt_S/V. Follow-up Fcm**_S/V & Fc*mp*_S. Improve CmpCondition enum. Nits. * Optimize Fccmp*_S & Fcmp*_S. * Fix cvtsd2si opcode. * Address PR feedback.
2019-11-08Improve IRoInterface logic (#809)Thomas Guillemard
* hle: Improve IRoInterface logic This commit contains a little rewrite of IRoInterface to fix some issues that we were facing on some recent games (AC3 Remastered & Final Fantasy VIII Remastered) Related issues: - https://github.com/Ryujinx/Ryujinx-Games-List/issues/196 * Address comments
2019-11-08Add detail of ZbcSetTableArguments (#810)Thomas Guillemard
* Add detail of ZbcSetTableArguments This is a missing part of the #800 PR that cause an assert to be triggered in debug mode. Also, remove Fence in SurfaceFlinger as it's a duplicate of NvFence. * Fix critical issue in size checking of ioctl oops
2019-11-08Update README.md to reflect new changes in the Homebrew used and mentioned ↵MysticExile
(#813)
2019-11-03hle: Fix some inconsistencies in namespace naming in Services (#808)Thomas Guillemard
Also fix IShopServiceAccessSystemInterface being in the wrong namespace.
2019-11-03Rewrite nvservices (#800)Thomas Guillemard
* Start rewriting nvservices internals TODO: - nvgpu device interface - nvhost generic device interface * Some clean up and fixes - Make sure to remove the fd of a closed channel. - NvFileDevice now doesn't implement Disposable as it was never used. - Rename NvHostCtrlGetConfigurationArgument to GetConfigurationArguments to follow calling convention. - Make sure to check every ioctls magic. * Finalize migration for ioctl standard variant TODO: ioctl2 migration * Implement SubmitGpfifoEx and fix nvdec * Implement Ioctl3 * Implement some ioctl3 required by recent games * Remove unused code and outdated comments * Return valid event handles with QueryEvent Also add an exception for unimplemented event ids. This commit doesn't implement accurately the events, this only define different events for different event ids. * Rename all occurance of FileDevice to DeviceFile * Restub SetClientPid to not cause regressions * Address comments * Remove GlobalStateTable * Address comments * Align variables in ioctl3 * Some missing alignments * GetVaRegionsArguments realign * Make Owner public in NvDeviceFile * Address LDj3SNuD's comments
2019-11-01Update controller config (#793)Wardoc
* Update Config Correct a bad Controller Left and Right Joycon config * Update config to correct A and B * Update To fix buttons X and Y Update To fix buttons X and Y * Removed stick_y
2019-10-31.NET Core 3.0 is here! (#784)LDj3SNuD
* .NET Core 3.0 is here! * Remove IMemoryManager.cs and its references. * Add T Math/F.FusedMultiplyAdd(T, T, T). Nits. * Nit. * Update appveyor.yml * Revert "Resolve Visual Studio build issues" This reverts commit 1772128ce0fc058e6280001aace3a77a7a96897b. * Update SvcTable.cs
2019-10-31Update README.md (#802)GalladeGuy
* Update README.md Improve grammar, replace Switch hacking guide with one that's more up-to-date, and add a guide for shared font dumping * Update README.md * Remove shared fonts section
2019-10-31Increase IPC buffer size (#803)jduncanator
This is a hack, but it works for now. We should really determine a way to automatically calculate the required buffer size to avoid situations where specific IPC calls "overflow" the maximum size.
2019-10-28Fix ghost users bug. (#799)LDj3SNuD
* Fix ghost users bug. * Update IAccountServiceForApplication.cs
2019-10-24Add Sli_S/V & Sri_S/V inst.s (fast & slow paths), with Tests. (#797)LDj3SNuD
* Add Sli & Sri. * Add scalar variants.
2019-10-25svc: Implement `ref` parameters (#798)jduncanator
Allows passing data into and out of the same registers when calling via the Kernel ABI. This allows implementing specific supervisor calls like "CallSecureMonitor", that expect their args and results in the same registers.
2019-10-22Resolve Visual Studio build issuesjduncanator
Visual Studio defaults to a C# version of "latest major". Some of the new projects require C# 7.1 features.
2019-10-19Fix latest version of hbl/hb-menu (#795)Thomas Guillemard
* Fix latest version of hbl/hb-menu This implement GetSettingsItemValueSize (required by hbl) and GetInternetConnectionStatus (required by hb-menu). * Address comments
2019-10-17Update to LibHac 0.6.0 (#792)Alex Barney
* Update to LibHac 0.6.0 * Create an IFileSystemProxy object from LibHac * Rename rc -> result * Alignment and spacing * Result formatting * Spacing * Sort usings
2019-10-16Move InvalidSystemResourceException with the other Exceptions (#794)Ac_K
* Move InvalidSystemResourceException with the other `InvalidSystemResourceException.cs` was in `Ryujinx.HLE/Resource` who didn't make sense since it's the only file in the folder, and other exceptions class are in `Ryujinx.HLE/Exceptions`. * Fix empty lines
2019-10-13Fix behaviour when an analog trigger is assigned to a button. (#790)riperiperi
2019-10-12Update license (#788)gdkchan
After some internal discussion, we decided to change the project license to MIT. I have already talked with most contributors privately, and none of them are against the change. Still, if you're a contributor and you're against the change, feel free to voice your concerns here. Obviously, any code before the license change can be still used under the terms of the old license. But any new code after the change will be under the terms of the new license.
2019-10-11Fix TimeZoneBinary dispose issues (#785)Thomas Guillemard
* Fix TimeZoneBinary dispose issues THis fix a regression on Pokémon Let's Go Eevee! (and probably other games) caused by #783. * Address Moosehunter's comment
2019-10-11audout:u: Implement SetAudioOutVolume and GetAudioOutVolume (#781)Ac_K
* audout:u: Implement SetAudioOutVolume and GetAudioOutVolume - Implementation of `audout:u` SetAudioOutVolume and GetAudioOutVolume (checked with RE). - Add Get and Set for Volume into audio backends. - Cleanup of all audio backends to follow the `IAalOutput` structure and .NET standard. - Split OpenAL backend into 2 files for consistency. * Address comments * Fix the volume calculation
2019-10-11Fix error code returned by CloseSession (#787)Thomas Guillemard
When we close a session via IPC, we should return an error code. This fix an assert in some games that are shipped with debug modules.