Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/reloaded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ env:
PUBLISH_PATH: ./Publish

# Default value is official Reloaded package server.
NUGET_URL: http://packages.sewer56.moe:5000/v3/index.json
NUGET_URL: https://packages.sewer56.moe/v3/index.json

IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/') }}
RELEASE_TAG: ${{ github.ref_name }}
Expand All @@ -88,10 +88,10 @@ jobs:
with:
dotnet-version: 5.0.x

- name: Setup .NET Core SDK (7.0)
- name: Setup .NET Core SDK (9.0)
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: 9.0.x

- name: Setup Node.js
uses: actions/setup-node@v2
Expand Down
5 changes: 3 additions & 2 deletions Emulator/AFS.Stream.Emulator/AFS.Stream.Emulator.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<LangVersion>preview</LangVersion>
<LangVersion>10.0</LangVersion>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<OutputPath>$(RELOADEDIIMODS)/reloaded.universal.fileemulationframework.afs</OutputPath>
Expand Down Expand Up @@ -48,6 +48,7 @@

<ItemGroup>
<PackageReference Include="AFSLib" Version="1.1.1" />
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="9.0.3" />
<PackageReference Include="Reloaded.Memory" Version="9.3.2" />
<PackageReference Include="Reloaded.Mod.Interfaces" Version="2.3.0" ExcludeAssets="runtime" />
</ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions Emulator/AFS.Stream.Emulator/Afs/AfsBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using FileEmulationFramework.Lib.Utilities;
using Microsoft.Win32.SafeHandles;
using Reloaded.Memory.Extensions;
using Reloaded.Memory.Streams;
using StreamExtensions = FileEmulationFramework.Lib.Utilities.StreamExtensions;

// Aliasing for readability, since our assembly name has priority over 'stream'
using Strim = System.IO.Stream;
Expand Down Expand Up @@ -151,7 +151,8 @@ private AfsFileEntry[] GetEntriesFromFile(IntPtr handle)
ThrowHelpers.IO("Failed to read original AFS header start.");

var entries = GC.AllocateUninitializedArray<AfsFileEntry>(header.NumberOfFiles);
if (!stream.TryRead(MemoryMarshal.Cast<AfsFileEntry, byte>(entries), out _))
var byteSpan = MemoryMarshal.Cast<AfsFileEntry, byte>(entries);
if (!StreamExtensions.TryRead(stream, byteSpan, out _))
ThrowHelpers.IO("Failed to read original AFS header pos+offset.");

return entries;
Expand Down
5 changes: 3 additions & 2 deletions Emulator/ARC.Stream.Emulator/ARC.Stream.Emulator.csproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<LangVersion>preview</LangVersion>
<LangVersion>10.0</LangVersion>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<OutputPath>$(RELOADEDIIMODS)/reloaded.universal.fileemulationframework.arc</OutputPath>
Expand Down Expand Up @@ -45,6 +45,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="9.0.3" />
<PackageReference Include="Reloaded.Memory" Version="9.3.2" />
<PackageReference Include="Reloaded.Mod.Interfaces" Version="2.3.0" ExcludeAssets="runtime" />
</ItemGroup>
Expand Down
5 changes: 3 additions & 2 deletions Emulator/ARC.Stream.Emulator/Arc/ArcBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using FileEmulationFramework.Lib.Utilities;
using Microsoft.Win32.SafeHandles;
using Reloaded.Memory.Extensions;
using Reloaded.Memory.Streams;
using StreamExtensions = FileEmulationFramework.Lib.Utilities.StreamExtensions;

// Aliasing for readability, since our assembly name has priority over 'stream'
using Strim = System.IO.Stream;
Expand Down Expand Up @@ -112,7 +112,8 @@ private ArcFileEntry[] GetEntriesFromFile(IntPtr handle)

var entries = GC.AllocateUninitializedArray<ArcFileEntry>(header.GetNumberOfFiles());
RandXoringStream input = new RandXoringStream(stream, header.GetNumberOfFiles());
if (!input.TryRead(MemoryMarshal.Cast<ArcFileEntry, byte>(entries), out _))
var byteSpan = MemoryMarshal.Cast<ArcFileEntry, byte>(entries);
if (!StreamExtensions.TryRead(input, result: byteSpan, numBytesRead: out _))
ThrowHelpers.IO("Failed to read original ARC header pos+offset.");

input.Dispose();
Expand Down
1 change: 1 addition & 0 deletions Emulator/AWB.Stream.Emulator/AWB.Stream.Emulator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="9.0.3" />
<PackageReference Include="Reloaded.Memory" Version="9.3.2" />
<PackageReference Include="Reloaded.Mod.Interfaces" Version="2.3.0" ExcludeAssets="runtime" />
<PackageReference Include="Reloaded.Memory.SigScan.ReloadedII.Interfaces" Version="1.2.0" />
Expand Down
1 change: 1 addition & 0 deletions Emulator/BF.File.Emulator/BF.File.Emulator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="9.0.3" />
<PackageReference Include="Reloaded.Mod.Interfaces" Version="2.3.0" ExcludeAssets="runtime" />
<PackageReference Include="Reloaded.SharedLib.Hooks" Version="1.9.0" />
</ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions Emulator/BMD.File.Emulator/BMD.File.Emulator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="9.0.3" />
<PackageReference Include="Reloaded.Mod.Interfaces" Version="2.3.0" ExcludeAssets="runtime" />
<PackageReference Include="Reloaded.SharedLib.Hooks" Version="1.9.0" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="9.0.3" />
<PackageReference Include="Reloaded.Memory" Version="9.3.2" />
<PackageReference Include="Reloaded.Mod.Interfaces" Version="2.3.0" ExcludeAssets="runtime" />
<PackageReference Include="Reloaded.SharedLib.CSharp.Prs.Interfaces" Version="1.0.2" />
Expand Down
1 change: 1 addition & 0 deletions Emulator/PAK.Stream.Emulator/PAK.Stream.Emulator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="9.0.3" />
<PackageReference Include="Reloaded.Memory" Version="9.3.2" />
<PackageReference Include="Reloaded.Mod.Interfaces" Version="2.3.0" ExcludeAssets="runtime" />
<PackageReference Include="Reloaded.Memory.SigScan.ReloadedII.Interfaces" Version="1.2.0" />
Expand Down
1 change: 1 addition & 0 deletions Emulator/SPD.File.Emulator/SPD.File.Emulator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="9.0.3" />
<PackageReference Include="Reloaded.Memory" Version="9.3.2" />
<PackageReference Include="Reloaded.Mod.Interfaces" Version="2.3.0" ExcludeAssets="runtime" />
<PackageReference Include="Reloaded.SharedLib.Hooks" Version="1.9.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<LangVersion>10.0</LangVersion>
<IsPackable>false</IsPackable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
1 change: 1 addition & 0 deletions FileEmulationFramework/FileEmulationFramework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.ILLink.Tasks" Version="9.0.3" />
<PackageReference Include="Reloaded.Hooks.Definitions" Version="1.15.0" />
<PackageReference Include="Reloaded.Memory" Version="9.3.2" />
<PackageReference Include="Reloaded.Mod.Interfaces" Version="2.3.0" ExcludeAssets="runtime" />
Expand Down
7 changes: 0 additions & 7 deletions global.json

This file was deleted.

Loading