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** **2.3.1**
* Internal Refactor Of ``libreborn`` * Internal Refactor Of ``libreborn``
* Remove Use Of ``/bin/sh`` * Remove Use Of ``/bin/sh``
* Load Custom Mods First
**2.3.0** **2.3.0**
* Switch To AppImage For Packaging * Switch To AppImage For Packaging

View File

@ -242,22 +242,22 @@ void bootstrap(int argc, char *argv[]) {
PRESERVE_ENVIRONMENTAL_VARIABLE("LD_PRELOAD"); PRESERVE_ENVIRONMENTAL_VARIABLE("LD_PRELOAD");
char *new_ld_preload = NULL; char *new_ld_preload = NULL;
// Built-In Mods // ~/.minecraft-pi/mods
{ {
// Get Mods Folder // Get Mods Folder
char *mods_folder = NULL; 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 Mods From ./mods
load(&new_ld_preload, mods_folder); load(&new_ld_preload, mods_folder);
// Free Mods Folder // Free Mods Folder
free(mods_folder); free(mods_folder);
} }
// ~/.minecraft-pi/mods // Built-In Mods
{ {
// Get Mods Folder // Get Mods Folder
char *mods_folder = NULL; 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 Mods From ./mods
load(&new_ld_preload, mods_folder); load(&new_ld_preload, mods_folder);
// Free Mods Folder // Free Mods Folder

View File

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