Snapshot for release 2026.10.23.1 (internal 4204305)
This commit is contained in:
parent
2be3668232
commit
539a7a3e64
69 changed files with 5385 additions and 107 deletions
|
|
@ -140,6 +140,34 @@ if (-not $EngineOnly) {
|
|||
}
|
||||
else { Write-Warning "createdump.exe is missing from $dotnet and no runtime pack matches coreclr $have; a CoreCLR crash will leave no dump." }
|
||||
}
|
||||
|
||||
# Patched CoreCLR (2026-10-23, runtime-patches\coreclr-10.0.12-x86\README.md): the hot-reload
|
||||
# statics crash, dotnet/runtime #135441. Its coreclr.dll, DAC and DBI go over the runtime pack's;
|
||||
# the official CoreLib and JIT stay. Refused for a runtime of another version: a coreclr has to
|
||||
# match its CoreLib. In use by a running client: moved aside, as the loader and shim are.
|
||||
$patch = Join-Path $repo "runtime-patches\coreclr-10.0.12-x86"
|
||||
if (Test-Path "$patch\coreclr.dll") {
|
||||
$lib = (Get-Item "$dotnet\System.Private.CoreLib.dll").VersionInfo
|
||||
$pv = (Get-Item "$patch\coreclr.dll").VersionInfo
|
||||
if ($lib.FileMajorPart -ne $pv.FileMajorPart -or $lib.FileMinorPart -ne $pv.FileMinorPart -or $lib.FileBuildPart -ne $pv.FileBuildPart) {
|
||||
throw "runtime-patches\coreclr-10.0.12-x86 was built for runtime $($pv.FileMajorPart).$($pv.FileMinorPart).$($pv.FileBuildPart), but $dotnet has CoreLib $($lib.FileMajorPart).$($lib.FileMinorPart).$($lib.FileBuildPart): rebuild the patch for it or remove the folder (see its README)."
|
||||
}
|
||||
$dacName = "mscordaccore_x86_x86_{0}.{1}.{2}.{3}.dll" -f $pv.FileMajorPart, $pv.FileMinorPart, $pv.FileBuildPart, $pv.FilePrivatePart
|
||||
$copied = 0
|
||||
foreach ($pair in @(@('coreclr.dll', 'coreclr.dll'), @('mscordaccore.dll', 'mscordaccore.dll'), @('mscordbi.dll', 'mscordbi.dll'), @('mscordaccore.dll', $dacName))) {
|
||||
$src = Join-Path $patch $pair[0]
|
||||
$dest = Join-Path $dotnet $pair[1]
|
||||
if ((Test-Path $dest) -and (Get-FileHash $dest).Hash -eq (Get-FileHash $src).Hash) { continue }
|
||||
try { Copy-Item $src $dest -Force -ErrorAction Stop }
|
||||
catch {
|
||||
Rename-Item $dest ("{0}.old-{1:yyyyMMddHHmmss}" -f $pair[1], (Get-Date)) -ErrorAction Stop
|
||||
Copy-Item $src $dest -Force -ErrorAction Stop
|
||||
Write-Host "$($pair[1]) was in use: moved the old one aside; new launches get the patched one."
|
||||
}
|
||||
$copied++
|
||||
}
|
||||
if ($copied -gt 0) { Write-Host "Patched CoreCLR $($pv.FileVersion) -> $dotnet ($copied file(s); runtime-patches\coreclr-10.0.12-x86)" }
|
||||
}
|
||||
}
|
||||
|
||||
# Engine + dependencies. The canonical RynthCore.Engine.dll goes last: the loader's file
|
||||
|
|
|
|||
|
|
@ -51,6 +51,10 @@ $env:RYNTHCORE_TEST_CLIENT = "Test-ClrWorld" # the loader logs "TestClient: ..
|
|||
# clients: a test client gets its own so it never moves the player's bar or panels.
|
||||
$env:LOCALAPPDATA = "C:\Games\RynthCore\Test\localappdata"
|
||||
New-Item -ItemType Directory -Force $env:LOCALAPPDATA | Out-Null
|
||||
# The engine finds %LOCALAPPDATA% through the known-folder API, which ignores the variable above:
|
||||
# the hotkeys (shared by every client, and changed by the item bar's keys) get their own file here.
|
||||
New-Item -ItemType Directory -Force "$env:LOCALAPPDATA\RynthCore" | Out-Null
|
||||
$env:RYNTHCORE_HOTKEYS_FILE = "$env:LOCALAPPDATA\RynthCore\hotkeys.txt"
|
||||
$dispatch = "C:\Games\RynthCore\Test\dispatch.txt"
|
||||
$env:RYNTHCORE_DISPATCH_FILE = $dispatch
|
||||
Set-Content $dispatch "# test dispatch file"
|
||||
|
|
|
|||
Loading…
Reference in a new issue