diff --git a/.editorconfig b/.editorconfig index 0a9643198..774462c29 100644 --- a/.editorconfig +++ b/.editorconfig @@ -36,3 +36,6 @@ indent_size = 2 indent_style = space indent_size = 2 end_of_line = lf + +[*.txt] +end_of_line = lf diff --git a/Packaging/OpenDingux/gkd350h-manual.txt b/Packaging/OpenDingux/gkd350h-manual.txt index 77c4e6b10..94b21da63 100644 --- a/Packaging/OpenDingux/gkd350h-manual.txt +++ b/Packaging/OpenDingux/gkd350h-manual.txt @@ -2,7 +2,6 @@ Copy diabdat.mpq from your CD (or GoG install folder) to: /usr/local/home/.local/share/diasurgical/devilution/ For Hellfire, also copy hellfire.mpq, hfmonk.mpq, hfmusic.mpq, and hfvoice.mpq. -All mpq filenames must be lowercase. Game saves and diablo.ini are located at: /usr/local/home/.local/share/diasurgical/devilution/ diff --git a/Packaging/OpenDingux/retrofw-manual.txt b/Packaging/OpenDingux/retrofw-manual.txt index 3666342ed..ffb5df20d 100644 --- a/Packaging/OpenDingux/retrofw-manual.txt +++ b/Packaging/OpenDingux/retrofw-manual.txt @@ -2,7 +2,6 @@ Copy diabdat.mpq from your CD (or GoG install folder) to: ~/.local/share/diasurgical/ For Hellfire, also copy hellfire.mpq, hfmonk.mpq, hfmusic.mpq, and hfvoice.mpq. -All mpq filenames must be lowercase. Game saves and diablo.ini are located at: ~/.local/share/diasurgical/devilution diff --git a/Packaging/OpenDingux/rg350-manual.txt b/Packaging/OpenDingux/rg350-manual.txt index ca58c748f..564a5a950 100644 --- a/Packaging/OpenDingux/rg350-manual.txt +++ b/Packaging/OpenDingux/rg350-manual.txt @@ -2,7 +2,6 @@ Copy diabdat.mpq from your CD (or GoG install folder) to: /media/home/.local/share/diasurgical/devilution/ For Hellfire, also copy hellfire.mpq, hfmonk.mpq, hfmusic.mpq, and hfvoice.mpq. -All mpq filenames must be lowercase. Game saves and diablo.ini are located at: /media/home/.local/share/diasurgical/devilution/ diff --git a/Packaging/cpi-gamesh/readme.md b/Packaging/cpi-gamesh/readme.md index 3043773e0..85db1ea27 100644 --- a/Packaging/cpi-gamesh/readme.md +++ b/Packaging/cpi-gamesh/readme.md @@ -37,4 +37,4 @@ The mapping is based on the standard GameShell keyboard layout, devilutionX uses | Start + X | Enter + U | Start + Y | quest log | | Start + A | Enter + J | Start + B | spell book | | Select + LK5 | Space + L | Select + R1 | right mouse click | -| Select + A/B/X/Y | Space + J/K/U/I | Select + A/B/X/Y | hot spell | +| Select + A/B/X/Y | Space + J/K/U/I | Select + A/B/X/Y | hot spell | diff --git a/Packaging/nix/README.txt b/Packaging/nix/README.txt index f93e1e843..fda16e1ef 100644 --- a/Packaging/nix/README.txt +++ b/Packaging/nix/README.txt @@ -7,7 +7,7 @@ GitHub: https://github.com/diasurgical/devilutionX # How To Install: - Extract the files in the archive. - Install libsdl2 libsdl2-mixer libsdl2-ttf - - Copy diabdat.mpq from your CD (or GoG install folder) to the DevilutionX install folder. Make sure it is all lowercase. + - Copy diabdat.mpq from your CD (or GoG install folder) to the DevilutionX install folder. - Run ./devilutionx # Multiplayer diff --git a/Packaging/pi/README.txt b/Packaging/pi/README.txt index 73ba98a07..7b08c71af 100644 --- a/Packaging/pi/README.txt +++ b/Packaging/pi/README.txt @@ -7,7 +7,7 @@ GitHub: https://github.com/diasurgical/devilutionX # How To Install: - Extract the files in the archive. - Install libsdl2 libsdl2-mixer libsdl2-ttf - - Copy diabdat.mpq from your CD (or GoG install folder) to the DevilutionX install folder. Make sure it is all lowercase. + - Copy diabdat.mpq from your CD (or GoG install folder) to the DevilutionX install folder. - Run ./devilutionx # Raspberry Pi performance diff --git a/Packaging/switch/README.txt b/Packaging/switch/README.txt index 47ae7c321..0d3b64527 100644 --- a/Packaging/switch/README.txt +++ b/Packaging/switch/README.txt @@ -2,7 +2,7 @@ # How To Install: - Put `devilutionx.nro` and `CharisSILB.ttf` in into `/switch/devilutionx` - - Copy diabdat.mpq from your CD (or GoG install folder) to `/switch/devilutionx`. Make sure it is all lowercase. + - Copy diabdat.mpq from your CD (or GoG install folder) to `/switch/devilutionx`. - Launch `devilutionx.nro`. (Do not use album to launch; see the note below.) - *Note:* Hold R on any installed game and launch it. Do not use album to launch. If you use album, the homebrew will only have a small amount memory available, and the touch keyboard won't work. This is true for all homebrew, not just DevilutionX. diff --git a/README.md b/README.md index 722594b14..3324a413c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Nightly builds | Platform # How To Play: - Download [the latest DevilutionX release](https://github.com/diasurgical/devilutionX/releases), or build from source - - Copy diabdat.mpq from your CD or GoG installation (or [extract it from the GoG installer](https://github.com/diasurgical/devilutionX/wiki/Extracting-the-DIABDAT.MPQ-from-the-GoG-installer)) to the DevilutionX install folder or data folder; make sure it is all lowercase. The DevilutionX install folder is the one that contains the DevilutionX executable. The data folder path may differ depending on OS version and security settings, but will normally be as follows: + - Copy diabdat.mpq from your CD or GoG installation (or [extract it from the GoG installer](https://github.com/diasurgical/devilutionX/wiki/Extracting-the-DIABDAT.MPQ-from-the-GoG-installer)) to the DevilutionX install folder or data folder. The DevilutionX install folder is the one that contains the DevilutionX executable. The data folder path may differ depending on OS version and security settings, but will normally be as follows: - macOS `~/Library/Application Support/diasurgical/devilution` - Linux `~/.local/share/diasurgical/devilution/` - Windows `C:\Users\[username]\AppData\Roaming\diasurgical\devilution` diff --git a/Source/init.cpp b/Source/init.cpp index 6f5479fb4..6b6fde0bb 100644 --- a/Source/init.cpp +++ b/Source/init.cpp @@ -146,7 +146,12 @@ void init_archives() fileinfo.versionstring = gszVersionNumber; init_get_file_info(); - diabdat_mpq = init_test_access("diabdat.mpq", "DiabloCD", 1000, FS_CD); + diabdat_mpq = init_test_access("DIABDAT.MPQ", "DiabloCD", 1000, FS_CD); + if (diabdat_mpq == NULL) { + // DIABDAT.MPQ is uppercase on the original CD and the GOG version. + diabdat_mpq = init_test_access("diabdat.mpq", "DiabloCD", 1000, FS_CD); + } + if (diabdat_mpq == NULL) { spawn_mpq = init_test_access("spawn.mpq", "DiabloSpawn", 1000, FS_PC); if (spawn_mpq != NULL) diff --git a/docs/manual/platforms/gkd350h.md b/docs/manual/platforms/gkd350h.md index 1094cad38..baf2ec9b2 100644 --- a/docs/manual/platforms/gkd350h.md +++ b/docs/manual/platforms/gkd350h.md @@ -5,7 +5,7 @@ ## Installation 1. Copy [devilutionx-gkd350h.opk](https://github.com/diasurgical/devilutionX/releases/latest/download/devilutionx-gkd350h.opk) to `/media/data/apps` or `/media/sdcard/apps/`. -2. Copy `diabdat.mpq` (**all lowercase**) from your CD, or GoG install folder to: +2. Copy `diabdat.mpq` from your CD, or GoG install folder to: ~~~ /usr/local/home/.local/share/diasurgical/devilution/diabdat.mpq diff --git a/docs/manual/platforms/retrofw.md b/docs/manual/platforms/retrofw.md index c458706cb..9c54ce4dd 100644 --- a/docs/manual/platforms/retrofw.md +++ b/docs/manual/platforms/retrofw.md @@ -9,7 +9,7 @@ Demo video: **Requires RetroFW 2.0+.** 1. Copy [devilutionx-retrofw.opk](https://github.com/diasurgical/devilutionX/releases/latest/download/devilutionx-retrofw.opk) to the apps directory. -2. Copy `diabdat.mpq` (**all lowercase**) from your CD, or GoG install folder to: +2. Copy `diabdat.mpq` from your CD, or GoG install folder to: ~~~ ~/.local/share/diasurgical/devilution diff --git a/docs/manual/platforms/rg350.md b/docs/manual/platforms/rg350.md index eed8a608e..615650600 100644 --- a/docs/manual/platforms/rg350.md +++ b/docs/manual/platforms/rg350.md @@ -10,7 +10,7 @@ Demo video: 1. Copy [devilutionx-rg350.opk](https://github.com/diasurgical/devilutionX/releases/latest/download/devilutionx-rg350.opk) to `/media/sdcard/APPS/`. -2. Copy `diabdat.mpq` (**all lowercase**) from your CD, or GoG install folder to: +2. Copy `diabdat.mpq` from your CD, or GoG install folder to: ~~~ /media/home/.local/share/diasurgical/devilution/diabdat.mpq diff --git a/docs/manual/platforms/switch.md b/docs/manual/platforms/switch.md index 92bdd026b..975b53335 100644 --- a/docs/manual/platforms/switch.md +++ b/docs/manual/platforms/switch.md @@ -4,7 +4,7 @@ 1. Download and unzip [devilutionx-switch.zip](https://github.com/diasurgical/devilutionX/releases/latest/download/devilutionx-switch.zip). 2. Put `devilutionx.nro` and `CharisSILB.ttf` in into `/switch/devilutionx` -3. Copy `diabdat.mpq` from your CD (or GoG install folder) to `/switch/devilutionx`. Make sure it is all lowercase. +3. Copy `diabdat.mpq` from your CD (or GoG install folder) to `/switch/devilutionx`. ## Usage diff --git a/docs/manual/platforms/vita.md b/docs/manual/platforms/vita.md index 1041c4e54..1a770f1a5 100644 --- a/docs/manual/platforms/vita.md +++ b/docs/manual/platforms/vita.md @@ -2,7 +2,7 @@ ## How To Play: - Install VPK - - Copy diabdat.mpq from your CD or GoG installation (or [extract it from the GoG installer](https://github.com/diasurgical/devilutionX/wiki/Extracting-the-DIABDAT.MPQ-from-the-GoG-installer)) to the `ux0:/data/diasurgical/devilution/`; make sure it is all lowercase. + - Copy diabdat.mpq from your CD or GoG installation (or [extract it from the GoG installer](https://github.com/diasurgical/devilutionX/wiki/Extracting-the-DIABDAT.MPQ-from-the-GoG-installer)) to the `ux0:/data/diasurgical/devilution/`. # Building from Source