mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
SWORD1: Fix speech endianness heuristic on big endian systems
This should fix bug #6720.
This commit is contained in:
parent
2a75e9f1ad
commit
4afb40e16f
@ -156,7 +156,12 @@ void Sound::checkSpeechFileEndianness() {
|
||||
be_diff_sum /= be_cpt;
|
||||
delete [] data;
|
||||
// Set the big endian flag
|
||||
// uncompreesSpeech gives data in little endian, so on big endian systems the heuristic is actually reversed
|
||||
#ifdef SCUMM_BIG_ENDIAN
|
||||
_bigEndianSpeech = (le_diff_sum < be_diff_sum);
|
||||
#else
|
||||
_bigEndianSpeech = (be_diff_sum < le_diff_sum);
|
||||
#endif
|
||||
if (_bigEndianSpeech)
|
||||
debug(6, "Mac version: using big endian speech file");
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user