[Scummvm-tracker] [ScummVM :: Bugs] #13470: COMMON: Data format issues when reading and writing doubles from file streams

ScummVM :: Bugs trac at scummvm.org
Sat May 7 14:31:29 UTC 2022


#13470: COMMON: Data format issues when reading and writing doubles from file
streams
------------------------+--------------------
Reporter:  ccawley2011  |      Owner:  (none)
    Type:  defect       |     Status:  new
Priority:  blocker      |  Component:  Common
 Version:               |   Keywords:
    Game:               |
------------------------+--------------------
 Currently, the readDouble and writeDouble functions don't handle the
 following cases:

 - The RISC OS port (and possibly others) use FPA word order, which means
 that doubles have little endian byte order and big endian word order. Some
 background on this can be found here: https://github.com/libsdl-
 org/SDL/pull/5607
 - The Dreamcast and Nintendo DS ports both treat doubles as being
 equivalent to floats, which means that doubles are 32-bit instead of
 64-bit on those platforms.

 This results in broken movement in Full Pipe, and save files that are
 incompatible between different platforms in Versailles 1685 and Hyperspace
 Delivery Boy.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/13470>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list