Server/project
MadByte a52c81e270 Changed mod path for loading bundles from the server to be relative (!389)
**Before merging: Please test on a real Windows installation if possible!**

I tested this on Linux as well as inside a Windows VM hosted on Linux, but wasn't able to test it on a real Windows installation.

This commit fixes an issue with loading bundles from a native Linux server:

When compiling the server natively for Linux & installing some mods, everything works except for mods trying to load bundles from the server. Reason is a malformed path to the bundle:

```ts
2024-07-30 23:48:16.968 +02:00|0.14.9.1.30626|Error|Default|
EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\home\USER\Games\escape-from-tarkov\drive_c\SPTarkov\user\mods\Bloody-Bullet-Wounds\bundles\assets\systems\effects\particlesystems\effects.bundle".
```

`process.cwd()` returns the linux-agnostic path of course, but for some reason it also returns `C:`.
Changing the line to `modpath.slice(0, -1).replace(/\\/g, "/");` seems to work and the bundles seem to get loaded without issues (did a quick test raid), even without passing the absolute path to the  mod.

I tried to check why that is, and I think node is able to [get the cwd and resolve the relative path](4d1d88118b/src/path.cc (L101)) by itself..

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/389
Co-authored-by: MadByte <madbyte@noreply.dev.sp-tarkov.com>
Co-committed-by: MadByte <madbyte@noreply.dev.sp-tarkov.com>
(cherry picked from commit 6f010acfca)
2024-07-31 20:14:12 +01:00
..
assets Lowered PMC spawn chance of following weapons: 2024-07-31 20:13:56 +01:00
src Changed mod path for loading bundles from the server to be relative (!389) 2024-07-31 20:14:12 +01:00
tests Fixed various Biome issues 2024-07-23 17:30:20 +01:00
.editorconfig Fixes Markdown Formatting 2024-05-07 13:37:01 -04:00
.nvmrc Updates NPM Packages - Node v20.11.1 LTS (!260) 2024-03-14 09:08:40 +00:00
.swcrc Apply Biome Formatting 2024-07-23 11:12:53 -04:00
biome.jsonc Fixed various Biome issues 2024-07-23 17:30:20 +01:00
gulpfile.mjs Apply Biome Formatting 2024-07-23 11:12:53 -04:00
package.json Adds Biome - Removes ESLint & Prettier (!383) 2024-07-22 21:15:57 +00:00
pkgconfig.json Apply Biome Formatting 2024-07-23 11:12:53 -04:00
Server.code-workspace Adds Biome - Removes ESLint & Prettier (!383) 2024-07-22 21:15:57 +00:00
tsconfig.base.json Apply Biome Formatting 2024-07-23 11:12:53 -04:00
tsconfig.json Apply Biome Formatting 2024-07-23 11:12:53 -04:00
tsconfig.typedef.json Apply Biome Formatting 2024-07-23 11:12:53 -04:00
typedoc.json Formatting/Linting Changes (!168) 2023-11-16 21:42:06 +00:00
vitest.config.ts Rebranding to SPT (!345) 2024-05-21 17:59:04 +00:00