Remove legacy steamcmd and SCUM runtime coupling
This commit is contained in:
@@ -164,8 +164,8 @@ func TestUE4SSDLLExtensionSynchronizesNoOpsUpdatesAndKeepsPriorRelease(t *testin
|
||||
t.Fatalf("expected exactly one enabled managed mod entry, mods=%q", mods)
|
||||
}
|
||||
command := supervisor.Command()
|
||||
if len(command.Args) != 1 || filepath.Base(command.Args[0]) != "SCUMServer.exe" || strings.HasSuffix(strings.ToLower(command.Args[0]), ".dll") {
|
||||
t.Fatalf("expected normal SCUM executable start without a DLL loader, command=%+v", command)
|
||||
if len(command.Args) != 1 || filepath.Base(command.Args[0]) != "GameServer.exe" || strings.HasSuffix(strings.ToLower(command.Args[0]), ".dll") {
|
||||
t.Fatalf("expected normal game executable start without a DLL loader, command=%+v", command)
|
||||
}
|
||||
|
||||
second := executor.Execute(fixture.assignment)
|
||||
@@ -368,26 +368,26 @@ func newUE4SSExtensionFixture(t *testing.T, root string, bootstrap bool) ue4ssEx
|
||||
if err != nil {
|
||||
t.Fatalf("create workspace scope: %v", err)
|
||||
}
|
||||
writeUE4SSFixtureFile(t, filepath.Join(scope, "actions", "start.json"), []byte(`{"version":1,"action":"start","mode":"supervised","executableKey":"bin/SCUMServer.exe"}`), 0o600)
|
||||
executable := []byte("SCUM server executable fixture")
|
||||
writeUE4SSFixtureFile(t, filepath.Join(scope, "bin", "SCUMServer.exe"), executable, 0o700)
|
||||
writeUE4SSFixtureFile(t, filepath.Join(scope, "actions", "start.json"), []byte(`{"version":1,"action":"start","mode":"supervised","executableKey":"bin/GameServer.exe"}`), 0o600)
|
||||
executable := []byte("game server executable fixture")
|
||||
writeUE4SSFixtureFile(t, filepath.Join(scope, "bin", "GameServer.exe"), executable, 0o700)
|
||||
if bootstrap {
|
||||
writeUE4SSFixtureFile(t, filepath.Join(scope, "bin", "dwmapi.dll"), []byte("UE4SS proxy fixture"), 0o600)
|
||||
writeUE4SSFixtureFile(t, filepath.Join(scope, "bin", "UE4SS.dll"), []byte("UE4SS loader fixture"), 0o600)
|
||||
writeUE4SSFixtureFile(t, filepath.Join(scope, "bin", "ue4ss", "Mods", "mods.txt"), []byte("OtherMod : 1\nscum_simple_rcon : 0\nscum_simple_rcon : 1\n"), 0o600)
|
||||
}
|
||||
plan := protocol.RuntimeDLLExtensionPlan{
|
||||
Key: "scum-simple-rcon",
|
||||
Version: "1.0.0",
|
||||
ReleaseURL: "https://cdn.npc0.com/scum_simple_rcon_ue4s.dll",
|
||||
Checksum: bytesChecksum([]byte("scum-simple-rcon DLL release one")),
|
||||
SizeBytes: int64(len([]byte("scum-simple-rcon DLL release one"))),
|
||||
TargetKey: "ue4ss/scum-simple-rcon",
|
||||
ModKey: "scum_simple_rcon",
|
||||
DLLRef: "ue4ss/Mods/scum_simple_rcon/dlls/main.dll",
|
||||
SCUMExecutableChecksum: bytesChecksum(executable),
|
||||
UE4SSABI: "ue4ss-3.0",
|
||||
RCONPort: 27015,
|
||||
Key: "scum-simple-rcon",
|
||||
Version: "1.0.0",
|
||||
ReleaseURL: "https://cdn.npc0.com/scum_simple_rcon_ue4s.dll",
|
||||
Checksum: bytesChecksum([]byte("scum-simple-rcon DLL release one")),
|
||||
SizeBytes: int64(len([]byte("scum-simple-rcon DLL release one"))),
|
||||
TargetKey: "ue4ss/scum-simple-rcon",
|
||||
ModKey: "scum_simple_rcon",
|
||||
DLLRef: "ue4ss/Mods/scum_simple_rcon/dlls/main.dll",
|
||||
TargetExecutableChecksum: bytesChecksum(executable),
|
||||
UE4SSABI: "ue4ss-3.0",
|
||||
RCONPort: 27015,
|
||||
}
|
||||
assignment.ExecutionInput.DLLExtensions = []protocol.RuntimeDLLExtensionPlan{plan}
|
||||
return ue4ssExtensionFixture{
|
||||
|
||||
Reference in New Issue
Block a user