mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-21 21:38:52 +00:00
22 lines
490 B
C#
22 lines
490 B
C#
using System;
|
|
|
|
namespace Cosmos.IL2CPU.API.Attribs
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
|
public sealed class BootEntry : Attribute
|
|
{
|
|
public int? EntryIndex { get; }
|
|
|
|
public BootEntry(bool aDefault = true, int aEntryIndex = 0)
|
|
{
|
|
if (aDefault)
|
|
{
|
|
EntryIndex = null;
|
|
}
|
|
else
|
|
{
|
|
EntryIndex = aEntryIndex;
|
|
}
|
|
}
|
|
}
|
|
}
|