jak-project/game
massimilianodelliubaldini 4c2e1a8a90
Remove 128 character buffer causing long filenames to crash gk (#3771)
Several users have reported that ArchipelaGOAL is not launching
properly, even when using the OpenGOAL Launcher. The window pops up with
a black screen, and then quits. The only way they can run it is if they
double click gk.exe.

This comes down to the Launcher providing gk.exe with the `config_path`
parameter, which leads the program to find `archipelagoal-settings.gc`.
Here is an example from me:

```
D:\Applications\Games\OpenGOAL\features\jak1\mods\JakMods\_settings\archipelagoal\OpenGOAL\jak1\settings/Mods/archipelagoal-settings.gc
```

If a user's base OpenGOAL install directory is long enough, this path
becomes longer than 128 characters. This overflows the character buffer
in `kopen` which is used to open file streams. If you're only slightly
over the limit like myself, at 135 characters, you may not have noticed
a problem. But some users have paths a little longer, like 168
characters, and they report the issue is consistent.

Water111 suggested we remove the 128 character buffer and use the
filename data directly. This fix requires no changes to the Launcher,
just to the kernel, and every mod could stand to benefit from this fix.
2024-11-28 17:14:09 -05:00
..
assets CI: Periodic Controller Database Update (#3757) 2024-11-13 11:16:40 -05:00
common [wip] Jak 3 Overlord (#3567) 2024-07-26 09:42:28 -04:00
external jak3: add discord rpc and fix some decomp (#3500) 2024-05-01 13:49:26 +02:00
graphics custom models: envmap support (#3777) 2024-11-23 14:32:55 +01:00
kernel Remove 128 character buffer causing long filenames to crash gk (#3771) 2024-11-28 17:14:09 -05:00
mips2c [jak3] Fix overlord soundbank unload, fix warnings (#3762) 2024-11-16 15:04:56 -05:00
overlord jak3: fix music not pausing (#3783) 2024-11-27 15:46:41 +01:00
sce [wip] Jak 3 Overlord (#3567) 2024-07-26 09:42:28 -04:00
settings game: cleanup some display settings related code, forbid invalid `game-size` resolutions (#3601) 2024-07-27 22:29:14 -04:00
sound [jak3] Fix overlord soundbank unload, fix warnings (#3762) 2024-11-16 15:04:56 -05:00
system macOS: Fix issue causing only part of the window to be rendered to (#3756) 2024-11-13 11:16:30 -05:00
tools jak3: speedrunner mode (#3761) 2024-11-17 06:45:34 +01:00
CMakeLists.txt Create separate x86_64 and ARM64 macOS targets. (#3760) 2024-11-17 15:59:57 -05:00
main.cpp Support Apple Silicon via Rosetta2 on MacOS Sequoia and Above (#3754) 2024-11-10 11:06:56 -05:00
runtime.cpp [wip] Jak 3 Overlord (#3567) 2024-07-26 09:42:28 -04:00
runtime.h g/j2: Integrate highscores with Speedrun.com/JakSpeedruns.com when speedrunner mode is enabled (#3037) 2023-10-11 20:43:55 -04:00