mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Convert spaces to tabs in IDA Pro script.
This commit is contained in:
parent
e246aaf419
commit
aa850c8eee
@ -1,36 +1,36 @@
|
|||||||
/* ReadDolphinMap.idc
|
/* ReadDolphinMap.idc
|
||||||
|
|
||||||
Loads .map files generated by dolphin.
|
Loads Dolphin .map files into IDA Pro.
|
||||||
Carl Kenner, 2012
|
Carl Kenner, 2014
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <idc.idc>
|
#include <idc.idc>
|
||||||
|
|
||||||
static main(void)
|
static main(void)
|
||||||
{
|
{
|
||||||
auto fh;
|
auto fh;
|
||||||
auto fname;
|
auto fname;
|
||||||
auto pusha, popa;
|
auto pusha, popa;
|
||||||
auto start, end;
|
auto start, end;
|
||||||
auto success;
|
auto success;
|
||||||
auto count;
|
auto count;
|
||||||
auto line;
|
auto line;
|
||||||
auto ea; // column 1
|
auto ea; // column 1
|
||||||
auto name; // column 30
|
auto name; // column 30
|
||||||
auto p;
|
auto p;
|
||||||
auto code;
|
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");
|
fh = fopen(fname, "r");
|
||||||
if (fh == 0) {
|
if (fh == 0) {
|
||||||
Message("Can't open %s\n", fname);
|
Message("Can't open %s\n", fname);
|
||||||
return;
|
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);
|
line = readstr(fh);
|
||||||
if (line == -1)
|
if (line == -1)
|
||||||
break;
|
break;
|
||||||
@ -57,6 +57,6 @@ static main(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Message("Dolphin map file done.\n");
|
Message("Dolphin map file done.\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user