# 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.

There is no file which suited the management file. | The file(s) registered with the management file could not be found.
There is no management file and there are other files. | Files and/or directories other than the management file were found, even though the management file does not exist.
There is a file which is not in the management file. | File(s) not registered with the management file were found.
There is a file of an illegal pathname. | A filename was found that does not conform to the Nintendo DSi Camera naming restrictions.
There is a directory of an illegal pathname. | A directory name was found that does not conform to the Nintendo DSi Camera naming restrictions.
This management file is not right. | The contents of the management file were invalid.
This picture is illegal size. | The size of a successfully decoded image was different from the size fixed by the Nintendo DSi Cameras (640x480).
The signature is not added to this JPEG file. | 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.
Can not open JPEG file. | This error does not normally occur.
Can not read JPEG file. | This error does not normally occur.
Can not read management file. | This error does not normally occur.
Can not open directory. | This error does not normally occur.
The return of entry information went wrong. | This error does not normally occur.
Does not reach so far. | This error does not normally occur.

## Location

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

## Revision History

2009/05/18 Added error message descriptions.
2009/03/16 Initial version.

CONFIDENTIAL