Skip to content

Commit 30e80b2

Browse files
committed
disable cross-update for other games
1 parent e85600a commit 30e80b2

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

editor/src/app/state/extensions/effects.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import {
4343
getSameCommands,
4444
doesCommandHaveAnyAttributeInvalid,
4545
replaceType,
46+
GameEditions,
4647
} from '../../utils';
4748
import { AuthFacade } from '../auth/facade';
4849
import { GameFacade } from '../game/facade';
@@ -120,7 +121,11 @@ export class ExtensionsEffects {
120121
),
121122
take(1),
122123
map(([supportInfo, oldCommand]) => {
123-
if (shouldUpdateOtherGames(command, oldCommand)) {
124+
if (
125+
// disable cross-update for IV/Unknown
126+
GameEditions[Game.unknown_x86].includes(game) &&
127+
shouldUpdateOtherGames(command, oldCommand)
128+
) {
124129
return getSameCommands(supportInfo, game).map((d) => ({
125130
game: d.game,
126131
command,

editor/src/app/utils/game.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { flatten } from 'lodash';
22
import { Game } from '../models';
33

4-
const GameEditions = {
4+
export const GameEditions = {
55
[Game.gta3]: [Game.gta3, Game.gta3_mobile, Game.gta3_unreal],
66
[Game.vc]: [Game.vc, Game.vc_mobile, Game.vc_unreal],
77
[Game.sa]: [Game.sa, Game.sa_mobile, Game.sa_unreal],

0 commit comments

Comments
 (0)