A LR2 mod adding FLAC files as keysound fallback for LR2, should work with any LR2 version (tested on LR2HD and LR2SD). This is required for some BMSes which use FLAC files for keysounds but defines them as WAV files in the BMS, making them unable to work with LR2 out of the box. As LR2 actually supports FLAC out of the box, this mod just adds flac files as another fallback extension in addition to ogg and wav when loading a BMS.
The old xdelta patch is also provided for people who prefer patching their installation of LR2 (not recommended, may cause instabilities).
LR2Flac is provided as a DLL to inject into LR2. lr2_chainload is recommended as it allows to automatically load LR2Flac during startup without using any extra binaries. To use LR2Flac with lr2_chainload, follow the steps below:
- Download the latest release of lr2_chainload here
- Extract the contents of the archive in LR2's folder
- Download the latest release of LR2Flac here
- Put the DLL file somewhere on your system (it doesn't have to be in LR2's folder)
- Edit
chainload.txtin LR2's folder and add a line with the path to LR2Flac's DLL. For example, if placing theLR2Flac.dllfile into LR2's folder, thechainload.txtfile would be similar to the following:
#
# lr2_chainload
# https://github.com/SayakaIsBaka/lr2_chainload
#
# This file is read during startup to automatically load additional libraries.
# Each line should contain either a relative or full path to a library file.
LR2Flac.dll
- Run the game. BMS files using FLAC should now play properly.
You may also use LR2Flac by injecting the DLL into LR2's process with your favorite DLL injector.
- Download LR2Flac.xdelta
- Patch LR2body.exe / LRHbody.exe using Delta Patcher / xdelta / Hack64 Web Patcher or any xdelta-compatible patcher out there
- Profit!