diff --git a/Tools/ReadDolphinMap.idc b/Tools/ReadDolphinMap.idc index a092b4c35d..e5bd82543a 100644 --- a/Tools/ReadDolphinMap.idc +++ b/Tools/ReadDolphinMap.idc @@ -1,36 +1,36 @@ /* ReadDolphinMap.idc - Loads .map files generated by dolphin. - Carl Kenner, 2012 + Loads Dolphin .map files into IDA Pro. + Carl Kenner, 2014 */ #include static main(void) { - auto fh; - auto fname; - auto pusha, popa; - auto start, end; - auto success; - auto count; + auto fh; + auto fname; + auto pusha, popa; + auto start, end; + auto success; + auto count; auto line; auto ea; // column 1 auto name; // column 30 auto p; auto code; - fname = AskFile(0,"*.map","Load a .map file from Dolphin emulator..."); + fname = AskFile(0,"*.map","Load a .map file from Dolphin emulator..."); - fh = fopen(fname, "r"); - if (fh == 0) { + fh = fopen(fname, "r"); + if (fh == 0) { Message("Can't open %s\n", fname); return; - } + } - Message("Loading %s dolphin map file:\n", fname); + Message("Loading %s dolphin map file:\n", fname); - for (count = 0; 1; count++) { + for (count = 0; 1; count++) { line = readstr(fh); if (line == -1) break; @@ -57,6 +57,6 @@ static main(void) } } } - } - Message("Dolphin map file done.\n"); + } + Message("Dolphin map file done.\n"); }