After looking at the source code , currently the file format start by a revision number and metadata, without indicating the kind of file.
A "Magic Number" is generally a 4 character ASCII text at start of the file that help to find it and determine the kind of file. Currently if the file extension is renamed and changed, there are no mean to know which kind of file its. Recovery and analysis tools also use magic number to discover files, for example PhotoRec (now inside TestDisk) that help to recover files on corrupted or (quick only) formatted filesystems. It will probably be used in the futur by software that want to reopen old file format no more maintained, as that's the case for 8-bit/16-bit era computers file format :).
Some examples of few Magic Numbers, the number and ASCII readability can vary depending on files:
Feature/enhancement description:
After looking at the source code , currently the file format start by a revision number and metadata, without indicating the kind of file.
A "Magic Number" is generally a 4 character ASCII text at start of the file that help to find it and determine the kind of file. Currently if the file extension is renamed and changed, there are no mean to know which kind of file its. Recovery and analysis tools also use magic number to discover files, for example PhotoRec (now inside TestDisk) that help to recover files on corrupted or (quick only) formatted filesystems. It will probably be used in the futur by software that want to reopen old file format no more maintained, as that's the case for 8-bit/16-bit era computers file format :).
Some examples of few Magic Numbers, the number and ASCII readability can vary depending on files:
Today, your files are created by Godot and contains the Godot magic number at start and end:
This will help to know that is a Godot generated file, recover the whole file, but not to know which Godot application is linked to this file format.