mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-02-08 05:44:30 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3f3f12b3e | ||
|
|
b41700ff92 | ||
|
|
e8a357546b | ||
|
|
68f0201c11 |
43
.github/workflows/build_nupkg.yml
vendored
Normal file
43
.github/workflows/build_nupkg.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Nuget Pack
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
|
||||
- name: Pack
|
||||
run: dotnet pack
|
||||
|
||||
- name: Upload build
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: 'Nuget Package'
|
||||
path: 'bin/Release/*.nupkg'
|
||||
|
||||
- name: Upload to rolling
|
||||
uses: ncipollo/release-action@v1.14.0
|
||||
with:
|
||||
allowUpdates: True
|
||||
artifacts: 'bin/Release/*.nupkg'
|
||||
body: 'Last built commit: ${{ github.sha }}'
|
||||
name: 'Rolling Release'
|
||||
prerelease: True
|
||||
replacesArtifacts: True
|
||||
tag: "rolling"
|
||||
updateOnlyUnreleased: True
|
||||
17
.github/workflows/check_pr.yml
vendored
Normal file
17
.github/workflows/check_pr.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: Build PR
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: 8.0.x
|
||||
|
||||
- name: Build
|
||||
run: dotnet build
|
||||
@@ -12,7 +12,7 @@
|
||||
<!-- Package Properties -->
|
||||
<Authors>Matt Nadareski</Authors>
|
||||
<Description>Common models used by other SabreTools projects</Description>
|
||||
<Copyright>Copyright (c) Matt Nadareski 2022-2023</Copyright>
|
||||
<Copyright>Copyright (c) Matt Nadareski 2022-2024</Copyright>
|
||||
<PackageProjectUrl>https://github.com/SabreTools/</PackageProjectUrl>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<RepositoryUrl>https://github.com/SabreTools/SabreTools.Models</RepositoryUrl>
|
||||
|
||||
13
SafeDisc/Constants.cs
Normal file
13
SafeDisc/Constants.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace SabreTools.Models.SafeDisc
|
||||
{
|
||||
public static class Constants
|
||||
{
|
||||
public const uint EncryptedFileEntrySignature1 = 0xA8726B03;
|
||||
|
||||
public const uint EncryptedFileEntrySignature2 = 0xEF01996C;
|
||||
}
|
||||
}
|
||||
31
SafeDisc/EncryptedFileEntry.cs
Normal file
31
SafeDisc/EncryptedFileEntry.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
namespace SabreTools.Models.SafeDisc
|
||||
{
|
||||
/// <see href="http://blog.w4kfu.com/tag/safedisc"/>
|
||||
public class EncryptedFileEntry
|
||||
{
|
||||
/// <summary>
|
||||
/// 0xA8726B03
|
||||
/// </summary>
|
||||
public uint Signature1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0xEF01996C
|
||||
/// </summary>
|
||||
public uint Signature2 { get; set; }
|
||||
|
||||
public uint FileNumber { get; set; }
|
||||
|
||||
public uint Offset1 { get; set; }
|
||||
|
||||
public uint Offset2 { get; set; }
|
||||
|
||||
public uint Unknown1 { get; set; }
|
||||
|
||||
public uint Unknown2 { get; set; }
|
||||
|
||||
/// <remarks>
|
||||
/// 0x0D bytes
|
||||
/// </remarks>
|
||||
public byte[]? Name { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user