Title:			HexenDS
Version:			0.26
Author:			Rich Whitehouse http://www.telefragged.com/thefatal/
Minor updates by:		Sektor 	    http://gtamp.com/DS
Date:				2007-01-30
Additional thanks:	WinterMute and Dovoto
				Chishm (libfat)
				Damian Yerrick (gbfs)
				Lick (libcartreset, LED code)
				Ravensoft for releasing the Hexen code to the public (I wish
				they'd release the JK2/SoF2 source!).
				Everyone else who has constributed to the wealth of knowledge
				available for DS homebrewing
-------------------------------------------------------------------------------------
What you need:
 -The wad from the full version of Hexen (shareware not supported natively by code
  released by Raven, may be integrated in later versions).
 -A DS and a supported slot-1 or slot-2 device

How to use:
- Download dlditool and the DLDI driver for your device from:
  http://chishm.drunkencoders.com/DLDI/index.html
- hexenDS.nds     is for GBAMP, MMD and slot-1 devices
- hexenDS.gba.nds is for slot-2 devices like SCSD and M3CF
- Patch Hexen for your device and then copy it to anywhere on your card.
- Copy a retail hexen.wad (19MB+) to one of the following locations on your card:
  /hexen.wad
  /data/hexen/hexen.wad
- Launch Hexen and hopefully it can find hexen.wad
- On slot-1 devices, it can take 15 seconds to load, there is no progress bar

What is broken:
 - Saving and loading don't work.
  For the time being, a level warp option has been added under the "ds" section of the main
  menu.

Controls:
 -dpad to turn and move.
 -touch screen to look around.
 -A button fires.
 -Y button jumps.
 -L button cycles through inventory.
 -R button cycles through weapons.
 -X button uses objects (doors, switches)
 -X button + dpad to strafe
 -B button uses the selected inventory item.
 -Select toggles the automap
 -Start pauses the game and displays the options menu
 -X+Up/Down on dpad flies up/down while in fly mode.

Touch screen sensitivity can be adjusted in the options menu.  There is a special
ds menu on the main menu which has a gamma option and other ds-specific things
(such as warp and give all cheats).

Source code:
Source is included. There are a lot of warnings I've been too lazy to fix, but
otherwise it's relatively clean. Most changes will be marked with rww or Sektor.

Code was built with:

devkitARM r20 beta
libnds-20060719
www.devkitpro.org

libfat-nds-20061225
http://chishm.drunkencoders.com/libfat/20061225/libfat-nds-20061225.tar.bz2

libcartreset 0.72
http://blog.dev-scene.com/licklick/

Add -D_HEXENDS_GBFS to the arm9 makefile to build the GBFS version

2006-01-30 v0.26 notes - Sektor
-------------------------------
-Updated to DLDI version of libfat for greater device compatiblity
-A and B now work on the menu (previously you had to push Start and Select)
-Added libcartreset - Quit option returns to menu on supported slot-2 devices
-Level warp now works on DS-X (unexpected side effect of newer devkitARM)
-DS LED blinking is stopped at startup because DS-X annoyingly leaves it on
-DS sleeps/powersaves when closed
-Saving and loading are still broken
-I need a better icon

2006-10-27 - v0.25 - Sektor
---------------------------
-Moved from devkitARM r17 to r19b
-Added libfat support. Hexen can finally be played on GBAMP!
-Changed controls so you don't have to use the touch screen
-Saving and loading are still broken

2006-03-04 - v0.2 - Rich Whitehouse
-----------------------------------
-Moved from devkitARM r14 to r17, fixing a lot of common bugs in the process (this
 should take care of the swapped screens problem some people have as well).
-General speedups. Lots of them.
-Low detail mode from Doom incorporated (made low detail versions of all of Hexen's
 rendering functions). ARM versions of col/span low detail rendering also included
 (which are around 13% faster than their GCC O3 versions).
-On-demand texture patch resizing, in order to lessen memory use (should solve any
 remaining Z_Malloc errors, especially with those huge animating textures).
-Fixed the info screen displaying unreadable junk on the main screen (but it's
 still info from the PC version, just think of it as authentic!).
-Added an invert look option in the menus.
-Tweaked touchscreen code more to make it more errorproof (it has always worked fine
 on my hardware, so this isn't 100%).
-When errors occur, the game will display them instead of stopping and spinning in
 place, so that you can go to my forums and yell at me about them (if someone else
 hasn't already).
-Fixed mana bars not rendering empty space on the bottom screen.
-Proper loading screen for the initial load sequence.
-Removed the need for cat from the wad-building process.

2005-08-10 - v0.1 - Rich Whitehouse
--------------------------------
-First release. Includes sound, touchscreen and automap support.