# PhotoChecker

## Overview

`PhotoChecker` is a TWL application that checks the photo region in the TWL system.
Using this tool, you can check whether any illegal files exist that were not written via the TCL library.

## Execution

###

Run it in one of the following ways.

- Use the IS-TWL-DEBUGGER software to run `PhotoChecker.srl`
- Write `PhotoChecker.srl` to a TWL Game Card and then run it

When it runs, the images that exist in and below `photo:` appear on the upper screen, and the filenames appear one after the other on the lower screen. If any item in or under `photo:` is in an illegal state, the upper screen turns red. If everything is in normal state, the upper screen turns green.
The following are considered illegal states.

- When the management file does not exist (perhaps because the Nintendo DSi Cameras have never been activated) but the other files exist
- When the management file is invalid
- When the written file existed without going through the Nintendo DSi Camera and TCL
- When the file written via the Nintendo DSi Camera and TCL was deleted without going through the Nintendo DSi Camera

Specifically, the following error messages are displayed.

None of the files in the management file could be found. | The file(s) registered with the management file could not be found.
No management file was found, but other files are present. | Files and/or directories other than the management file were found, even though the management file does not exist.
One or more files were detected that aren't in the management file. | File(s) not registered with the management file were found.
There are one or more files with illegal path names. | A filename was found that does not conform to the Nintendo DSi Camera naming restrictions.
There are one or more directories with illegal path names. | A directory name was found that does not conform to the Nintendo DSi Camera naming restrictions.
There is a problem with the contents of this management file. | The contents of the management file were invalid.
This picture's dimensions are invalid. | The size of a successfully decoded image was different from the size fixed by the Nintendo DSi Cameras (640x480).
This JPEG file has not been signed. | Either the image did not have a digital signature, or the image had a digital signature but could not be decoded.
Memory allocation error. | This error does not normally occur.
Could not open JPEG file. | This error does not normally occur.
Could not read JPEG file. | This error does not normally occur.
Could not read management file. | This error does not normally occur.
Could not open directory. | This error does not normally occur.
There was an error returning information for a file system entry. | This error does not normally occur.
Could not fully verify the photo region in memory. | This error does not normally occur.

## Location

`$TwlSDK/bin/ARM9-TS/Release/PhotoChecker.srl`

## Revision History

2009/09/01 Revised error messages.
2009/05/18 Added a description of error messages.
2009/03/13 Initial version.

CONFIDENTIAL