mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-25 14:15:02 +00:00
15 lines
368 B
JavaScript
Executable File
15 lines
368 B
JavaScript
Executable File
var fs = require('fs');
|
|
var path = require('path');
|
|
|
|
export function getMtlxStrings(fileNames, subPath)
|
|
{
|
|
const mtlxStrs = [];
|
|
for (let i = 0; i < fileNames.length; i++)
|
|
{
|
|
const p = path.resolve(subPath, fileNames[parseInt(i, 10)]);
|
|
const t = fs.readFileSync(p, 'utf8');
|
|
mtlxStrs.push(t);
|
|
}
|
|
return mtlxStrs;
|
|
}
|