mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2026-10-31 23:57:15 +00:00
prebuilt() only split render_asset on an escaped double backslash and then on '/', so paths using single backslashes (mesh\ftcommunityitems\x.nif) kept their directories in the file name. The LXFML lookup then failed and get_model returned 500. Extract the base name by splitting on any run of backslashes or forward slashes and lowercasing it. Also return 404 instead of an unusable string when a LOT has no render asset. Co-authored-by: bob-g-code <346622190+bob-g-code@users.noreply.github.com>