mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-25 12:46:03 +00:00
add missing bundle files
This commit is contained in:
parent
29e1000e47
commit
ee9c786297
10
pkg/emscripten/libretro/browserfs.min.js
vendored
Normal file
10
pkg/emscripten/libretro/browserfs.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
35
pkg/emscripten/libretro/indexer
Normal file
35
pkg/emscripten/libretro/indexer
Normal file
@ -0,0 +1,35 @@
|
||||
#! /usr/bin/env coffee
|
||||
|
||||
fs = require 'fs'
|
||||
path = require 'path'
|
||||
|
||||
symLinks = {}
|
||||
|
||||
rdSync = (dpath, tree, name) ->
|
||||
files = fs.readdirSync(dpath)
|
||||
for file in files
|
||||
# ignore non-essential directories / files
|
||||
continue if file in ['.git', 'node_modules', 'bower_components', 'build'] or file[0] is '.'
|
||||
fpath = dpath + '/' + file
|
||||
try
|
||||
# Avoid infinite loops.
|
||||
lstat = fs.lstatSync(fpath)
|
||||
if lstat.isSymbolicLink()
|
||||
symLinks[lstat.dev] ?= {}
|
||||
# Ignore if we've seen it before
|
||||
continue if symLinks[lstat.dev][lstat.ino]?
|
||||
symLinks[lstat.dev][lstat.ino] = 0
|
||||
|
||||
fstat = fs.statSync(fpath)
|
||||
if fstat.isDirectory()
|
||||
tree[file] = child = {}
|
||||
rdSync(fpath, child, file)
|
||||
else
|
||||
tree[file] = null
|
||||
catch e
|
||||
# Ignore and move on.
|
||||
return tree
|
||||
|
||||
fs_listing = rdSync(process.cwd(), {}, '/')
|
||||
console.log(JSON.stringify(fs_listing))
|
||||
|
Loading…
x
Reference in New Issue
Block a user