Load Custom Mods First

This commit is contained in:
TheBrokenRail 2022-03-14 20:49:56 -04:00
parent 03312f44b6
commit 3048b3bf50
3 changed files with 5 additions and 5 deletions

View File

@ -3,6 +3,7 @@
**2.3.1**
* Internal Refactor Of ``libreborn``
* Remove Use Of ``/bin/sh``
* Load Custom Mods First
**2.3.0**
* Switch To AppImage For Packaging

View File

@ -242,22 +242,22 @@ void bootstrap(int argc, char *argv[]) {
PRESERVE_ENVIRONMENTAL_VARIABLE("LD_PRELOAD");
char *new_ld_preload = NULL;
// Built-In Mods
// ~/.minecraft-pi/mods
{
// Get Mods Folder
char *mods_folder = NULL;
safe_asprintf(&mods_folder, "%s/mods/", binary_directory);
safe_asprintf(&mods_folder, "%s" HOME_SUBDIRECTORY_FOR_GAME_DATA "/mods/", getenv("HOME"));
// Load Mods From ./mods
load(&new_ld_preload, mods_folder);
// Free Mods Folder
free(mods_folder);
}
// ~/.minecraft-pi/mods
// Built-In Mods
{
// Get Mods Folder
char *mods_folder = NULL;
safe_asprintf(&mods_folder, "%s" HOME_SUBDIRECTORY_FOR_GAME_DATA "/mods/", getenv("HOME"));
safe_asprintf(&mods_folder, "%s/mods/", binary_directory);
// Load Mods From ./mods
load(&new_ld_preload, mods_folder);
// Free Mods Folder

View File

@ -55,7 +55,6 @@ const packageExclusions = [
'*systemd*',
'dconf-service',
'dconf-gsettings-backend',
'libgnutls*',
'librest-*',
'libcups2',
'libcolord2',