Convert spaces to tabs in IDA Pro script.

This commit is contained in:
CarlKenner 2014-12-15 11:11:35 +10:30
parent e246aaf419
commit aa850c8eee

View File

@ -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 <idc.idc>
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");
}