In the first stage (Akbar) there are four guest rooms in Areliano's house. Faith leads Rahma to the last one to continue the story, but there is a cheat you can do prior to this in the three other rooms. From the stairs in the house, open the doors of each numbered room a set number of times to do the cheat.
1st Room from stairs: open 3 times, close 2 times.
2nd Room from stairs: open 6 times, close 5 times.
3rd Room from stairs: open 9 times, close 8 times.
If you open/close a door over the limit, the code is invalid and you will need to restart from a checkpoint. If done correctly, a sword will appear on Rahma's back and his weapon inventory will have 99 pistols. Although the sword will change into the secret sword found on Akbar upon completing the level, the pistols are kept in the inventory, making future combat easier.
Alternate ending - Collect all treasures and secret swords
Level select - Beat game once
Survival mode - Beat game once