| 903 | } |
| 904 | |
| 905 | void JUTException::appendMapFile(const char *path) |
| 906 | { |
| 907 | if (!path) |
| 908 | { |
| 909 | return; |
| 910 | } |
| 911 | |
| 912 | JSUListIterator<JUTExMapFile> iterator; |
| 913 | for (iterator = sMapFileList.getFirst(); iterator != sMapFileList.getEnd(); ++iterator) |
| 914 | { |
| 915 | if (strcmp(path, iterator->mFileName) == 0) |
| 916 | { |
| 917 | return; |
| 918 | } |
| 919 | } |
| 920 | |
| 921 | JUTExMapFile *mapFile = new JUTExMapFile((char *)path); |
| 922 | sMapFileList.append(&mapFile->mLink); |
| 923 | } |
| 924 | |
| 925 | bool JUTException::queryMapAddress(char *mapPath, u32 address, s32 section_id, u32 *out_addr, u32 *out_size, char *out_line, u32 line_length, bool print, bool begin_with_newline) |
| 926 | { |