***********************************************************
*			Flash1 Formatter v2
*		  		by tOc
*
*	PSP_MODULE_INFO("Flash1 Formatter", 0x1000, 2, 0);
*
* Members of Team tOc are:
*		EvilSeph, Moca, TUW (The Unique Warrior), Ahadiel and kando
*
*	Credits and Shoutouts:
*	  Team tOc (The Oblivious Coders)
*	  Shoutouts To Dark_Alex, Math, Noobz, x3sphere.
************************************************************

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNINGS:
***READ THESE BEFORE USING THIS PROGRAM***

You can ONLY run this program through Recovery.
Running it through the XMB will just freeze your PSP.

This program only works if "lflash_fatfmt.prx" is located in flash0:/kd,
if "lflash_fatfmt.prx" is not found, it looks in ms0:/lflash_fatfmt.prx
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

We ask that anyone who is reporting this release on a news site, please do not post the contents of the readme.txt.
If anything, a brief description of what the program does and its changelog should be posted.
Thanks in advance.

**********************************************
Installation:
**********************************************
Simply place the PSP folder included in this release in the root of your memory stick (ms0:/).

**********************************************
Usage:
**********************************************
1. Turn off your PSP
2. Turn on your PSP while holding down R to boot into Recovery Mode.
3. Scroll to "Run program at /PSP/GAME/RECOVERY/EBOOT.PBP" and press Cross.
4. Press tOc (Triangle + Circle + Cross) to unlock the program [this is to force people to read this readme.txt]
5. Read the on-screen instructions (details of what each function does is provided below).

**********************************************
Details:
**********************************************
Clean Format:
	Formats flash1 completely which results in you losing all of your settings.
	You'd usually use this feature to start over with a fresh new configuration for your PSP.
	We'll say it again: YOU WILL LOSE ALL YOUR SETTINGS.
	

Using your own dump:
	Formats flash1 and then replaces all the files in flash1 with the dump that you provide.
	All files must be present in an f1 folder on your memory stick (ms0:/f1/).
	You'd usually use this feature if your flash1 corrupted and you don't want to setup your PSP again.

	Two dump formats are supported:
	1. This program's dump made when backing up flash or if you use the dump function.
		 Simply rename the dump made by this program from /dump/ to /f1/ and it will work fine.
		 The format is: ms0:/f1/dic/atokl0.dat
		 								ms0:/f1/net/http/auth.dat
		 								ms0:/f1/net/http/cookie.dat
		 								ms0:/f1/registry/system.dreg
		 								ms0:/f1/registry/system.ireg
		 								ms0:/f1/vsh/theme/wallpaper.bmp
		 								ms0:/f1/config.se

	2. PSP Filer's dump.
	   The format is: ms0:/f1/atokl0.dat
		 								ms0:/f1/auth.dat
		 								ms0:/f1/cookie.dat
		 								ms0:/f1/system.dreg
		 								ms0:/f1/system.ireg
		 								ms0:/f1/wallpaper.bmp
		 								ms0:/f1/config.se

Using the dump this program makes:
	Formats flash1 and then replaces all the files in flash1 with the dump this program made.
  You'd use this feature if you didn't want to have to re-run the program after renaming the /dump/ directory to /f1/.

Dumping flash1 to your memory stick:
	Simply creates a backup of your flash1 and saves it to your memory stick (ms0:/dump/).

  Changelog:
  Jan, 19-20 2007:
  +Changed exit button from Square to R + L.
  +Added function to fully dump f1 to ms0:/dump/.
  +Made backup function dump to ms0:/dump/.
  +General aesthetics fixes... (EvilSeph is picky).
  +Cleaned up code...
  +Revised readme.txt.
  +Included FAQ by Ahadiel.
  +Added two exit screens (one for unlocked, one for locked).
  +Added new readme reading check, since v1 readme.txt was posted on news sites. Read readme.txt for more information.
  +Added checks for missing files from the user dump.
  *Made dump folder and user's supplied dump folder different, to allow for backup of flash1 when choosing option 2.
  *Modified delay till user can press a button after unlocking program from 5s to 3s.
  -Removed automatic removal of dump from flash after formatting.

  Jan, 20-26 2007:
  +Made all options that format flash1 backup flash1 first.
	+Completed GUI (if you can call it that...)
  *Modified user's supplied dump format to include two types (to support PSP Filer's dump).
  *Modified delay till program exits from 10s to 5s
  *Modified program colours from black background + red text to blue background + white text

  + = Added
  - = Removed
  * = Modified
  @ = Planned for next release

Special Features for those that read the whole readme:

Bypasssing backing up of flash1:
Hold L while pressing one of the following buttons:
Cross - Clean format.
Circle - User supplied dump format.

This is useful if your flash1 is corrupted and you didn't want the dump directory created on your memorystick.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Disclaimer:
Although this program has been tested and there should be no chance of bricking,
Team tOc still cannot be held responsible for any damage that may occur, if any.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!