Skip to content

Commit

Permalink
add error message when lobby join failed
Browse files Browse the repository at this point in the history
  • Loading branch information
toobeeh committed Feb 23, 2025
1 parent 3a267e3 commit 341cc8f
Show file tree
Hide file tree
Showing 6 changed files with 626 additions and 542 deletions.
14 changes: 14 additions & 0 deletions patch/patchConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1253,5 +1253,19 @@ export const gameJsPatchConfig = {
},
],
},
{
name: "Insert lobby join feedback",
replacements: [],
injections: [
{
position: '}(\\s*)[a-zA-Z0-9&_\\-$]+\\({\\s*success: !1',
code: `document.dispatchEvent(new CustomEvent("joinLobbyResult")) & `,
},
{
position: '(\\s+)switch \\(([a-zA-Z0-9&_\\-$]+)\\)[^"]+"Room not found!',
code: `document.dispatchEvent(new CustomEvent("joinLobbyResult")); `,
},
],
},
],
};
Loading

0 comments on commit 341cc8f

Please sign in to comment.