Skip to content

Commit

Permalink
disable cross-update for other games
Browse files Browse the repository at this point in the history
  • Loading branch information
x87 committed May 16, 2022
1 parent e85600a commit c483b28
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion editor/src/app/state/extensions/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import {
getSameCommands,
doesCommandHaveAnyAttributeInvalid,
replaceType,
GameEditions,
} from '../../utils';
import { AuthFacade } from '../auth/facade';
import { GameFacade } from '../game/facade';
Expand Down Expand Up @@ -120,7 +121,11 @@ export class ExtensionsEffects {
),
take(1),
map(([supportInfo, oldCommand]) => {
if (shouldUpdateOtherGames(command, oldCommand)) {
if (
// disable cross-update for IV/Unknown
!GameEditions[Game.unknown_x86].includes(game) &&
shouldUpdateOtherGames(command, oldCommand)
) {
return getSameCommands(supportInfo, game).map((d) => ({
game: d.game,
command,
Expand Down
2 changes: 1 addition & 1 deletion editor/src/app/utils/game.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { flatten } from 'lodash';
import { Game } from '../models';

const GameEditions = {
export const GameEditions = {
[Game.gta3]: [Game.gta3, Game.gta3_mobile, Game.gta3_unreal],
[Game.vc]: [Game.vc, Game.vc_mobile, Game.vc_unreal],
[Game.sa]: [Game.sa, Game.sa_mobile, Game.sa_unreal],
Expand Down

0 comments on commit c483b28

Please sign in to comment.