aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/time
AgeCommit message (Collapse)Author
2024-01-24Rework time service to fix time passing offline.Kelebek1
2023-11-25time: undef GetCurrentTime for WindowsLiam
2023-08-02Merge pull request #10839 from lat9nq/pgc-plusliamwhite
general: Reimplement per-game configurations
2023-07-30tz_content_man: Generate the time zone binary oncelat9nq
Fixes a memory leak with time zone binaries accumulating on theirselves.
2023-07-21settings: Require time zone setting value for stirnglat9nq
2023-06-21Merge pull request #10086 from Morph1984/coretiming-ng-1bunnei
core_timing: Use CNTPCT as the guest CPU tick
2023-06-20time_zone_manager: Add null terminatorlat9nq
We aren't null-terminating this string after the copy, and we need to.
2023-06-20time_zone_manager: Stop on commalat9nq
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.
2023-06-17time_zone_service: Always write time zone rule datalat9nq
Switch firmware will initialize this data even if the given parameters are invalid. We should do the same.
2023-06-15time_zone_manager: Compare to the correct booleanlat9nq
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.
2023-06-07time: Use compile time division for TimeSpanType conversionMorph
2023-06-05tz_manager: Fix comparison to wrong integerlat9nq
2023-06-05tz_manager: Implement missing transition timeslat9nq
time_zone_manager: Use s64 storage
2023-06-05tz_manager: Warn on unimplemented codelat9nq
2023-06-05tz_manager: Fix character offset not advancinglat9nq
2023-06-05tz_manager: Fix off-by-one errorlat9nq
2023-06-05time: Implement missing servicesNarr the Reg
Implements GetTotalLocationNameCount LoadLocationNameList and GetTimeZoneRuleVersion. tz-manager: Fix sign issue
2023-06-05time_zone_manager: Implement go_ahead/go_backlat9nq
2023-06-05tz_content_manager: Try the system time zone firstlat9nq
If we can't find the normal time zone string, try searching for the closest one.
2023-06-05time: Remove auto timezone considerationlat9nq
GetTimeZoneString no longer reports a setting unique to yuzu, so we can assume a valid timezone string in core.
2023-06-05time_manager: Don't offset RTC by system time zonelat9nq
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
2023-06-05tz_content_manager: Detect system time zonelat9nq
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.
2023-05-11time: implement ContinuousAdjustmentTimePointLiam
2023-03-01service: move hle_ipc from kernelLiam
2023-02-21service: refactor server architectureLiam
Converts services to have their own processes
2023-02-14remove static from pointer sized or smaller types for aesthetics, change ↵arades79
constexpr static to static constexpr for consistency Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14add static lifetime to constexpr values to force compile time evaluation ↵arades79
where possible Signed-off-by: arades79 <scravers@protonmail.com>
2022-12-21time: add LockFreeAtomicTypeLiam
2022-11-13Add break for default casesKyle Kienapfel
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
2022-10-12kernel: remove KWritableEventLiam
2022-06-26core: Replace all instances of ResultCode with Resultgerman77
2022-06-13common: Change semantics of UNREACHABLE to unconditionally crashLiam
2022-05-13time_zone_manager: Use s8 for month length tablesMorph
Using this smaller type saves 512 bytes in the compiled executable.
2022-04-23general: Convert source file copyright comments over to SPDXMorph
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.
2022-02-05general: Rename NewUUID to UUID, and remove the previous UUID implMorph
This completes the removal of the old UUID implementation.
2022-02-05service: Migrate to the new UUID implementationMorph
2021-11-03core: Fix transitive include build errorsameerj
2021-11-03core: Remove unused includesameerj
2021-10-17settings: Remove std::chrono usageameerj
Alleviates the dependency on chrono for all files that include settings.h
2021-10-07service: Reduce header include overheadMorph
2021-10-05Merge pull request #7115 from ameerj/log-compilebunnei
common/logging: Reduce dependent header include overhead
2021-10-01service: Replace service event creation with ServiceContext::CreateEventMorph
The service context helps to manage all created events and allows us to close them upon destruction.
2021-10-01common/logging: Reduce scope of fmt includeameerj
2021-09-29style: Remove extra space preceding the :: operatorMorph
2021-07-14service: Append service name prefix to common filenamesMorph
2021-06-18service: time: Use GetFileRelative to get files within subdirectoriesMorph
The timezone info file can be within subdirectories (such as Asia/Tokyo), use GetFileRelative instead of GetFile to get files within subdirectories.
2021-06-02general: Replace RESULT_SUCCESS with ResultSuccessMorph
Transition to PascalCase for result names.
2021-05-16core: Make variable shadowing a compile-time errorLioncash
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.
2021-05-05hle: kernel: Migrate KClientPort to KAutoObject.bunnei
2021-05-05hle: kernel: Migrate KSession, KClientSession, and KServerSession to ↵bunnei
KAutoObject.