Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Jul 30, 2024
1 parent 7002ec6 commit 76556e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ export const getAllAssets = (projectPath: string, assetsFolder: string): Asset[]

const fileRelativeFor = (fileName: string) => ({ name: fileName, url: fileName })

const loadImagesIn = (basePath: string): Asset[] =>
const loadAssetsIn = (basePath: string): Asset[] =>
fs.readdirSync(basePath, { withFileTypes: true })
.flatMap((file: Dirent) =>
file.isDirectory() ? loadImagesIn(join(basePath, file.name)) :
file.isDirectory() ? loadAssetsIn(join(basePath, file.name)) :
isValidAsset(file) ? [fileRelativeFor(relative(baseFolder, join(basePath, file.name)))] : []
)

return loadImagesIn(baseFolder)
return loadAssetsIn(baseFolder)
}

export const getVisuals = (game: RuntimeObject, interpreter: Interpreter): VisualState[] =>
Expand Down

0 comments on commit 76556e2

Please sign in to comment.