diff options
| author | Glenn Rice <glennricster@gmail.com> | 2011-01-13 02:05:58 +0000 |
|---|---|---|
| committer | Glenn Rice <glennricster@gmail.com> | 2011-01-13 02:05:58 +0000 |
| commit | c6e0ea59b98f9484f8525badacd30cdef3857ba4 (patch) | |
| tree | 6acfdc448caa420412b4ac3dc7e8d3685abff49d /Source/Core/DSPCore/Src/DSPCore.cpp | |
| parent | be5c7322540c2d65ffe81141dfacbcfdef2d09bf (diff) | |
Removed my previous PanicAlert translation hack. Fixed with a better method suggested by BhaaL. The translation is done by a callback in the MsgHandler routine that is set at program start. Added macros PanicAlertT, SuccessAlertT, PanicYesNoT, and AskYesNoT that are identical to the non T versions except those strings will be added by gettext to the po files to be translated. These can and should be used anywhere in the code for strings that should be translated.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6838 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DSPCore.cpp')
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPCore.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DSPCore/Src/DSPCore.cpp b/Source/Core/DSPCore/Src/DSPCore.cpp index 92e48da47e..cb0aeebd11 100644 --- a/Source/Core/DSPCore/Src/DSPCore.cpp +++ b/Source/Core/DSPCore/Src/DSPCore.cpp @@ -50,7 +50,7 @@ static bool LoadRom(const char *fname, int size_in_words, u16 *rom) size_t read_bytes = fread(rom, 1, size_in_bytes, pFile); if (read_bytes != size_in_bytes) { - PanicAlert("ROM %s too short : %i/%i", fname, (int)read_bytes, (int)size_in_bytes); + PanicAlertT("ROM %s too short : %i/%i", fname, (int)read_bytes, (int)size_in_bytes); fclose(pFile); return false; } @@ -62,7 +62,7 @@ static bool LoadRom(const char *fname, int size_in_words, u16 *rom) return true; } - PanicAlert("Failed to load DSP Rom : %s",fname); + PanicAlertT("Failed to load DSP Rom : %s",fname); // Always keep ROMs write protected. WriteProtectMemory(g_dsp.irom, size_in_bytes, false); return false; |
