Closed agwhitaker93 closed 4 months ago
In the second commit, 100 chars isn't enough to hold the message you're printing into it, so you're writing to undefined memory. Consider PATH_MAX as a buffer size and using snprintf instead of sprintf to limit the write length.
Adds a check to see if the file
$JAVA_HOME/bin/java
exists in the posix HDOS and Runelite launcher functions, using std::filesystem::existsThe error message could probably be better, but this is what it currently looks like:![Screenshot_20240222_015614](https://github.com/Adamcake/Bolt/assets/10724538/3a51b93e-ac4c-4035-bfd0-2217a22a4fe5)