diff --git a/INSTALL_linux.md b/INSTALL_linux.md new file mode 100644 index 0000000..5add5c2 --- /dev/null +++ b/INSTALL_linux.md @@ -0,0 +1,30 @@ +# Installation + +## Dependencies + +Arch Linux: +```bash +pacman -Sy mingw-w64-gcc mingw-w64-binutils +``` + +## Building + +```bash +git clone https://github.com/galaxyhaxz/devilution +cd devilution +cp /path/to/diablo_game_dir/diabloui.dll . +cp /path/to/diablo_game_dir/storm.dll . +make +``` + +## Install + +```bash +cp devilution.exe /path/to/diablo_game_dir/ +``` + +## Run + +```bash +wine devilution.exe +``` diff --git a/INSTALL_windows.md b/INSTALL_windows.md new file mode 100644 index 0000000..4abfe69 --- /dev/null +++ b/INSTALL_windows.md @@ -0,0 +1,27 @@ +# Installation + +## Dependencies + +* Install [MSYS2](https://www.msys2.org/) + +```bash +# Start the *MSYS2 MinGW 32-bit* terminal. +pacman -Sy git make mingw-w64-i686-gcc mingw-w64-i686-binutils +ln -s /mingw32/i686-w64-mingw32/bin/dlltool.exe /usr/bin/i686-w64-mingw32-dlltool.exe +``` + +## Building + +```bash +git clone https://github.com/galaxyhaxz/devilution +cd devilution +cp /path/to/diablo_game_dir/diabloui.dll . +cp /path/to/diablo_game_dir/storm.dll . +make +``` + +## Install + +```bash +cp devilution.exe /path/to/diablo_game_dir/ +``` diff --git a/README.md b/README.md index 6bbf50f..588d65a 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,11 @@ There are two configurations: Debug and Release. The Debug version will compile There are currently three options defined in types.h. You can compile without copy protection, compile with debugger support, and compile with CPU throttling. The last option will sleep the main program loop to keep Diablo from using 100% CPU on modern computers. +For further installation and run instructions, refer to the respective documentation: + +* [Linux installation](INSTALL_linux.md) +* [Windows installation](INSTALL_windows.md) + # Contributing Currently there are a few issues with the decompiled code. Most of them are outlined in the TODO file. If you wish to contribute, small changes to help fix as many issues possible until everything is perfect and identical to the original game. Currently only Diablo.exe has been reversed, I have not yet started on the other files. Those are: - Battle.snp: code for battle.net, outdated protocol and not worth the time.