summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/time_zone_manager.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* time_zone_manager: Add null terminatorlat9nq2023-06-201-2/+4
| | | | We aren't null-terminating this string after the copy, and we need to.
* time_zone_manager: Stop on commalat9nq2023-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_manager: Compare to the correct booleanlat9nq2023-06-161-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 integerlat9nq2023-06-051-1/+1
|
* tz_manager: Implement missing transition timeslat9nq2023-06-051-1/+59
| | | | time_zone_manager: Use s64 storage
* tz_manager: Warn on unimplemented codelat9nq2023-06-051-0/+7
|
* tz_manager: Fix character offset not advancinglat9nq2023-06-051-0/+1
|
* tz_manager: Fix off-by-one errorlat9nq2023-06-051-4/+4
|
* time: Implement missing servicesNarr the Reg2023-06-051-0/+32
| | | | | | | Implements GetTotalLocationNameCount LoadLocationNameList and GetTimeZoneRuleVersion. tz-manager: Fix sign issue
* time_zone_manager: Implement go_ahead/go_backlat9nq2023-06-051-1/+39
|
* remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistencyarades792023-02-141-4/+4
| | | | Signed-off-by: arades79 <scravers@protonmail.com>
* add static lifetime to constexpr values to force compile time evaluation where possiblearades792023-02-141-4/+4
| | | | Signed-off-by: arades79 <scravers@protonmail.com>
* Add break for default casesKyle Kienapfel2022-11-141-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
* core: Replace all instances of ResultCode with Resultgerman772022-06-271-23/+23
|
* common: Change semantics of UNREACHABLE to unconditionally crashLiam2022-06-141-1/+1
|
* time_zone_manager: Use s8 for month length tablesMorph2022-05-131-4/+3
| | | | Using this smaller type saves 512 bytes in the compiled executable.
* general: Convert source file copyright comments over to SPDXMorph2022-04-231-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.
* core: Remove unused includesameerj2021-11-041-2/+0
|
* general: Replace RESULT_SUCCESS with ResultSuccessMorph2021-06-021-11/+11
| | | | Transition to PascalCase for result names.
* service: time: Setup the network clock with the local clock contextMorph2021-04-081-1/+1
| | | | Setting the network time allows some time based events using the network clock to not reset.
* Revert "core: Fix clang build"bunnei2020-10-211-64/+54
|
* core: Fix clang buildLioncash2020-10-181-54/+64
| | | | | | | Recent changes to the build system that made more warnings be flagged as errors caused building via clang to break. Fixes #4795
* core/CMakeLists: Make some warnings errorsLioncash2020-10-131-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.
* time_zone_manager: Resolve sign conversion warningsLioncash2020-04-171-2/+2
| | | | | ttis and ats will never exceed the length of INT32_MAX in our case, so this is safe.
* CMakeLists: Specify -Wextra on linux buildsLioncash2020-04-161-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.
* service: time: Implement ToPosixTimeWithMyRule.bunnei2020-01-231-0/+9
| | | | - Used by Pokemon Mystery Dungeon.
* time: Fix month off-by-one error.bunnei2020-01-201-2/+2
| | | | - Fixes timestamp in ZLA and Astral Chain saves.
* time: Remove overflow error checking (currently breaks ADO builds).bunnei2020-01-041-9/+1
|
* service: time: Rewrite implementation of glue services.bunnei2020-01-041-0/+1038