Add game param to modmapper url

Website doesn't use this yet, but it will.
This commit is contained in:
Tyler Hallada 2022-03-23 01:27:07 -04:00
parent 5f8e00c300
commit 35a33b89f4

View File

@ -5,8 +5,7 @@ import { loadWasm } from "./wasmLoader";
const supportedGames: string[] = [ 'skyrimse', 'skyrimspecialedition', 'skyrimvr' ];
const modMapperBase: string = 'https://modmapper.com/';
// Added gameId for future use?
const modmapperModUrl = (gameId: string, modId: number): string => `${modMapperBase}?mod=${modId}`;
const modmapperModUrl = (gameId: string, modId: number): string => `${modMapperBase}?mod=${modId}&game=${gameId}`;
function pluginPath(pluginName : string, api : types.IExtensionApi): string {
const store = api.store