Skip to content

Commit

Permalink
fix merge conflict + add to hxp
Browse files Browse the repository at this point in the history
  • Loading branch information
cyn0x8 committed Sep 28, 2024
1 parent 83ccc34 commit 28d1686
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions project.hxp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ class Project extends HXProject {
configureHaxelibs();
configureAssets();
configureIcons();
configureAL();
}

/**
Expand Down Expand Up @@ -705,6 +706,15 @@ class Project extends HXProject {
addIcon("art/iconOG.png");
}

/**
* For desktop platforms, copy the OpenALSoft config file into the build to improve audio quality.
*/
function configureAL() {
if (isDesktop()) {
addAsset("alsoft.txt", 'plugins/alsoft.${isWindows() ? "ini" : "conf"}', "default", false);
}
}

//
// HELPER FUNCTIONS
// Easy functions to make the code more readable.
Expand Down
2 changes: 1 addition & 1 deletion source/funkin/audio/ALConfig.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ALConfig
configPath += "/plugins/alsoft.ini";
#elseif mac
configPath = Path.directory(configPath) + "/Resources/plugins/alsoft.conf";
#elseif linux
#else
configPath += "/plugins/alsoft.conf";
#end

Expand Down

0 comments on commit 28d1686

Please sign in to comment.