Skip to content

Commit b37acf0

Browse files
authored
fix(games/asa): add wildcard option to eos usage (#739)
* fix(games/asa): add wildcard option to eos usage * docs: add CHANGELOG.md line
1 parent bff0c33 commit b37acf0

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Feat: Squad - Replace Valve protocol with EOS protocol (By @k3ithos #731)
1010
* Feat: Clive Barker's Undying - Added support (By @dgibbs64 #733)
1111
* Chore: Update `iconv-lite` from `0.6.3` to `0.7.0` (#737)
12+
* Fix: ASA - change EOS usage (#739, thanks @mze9412)
1213

1314
## 5.3.1
1415
* Fix: HTTP requests would end up making more retries than needed due to got's internal retry mechanism (#690, thanks @RattleSN4K3)

protocols/asa.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default class asa extends Epic {
88
this.clientId = 'xyza7891muomRmynIIHaJB9COBKkwj6n'
99
this.clientSecret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s'
1010
this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2'
11+
this.wildcardMatchmaking = true
1112
}
1213

1314
async run (state) {

protocols/epic.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default class Epic extends Core {
1616
this.deploymentId = null
1717
this.epicApi = 'https://api.epicgames.dev'
1818
this.authByExternalToken = false // Some games require a client access token to POST to the matchmaking endpoint.
19+
this.wildcardMatchmaking = false
1920

2021
this.deviceIdAccessToken = null
2122
this.accessToken = null
@@ -96,7 +97,11 @@ export default class Epic extends Core {
9697
}
9798

9899
async queryInfo (state) {
99-
const url = `${this.epicApi}/matchmaking/v1/${this.deploymentId}/filter`
100+
let baseUrl = this.epicApi
101+
if (this.wildcardMatchmaking) {
102+
baseUrl = `${baseUrl}/wildcard`
103+
}
104+
const url = `${baseUrl}/matchmaking/v1/${this.deploymentId}/filter`
100105
const body = {
101106
criteria: [
102107
{

0 commit comments

Comments
 (0)