@@ -74,7 +74,7 @@ type SimpleCmdBuilder struct {
74
74
prefixes []string
75
75
}
76
76
77
- func (b SimpleCmdBuilder ) GetArgs (fr game_launcher.FileRepository , u * url.URL , launchType game_launcher.LaunchType ) ([]string , error ) {
77
+ func (b SimpleCmdBuilder ) GetArgs (_ game_launcher.FileRepository , u * url.URL , launchType game_launcher.LaunchType ) ([]string , error ) {
78
78
args := make ([]string , 0 , len (b .prefixes ))
79
79
if launchType == game_launcher .LaunchTypeLaunchAndJoin {
80
80
args = append (args , b .prefixes ... )
@@ -87,7 +87,7 @@ func (b SimpleCmdBuilder) GetArgs(fr game_launcher.FileRepository, u *url.URL, l
87
87
type OriginCmdBuilder struct {
88
88
}
89
89
90
- func (b OriginCmdBuilder ) GetArgs (fr game_launcher.FileRepository , u * url.URL , launchType game_launcher.LaunchType ) ([]string , error ) {
90
+ func (b OriginCmdBuilder ) GetArgs (_ game_launcher.FileRepository , u * url.URL , launchType game_launcher.LaunchType ) ([]string , error ) {
91
91
args := make ([]string , 0 , 8 )
92
92
if launchType == game_launcher .LaunchTypeLaunchAndJoin {
93
93
args = append (args ,
@@ -103,7 +103,7 @@ func (b OriginCmdBuilder) GetArgs(fr game_launcher.FileRepository, u *url.URL, l
103
103
104
104
type RefractorV1CmdBuilder struct {}
105
105
106
- func (b RefractorV1CmdBuilder ) GetArgs (fr game_launcher.FileRepository , u * url.URL , launchType game_launcher.LaunchType ) ([]string , error ) {
106
+ func (b RefractorV1CmdBuilder ) GetArgs (_ game_launcher.FileRepository , u * url.URL , launchType game_launcher.LaunchType ) ([]string , error ) {
107
107
args := make ([]string , 0 , 6 )
108
108
if launchType == game_launcher .LaunchTypeLaunchAndJoin {
109
109
args = append (args , "+joinServer" , u .Hostname (), "+port" , u .Port ())
@@ -130,7 +130,7 @@ type KillProcessHookHandler struct {
130
130
additionalTargets []string
131
131
}
132
132
133
- func (h KillProcessHookHandler ) Run (fr game_launcher.FileRepository , u * url.URL , config game_launcher.Config , launchType game_launcher.LaunchType , args map [string ]string ) error {
133
+ func (h KillProcessHookHandler ) Run (_ game_launcher.FileRepository , _ * url.URL , config game_launcher.Config , _ game_launcher.LaunchType , _ map [string ]string ) error {
134
134
targets := h .additionalTargets
135
135
if h .targetLaunchExecutable {
136
136
targets = append (targets , config .ExecutableName )
@@ -177,7 +177,7 @@ type DeleteFileHookHandler struct {
177
177
pathsBuilder func (config game_launcher.Config ) ([]string , error )
178
178
}
179
179
180
- func (h DeleteFileHookHandler ) Run (fr game_launcher.FileRepository , u * url.URL , config game_launcher.Config , launchType game_launcher.LaunchType , args map [string ]string ) error {
180
+ func (h DeleteFileHookHandler ) Run (fr game_launcher.FileRepository , _ * url.URL , config game_launcher.Config , _ game_launcher.LaunchType , _ map [string ]string ) error {
181
181
paths , err := h .pathsBuilder (config )
182
182
if err != nil {
183
183
return err
0 commit comments