| 1208 | } |
| 1209 | |
| 1210 | static struct debugcodefile *loadcodefile(const TCHAR *path, const TCHAR *name) |
| 1211 | { |
| 1212 | struct debugcodefile *cf = preallocatecodefile(path, name); |
| 1213 | if (!loadcodefiledata(cf)) { |
| 1214 | freecodefile(cf); |
| 1215 | cf = NULL; |
| 1216 | } else { |
| 1217 | console_out_f(_T("Loaded source file '%s' '%s', %d bytes, %d lines\n"), cf->path, cf->name, cf->length, cf->lines); |
| 1218 | } |
| 1219 | return cf; |
| 1220 | } |
| 1221 | |
| 1222 | static uae_u32 maptohunks(uae_u32 offset) |
| 1223 | { |
no test coverage detected