mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-10-20 19:21:40 +00:00
30ee70a9bc
* time: Make TimeZoneRule blittable and avoid copies This drastically reduce overhead of using TimeZoneRule around the codebase. Effect on games is unknown * Add missing Box type * Ensure we clean the structure still This doesn't perform any copies * Address gdkchan's comments * Simplify Box
21 lines
No EOL
510 B
C#
21 lines
No EOL
510 B
C#
using Ryujinx.Common.Memory;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Time.TimeZone
|
|
{
|
|
[StructLayout(LayoutKind.Sequential, Pack = 0x4, Size = 0x18, CharSet = CharSet.Ansi)]
|
|
struct CalendarAdditionalInfo
|
|
{
|
|
public uint DayOfWeek;
|
|
public uint DayOfYear;
|
|
|
|
public Array8<byte> TimezoneName;
|
|
|
|
[MarshalAs(UnmanagedType.I1)]
|
|
public bool IsDaySavingTime;
|
|
|
|
public Array3<byte> Padding;
|
|
|
|
public int GmtOffset;
|
|
}
|
|
} |