rphsoftware/OneLoader

Rollup fails to load in Retail mode

rphsoftware opened this issue · 0 comments

This is the syndrome:
The issue

Initial root cause analysis:
Line 5 in www/modloader/lib/rollup.js ( as of 13cdd00 ) performs a relative file read. This doesn't work in Retail mode, because all node.js filesystem operations are relative to the folder with package.json, not the index.html file.
The solution should be applying the same approach as everywhere else in the project (the path.dirname(process.mainmodule.filename) trick )