[File] [PATCH] remove header byte detection for Civ 6

Christos Zoulas christos at zoulas.com
Sat Feb 1 16:32:43 UTC 2020


Done,

christos

> On Feb 1, 2020, at 10:49 AM, Benjamin Lowry <ben at ben.gmbh> wrote:
> 
> Apparently the magic bytes in Civ 6 save headers change with game
> updates. I don't have time to constantly fix those, so let's just
> remove the save type detection and fall back to the "CIV6" at the start
> of the file.
> ---
> magic/Magdir/games | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/magic/Magdir/games b/magic/Magdir/games
> index f728ae03..9103fc0c 100644
> --- a/magic/Magdir/games
> +++ b/magic/Magdir/games
> @@ -312,8 +312,4 @@
>> 4	byte	0x01		Sid Meier's Civilization V replay data,
>>> 12	regex	[0-9a-z.]+	saved by game version %s
> 
> -0	string	CIV6
> ->8	byte	0x20		Sid Meier's Civilization VI singleplayer saved game
> ->8	byte	0x16		Sid Meier's Civilization VI singleplayer saved configuration
> ->8	byte	0x1F		Sid Meier's Civilization VI multiplayer saved game
> ->8	byte	0x11		Sid Meier's Civilization VI multiplayer saved configuration
> +0	string	CIV6		Sid Meier's Civilization VI saved game
> --
> 2.24.1
> 
> --
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20200201/4921a97f/attachment.asc>


More information about the File mailing list