Skip to content

Commit

Permalink
Added support for the new mod type
Browse files Browse the repository at this point in the history
- Removed old XBox directory creation logic as it was no longer
  applicable.

closes Nexus-Mods/Vortex#13745
closes Nexus-Mods/Vortex#14077
  • Loading branch information
IDCs committed Aug 13, 2024
1 parent 92100a0 commit 1adf8d0
Show file tree
Hide file tree
Showing 13 changed files with 1,019 additions and 396 deletions.
29 changes: 29 additions & 0 deletions game-masterchiefcollection/common.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions game-masterchiefcollection/common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/* eslint-disable */
import path from 'path';
import { util } from 'vortex-api';

import { IHaloGame } from './types';

export const MCC_LOCAL_LOW = path.resolve(util.getVortexPath('appData'), '..', 'LocalLow', 'MCC');
export const MOD_MANIFEST_FILE = 'ModManifest.txt';
export const MOD_MANIFEST_FILE_PATH = path.join(MCC_LOCAL_LOW, 'Config', MOD_MANIFEST_FILE);
export const MOD_INFO_JSON_FILE = 'modinfo.json';

export const MS_APPID = 'Microsoft.Chelan';
export const STEAM_ID = '976730';
export const GAME_ID = 'halothemasterchiefcollection';

export const MOD_CONFIG_FILE = 'modpack_config.cfg';
export const MOD_CONFIG_DEST_ELEMENT = '$MCC_home\\';
export const ASSEMBLY_EXT = '.asmp';
export const MAP_EXT = '.map';

export const MODTYPE_PLUG_AND_PLAY = 'halo-mcc-plug-and-play-modtype';

// At the time of writing this extension, only Halo: Combat Evolved and Halo Reach were available.
// We may have to come back to this object as more of the games get released.
export const HALO_GAMES: { [key: string]: IHaloGame } = {
halo1: { internalId: '1', name: 'Halo: CE', modsPath: 'halo1', img: path.join(__dirname, 'halo1.png') },
halo2: { internalId: '2', name: 'Halo 2', modsPath: 'halo2', img: path.join(__dirname, 'halo2.png') },
halo3: { internalId: '3', name: 'Halo 3', modsPath: 'halo3', img: path.join(__dirname, 'halo3.png') },
// Someone should get Mike a cookie for his premonition skills
odst: { internalId: '4', name: 'ODST', modsPath: 'halo3odst', img: path.join(__dirname, 'odst.png') },
halo4: { internalId: '5', name: 'Halo 4', modsPath: 'halo4', img: path.join(__dirname, 'halo4.png') },
haloreach: { internalId: '6', name: 'Reach', modsPath: 'haloreach', img: path.join(__dirname, 'haloreach.png') },
};
Loading

0 comments on commit 1adf8d0

Please sign in to comment.