summaryrefslogtreecommitdiff
path: root/src/core/hle/service/time (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rework time service to fix time passing offline.Gravatar Kelebek12024-01-2434-3682/+0
|
* time: undef GetCurrentTime for WindowsGravatar Liam2023-11-251-0/+5
|
* Merge pull request #10839 from lat9nq/pgc-plusGravatar liamwhite2023-08-021-1/+2
|\ | | | | general: Reimplement per-game configurations
| * settings: Require time zone setting value for stirngGravatar lat9nq2023-07-211-1/+2
| |
* | tz_content_man: Generate the time zone binary onceGravatar lat9nq2023-07-302-8/+11
|/ | | | Fixes a memory leak with time zone binaries accumulating on theirselves.
* Merge pull request #10086 from Morph1984/coretiming-ng-1Gravatar bunnei2023-06-215-11/+15
|\ | | | | core_timing: Use CNTPCT as the guest CPU tick
| * time: Use compile time division for TimeSpanType conversionGravatar Morph2023-06-075-11/+15
| |
* | time_zone_manager: Add null terminatorGravatar lat9nq2023-06-201-2/+4
| | | | | | | | We aren't null-terminating this string after the copy, and we need to.
* | time_zone_manager: Stop on commaGravatar lat9nq2023-06-201-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a deviation from the reference time zone implementation. The actual code will set a pointer to the time zone name here, but for us we have a limited number of characters to work with, and the name of the time zone here could be larger than 8 characters. We can make the assumption that time zone names greater than five characters in length include a comma that denotes more data. Nintendo just truncates that data for the name, so we can do the same. time_zone_manager: Check for length of array Just to be double sure that we never break past the array length, directly compare against it.
* | time_zone_service: Always write time zone rule dataGravatar lat9nq2023-06-171-8/+2
| | | | | | | | | | Switch firmware will initialize this data even if the given parameters are invalid. We should do the same.
* | time_zone_manager: Compare to the correct booleanGravatar lat9nq2023-06-151-2/+3
| | | | | | | | | | | | | | | | Reference implementation does not compare the booleans as we had them. Use the correct ones as in the reference. Also adds an assert. I have been made aware of a crash here and am not able to reproduce currently.
* | tz_manager: Fix comparison to wrong integerGravatar lat9nq2023-06-051-1/+1
| |
* | tz_manager: Implement missing transition timesGravatar lat9nq2023-06-051-1/+59
| | | | | | | | time_zone_manager: Use s64 storage
* | tz_manager: Warn on unimplemented codeGravatar lat9nq2023-06-051-0/+7
| |
* | tz_manager: Fix character offset not advancingGravatar lat9nq2023-06-051-0/+1
| |
* | tz_manager: Fix off-by-one errorGravatar lat9nq2023-06-051-4/+4
| |
* | time: Implement missing servicesGravatar Narr the Reg2023-06-057-11/+106
| | | | | | | | | | | | | | Implements GetTotalLocationNameCount LoadLocationNameList and GetTimeZoneRuleVersion. tz-manager: Fix sign issue
* | time_zone_manager: Implement go_ahead/go_backGravatar lat9nq2023-06-051-1/+39
| |
* | tz_content_manager: Try the system time zone firstGravatar lat9nq2023-06-051-2/+9
| | | | | | | | | | If we can't find the normal time zone string, try searching for the closest one.
* | time: Remove auto timezone considerationGravatar lat9nq2023-06-053-33/+3
| | | | | | | | | | GetTimeZoneString no longer reports a setting unique to yuzu, so we can assume a valid timezone string in core.
* | time_manager: Don't offset RTC by system time zoneGravatar lat9nq2023-06-051-5/+1
| | | | | | | | | | | | | | This causes the emulated system's universal time to be on the user's clock, and the user time to be off if they set a time zone. time_manager: Remove GetExternalRtcTime
* | tz_content_manager: Detect system time zoneGravatar lat9nq2023-06-051-1/+11
|/ | | | | | Uses C++20 tzdb to determine the system timezone. The switch uses the 597 posix time zones, so this needs tests if the system time zone isn't posix-compliant.
* time: implement ContinuousAdjustmentTimePointGravatar Liam2023-05-113-2/+34
|
* service: move hle_ipc from kernelGravatar Liam2023-03-014-43/+41
|
* service: refactor server architectureGravatar Liam2023-02-212-6/+12
| | | | Converts services to have their own processes
* remove static from pointer sized or smaller types for aesthetics, change ↵Gravatar arades792023-02-141-4/+4
| | | | | | constexpr static to static constexpr for consistency Signed-off-by: arades79 <scravers@protonmail.com>
* add static lifetime to constexpr values to force compile time evaluation ↵Gravatar arades792023-02-141-4/+4
| | | | | | where possible Signed-off-by: arades79 <scravers@protonmail.com>
* time: add LockFreeAtomicTypeGravatar Liam2022-12-213-40/+65
|
* Add break for default casesGravatar Kyle Kienapfel2022-11-131-0/+1
| | | | | | | | | | | Visual Studio has an option to search all files in a solution, so I did a search in there for "default:" looking for any missing break statements. I've left out default statements that return something, and that throw something, even if via ThrowInvalidType. UNREACHABLE leads towards throw R_THROW macro leads towards a return
* kernel: remove KWritableEventGravatar Liam2022-10-122-8/+8
|
* core: Replace all instances of ResultCode with ResultGravatar german772022-06-2617-114/+112
|
* common: Change semantics of UNREACHABLE to unconditionally crashGravatar Liam2022-06-133-8/+8
|
* time_zone_manager: Use s8 for month length tablesGravatar Morph2022-05-131-4/+3
| | | | Using this smaller type saves 512 bytes in the compiled executable.
* general: Convert source file copyright comments over to SPDXGravatar Morph2022-04-2334-102/+68
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* general: Rename NewUUID to UUID, and remove the previous UUID implGravatar Morph2022-02-055-13/+13
| | | | This completes the removal of the old UUID implementation.
* service: Migrate to the new UUID implementationGravatar Morph2022-02-055-13/+13
|
* core: Fix transitive include build errorsGravatar ameerj2021-11-031-0/+2
|
* core: Remove unused includesGravatar ameerj2021-11-038-12/+0
|
* settings: Remove std::chrono usageGravatar ameerj2021-10-171-6/+7
| | | | Alleviates the dependency on chrono for all files that include settings.h
* service: Reduce header include overheadGravatar Morph2021-10-072-2/+1
|
* Merge pull request #7115 from ameerj/log-compileGravatar bunnei2021-10-052-0/+3
|\ | | | | common/logging: Reduce dependent header include overhead
| * common/logging: Reduce scope of fmt includeGravatar ameerj2021-10-012-0/+3
| |
* | service: Replace service event creation with ServiceContext::CreateEventGravatar Morph2021-10-012-6/+15
|/ | | | The service context helps to manage all created events and allows us to close them upon destruction.
* style: Remove extra space preceding the :: operatorGravatar Morph2021-09-292-3/+3
|
* service: Append service name prefix to common filenamesGravatar Morph2021-07-143-2/+2
|
* service: time: Use GetFileRelative to get files within subdirectoriesGravatar Morph2021-06-181-1/+1
| | | | The timezone info file can be within subdirectories (such as Asia/Tokyo), use GetFileRelative instead of GetFile to get files within subdirectories.
* general: Replace RESULT_SUCCESS with ResultSuccessGravatar Morph2021-06-0213-78/+76
| | | | Transition to PascalCase for result names.
* core: Make variable shadowing a compile-time errorGravatar Lioncash2021-05-1615-38/+38
| | | | | | Now that we have most of core free of shadowing, we can enable the warning as an error to catch anything that may be remaining and also eliminate this class of logic bug entirely.
* hle: kernel: Migrate KClientPort to KAutoObject.Gravatar bunnei2021-05-051-1/+1
|
* hle: kernel: Migrate KSession, KClientSession, and KServerSession to ↵Gravatar bunnei2021-05-051-1/+0
| | | | KAutoObject.