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:
nakeee 2009-06-18 20:47:02 +00:00
parent b92be31df0
commit d91389fea2
1 changed files with 4 additions and 5 deletions

View File

@ -127,10 +127,10 @@ void CodeToHeader(const std::vector<u16> &code, std::string _filename,
SplitPath(_filename, NULL, &filename, NULL); SplitPath(_filename, NULL, &filename, NULL);
header.append("const char* UCODE_NAMES[NUM_UCODES] = {\"%s\"};\n\n", filename.c_str()); header.append("const char* UCODE_NAMES[NUM_UCODES] = {\"%s\"};\n\n", filename.c_str());
header.append("#ifndef _MSCVER\n"); 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(buffer);
header.append("#else\n"); 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(buffer);
header.append("#endif\n\n"); 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("};\n\n");
header.append("#ifndef _MSCVER\n"); header.append("#ifndef _MSCVER\n");
sprintf(buffer, "const unsigned short %s[NUM_UCODES][0x1000] = {\n", name); header.append("const unsigned short dsp_ucode[NUM_UCODES][0x1000] = {\n");
header.append(buffer);
header.append("#else\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(buffer);
header.append("#endif\n\n"); header.append("#endif\n\n");