import { sep as pathSep } from "path" ; import { ModMapper } from "../ModMapper" ; export default class NestedGameFolder extends ModMapper { public mapFile ( path ) { const pathParts = path . split ( "/" ) ; if ( pathParts [ 0 ] === "__MACOSX" ) return null ; pathParts [ 0 ] = "game" ; return pathParts . join ( pathSep ) ; } public getFriendlyName ( ) { return "Nested Game Folder" ; } }