Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
fix: various quirks after latest update
Browse files Browse the repository at this point in the history
  • Loading branch information
paralin committed Feb 1, 2018
1 parent 0fb9706 commit d5200d4
Show file tree
Hide file tree
Showing 7 changed files with 2,609 additions and 15 deletions.
2 changes: 1 addition & 1 deletion auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (a *Auth) handleLogOnResponse(packet *Packet) {
Result: EResult(body.GetEresult()),
ExtendedResult: EResult(body.GetEresultExtended()),
AccountFlags: EAccountFlags(body.GetAccountFlags()),
ClientSteamId: SteamId(body.GetClientSuppliedSteamid()),
ClientSteamId: steamid.SteamId(body.GetClientSuppliedSteamid()),
Body: body,
})
} else if result == EResult_Fail || result == EResult_ServiceUnavailable || result == EResult_TryAnotherCM {
Expand Down
7 changes: 4 additions & 3 deletions auth_events.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package steam

import (
. "github.com/faceit/go-steam/protocol/protobuf"
"github.com/faceit/go-steam/protocol/protobuf"
. "github.com/faceit/go-steam/protocol/steamlang"
"github.com/faceit/go-steam/steamid"
)

type LoggedOnEvent struct {
Result EResult
ExtendedResult EResult
AccountFlags EAccountFlags
ClientSteamId SteamId `json:",string"`
Body *CMsgClientLogonResponse
ClientSteamId steamid.SteamId `json:",string"`
Body *protobuf.CMsgClientLogonResponse
}

type LogOnFailedEvent struct {
Expand Down
18 changes: 9 additions & 9 deletions generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ var clientProtoFiles = map[string]string{
"steammessages_base.proto": "base.pb.go",
"encrypted_app_ticket.proto": "app_ticket.pb.go",

"steammessages_clientserver.proto": "client_server.pb.go",
"steammessages_clientserver_2.proto": "client_server_2.pb.go",
"steammessages_clientserver.proto": "client_server.pb.go",
"steammessages_clientserver_2.proto": "client_server_2.pb.go",
"steammessages_clientserver_friends.proto": "client_server_friends.pb.go",
"steammessages_clientserver_login.proto": "client_server_login.pb.go",
"steammessages_sitelicenseclient.proto": "client_site_license.pb.go",

"content_manifest.proto": "content_manifest.pb.go",

Expand All @@ -125,13 +128,10 @@ var tf2ProtoFiles = map[string]string{
}

var dotaProtoFiles = map[string]string{
"base_gcmessages.proto": "base.pb.go",
"econ_gcmessages.proto": "econ.pb.go",
"gcsdk_gcmessages.proto": "gcsdk.pb.go",
"dota_gcmessages_common.proto": "dota_common.pb.go",
"dota_gcmessages_client.proto": "dota_client.pb.go",
"dota_gcmessages_client_fantasy.proto": "dota_client_fantasy.pb.go",
"gcsystemmsgs.proto": "system.pb.go",
"base_gcmessages.proto": "base.pb.go",
"econ_gcmessages.proto": "econ.pb.go",
"gcsdk_gcmessages.proto": "gcsdk.pb.go",
"gcsystemmsgs.proto": "system.pb.go",
}

func compileProto(srcBase, srcSubdir, proto, target string) {
Expand Down
Loading

0 comments on commit d5200d4

Please sign in to comment.