summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/time_zone_manager.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-01-24Rework time service to fix time passing offline.Kelebek11-1182/+0
2023-06-20time_zone_manager: Add null terminatorlat9nq1-2/+4
We aren't null-terminating this string after the copy, and we need to.
2023-06-20time_zone_manager: Stop on commalat9nq1-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.
2023-06-16time_zone_manager: Compare to the correct booleanlat9nq1-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.
2023-06-05tz_manager: Fix comparison to wrong integerlat9nq1-1/+1
2023-06-05tz_manager: Implement missing transition timeslat9nq1-1/+59
time_zone_manager: Use s64 storage
2023-06-05tz_manager: Warn on unimplemented codelat9nq1-0/+7
2023-06-05tz_manager: Fix character offset not advancinglat9nq1-0/+1
2023-06-05tz_manager: Fix off-by-one errorlat9nq1-4/+4
2023-06-05time: Implement missing servicesNarr the Reg1-0/+32
Implements GetTotalLocationNameCount LoadLocationNameList and GetTimeZoneRuleVersion. tz-manager: Fix sign issue
2023-06-05time_zone_manager: Implement go_ahead/go_backlat9nq1-1/+39
2023-02-14remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades791-4/+4
Signed-off-by: arades79 <scravers@protonmail.com>
2023-02-14add static lifetime to constexpr values to force compile time evaluation where possiblearades791-4/+4
Signed-off-by: arades79 <scravers@protonmail.com>
2022-11-14Add break for default casesKyle Kienapfel1-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
2022-06-27core: Replace all instances of ResultCode with Resultgerman771-23/+23
2022-06-14common: Change semantics of UNREACHABLE to unconditionally crashLiam1-1/+1
2022-05-13time_zone_manager: Use s8 for month length tablesMorph1-4/+3
Using this smaller type saves 512 bytes in the compiled executable.
2022-04-23general: Convert source file copyright comments over to SPDXMorph1-3/+2
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.
2021-11-04core: Remove unused includesameerj1-2/+0
2021-06-02general: Replace RESULT_SUCCESS with ResultSuccessMorph1-11/+11
Transition to PascalCase for result names.
2021-04-08service: time: Setup the network clock with the local clock contextMorph1-1/+1
Setting the network time allows some time based events using the network clock to not reset.
2020-10-21Revert "core: Fix clang build"bunnei1-64/+54
2020-10-18core: Fix clang buildLioncash1-54/+64
Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
2020-10-13core/CMakeLists: Make some warnings errorsLioncash1-8/+13
Makes our error coverage a little more consistent across the board by applying it to Linux side of things as well. This also makes it more consistent with the warning settings in other libraries in the project. This also updates httplib to 0.7.9, as there are several warning cleanups made that allow us to enable several warnings as errors.
2020-04-17time_zone_manager: Resolve sign conversion warningsLioncash1-2/+2
ttis and ats will never exceed the length of INT32_MAX in our case, so this is safe.
2020-04-16CMakeLists: Specify -Wextra on linux buildsLioncash1-7/+7
Allows reporting more cases where logic errors may exist, such as implicit fallthrough cases, etc. We currently ignore unused parameters, since we currently have many cases where this is intentional (virtual interfaces). While we're at it, we can also tidy up any existing code that causes warnings. This also uncovered a few bugs as well.
2020-01-23service: time: Implement ToPosixTimeWithMyRule.bunnei1-0/+9
- Used by Pokemon Mystery Dungeon.
2020-01-20time: Fix month off-by-one error.bunnei1-2/+2
- Fixes timestamp in ZLA and Astral Chain saves.
2020-01-04time: Remove overflow error checking (currently breaks ADO builds).bunnei1-9/+1
2020-01-04service: time: Rewrite implementation of glue services.bunnei1-0/+1038