dspcodeutil now name is always dsp_code as needed by main_spy.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3492 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b92be31df0
commit
d91389fea2
|
@ -127,10 +127,10 @@ void CodeToHeader(const std::vector<u16> &code, std::string _filename,
|
|||
SplitPath(_filename, NULL, &filename, NULL);
|
||||
header.append("const char* UCODE_NAMES[NUM_UCODES] = {\"%s\"};\n\n", filename.c_str());
|
||||
header.append("#ifndef _MSCVER\n");
|
||||
sprintf(buffer, "const unsigned short %s[NUM_UCODES][0x1000] = {\n", name);
|
||||
sprintf(buffer, "const unsigned short dsp_code[NUM_UCODES][0x1000] = {\n", name);
|
||||
header.append(buffer);
|
||||
header.append("#else\n");
|
||||
sprintf(buffer, "const unsigned short %s[NUM_UCODES][0x1000] __attribute__ ((aligned (64))) = {\n", name);
|
||||
sprintf(buffer, "const unsigned short dsp_code[NUM_UCODES][0x1000] __attribute__ ((aligned (64))) = {\n", name);
|
||||
header.append(buffer);
|
||||
header.append("#endif\n\n");
|
||||
|
||||
|
@ -171,10 +171,9 @@ void CodesToHeader(const std::vector<u16> *codes, const std::vector<std::string>
|
|||
}
|
||||
header.append("};\n\n");
|
||||
header.append("#ifndef _MSCVER\n");
|
||||
sprintf(buffer, "const unsigned short %s[NUM_UCODES][0x1000] = {\n", name);
|
||||
header.append(buffer);
|
||||
header.append("const unsigned short dsp_ucode[NUM_UCODES][0x1000] = {\n");
|
||||
header.append("#else\n");
|
||||
sprintf(buffer, "const unsigned short %s[NUM_UCODES][0x1000] __attribute__ ((aligned (64))) = {\n", name);
|
||||
header.append("const unsigned short dsp_ucode[NUM_UCODES][0x1000] __attribute__ ((aligned (64))) = {\n");
|
||||
header.append(buffer);
|
||||
header.append("#endif\n\n");
|
||||
|
||||
|
|
Loading…
Reference in New Issue