This is the specification for update definition files used by the ghost update system (network update).
Update definition files contain a list of the files that make up a ghost and their hash values. The baseware retrieves the file from the server, compares it with local files, and performs a differential update.
There are currently two valid formats. The legacy format, updates.dau (Version 1), has been deprecated and is omitted.
This format uses byte value 1 as the field delimiter and terminates each line with CRLF.
charset=文字コード名 field to the end of the first entry.Each line has the following format.
ファイルパス\x01MD5ハッシュ\x01拡張フィールド1\x01拡張フィールド2\x01...
\x01 indicates byte value 1. Lines end with CRLF.
ghost/master/descript.txt\x01a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4\x01size=1234\x01date=2024-01-15T12:34:56\x01charset=Shift_JIS\x01
ghost/master/shiori.dll\x01f6e5d4c3b2a1f6e5d4c3b2a1f6e5d4c3\x01size=65536\x01date=2024-01-15T12:34:56\x01
shell/master/surface0.png\x01deadbeefdeadbeefdeadbeefdeadbeef\x01size=32768\x01date=2024-01-15T12:34:56\x01
※ \x01 is actually byte value 1. charset= is appended only to the end of the first entry.
Like updates2.dau, this format uses byte value 1 as the delimiter, but is a text format in which each line has a line-type prefix.
The type of each line is determined by its prefix. Lines that are neither file, nor charset, are ignored.
file, prefix uses the same format as updates2.dau.charset,Shift_JIS
file,ghost/master/descript.txt\x01a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4\x01size=1234\x01date=2024-01-15T12:34:56\x01
file,ghost/master/shiori.dll\x01f6e5d4c3b2a1f6e5d4c3b2a1f6e5d4c3\x01size=65536\x01date=2024-01-15T12:34:56\x01
file,shell/master/surface0.png\x01deadbeefdeadbeefdeadbeefdeadbeef\x01size=32768\x01date=2024-01-15T12:34:56\x01
※ \x01 is actually byte value 1.
These are the field definitions common to the file, lines in updates2.dau and updates.txt.
/) as separators.Written in key=value format. All are optional.
2024-01-15T12:34:56Entries that meet any of the following conditions are treated as invalid.
/ or \ (directory entry)...\ or ../ (to prevent directory traversal).updates2.dau / updates.txt can be generated from a ghost's file list using SSP's "Create update files" feature and similar tools.
Recursively scans directories. The following files are excluded.
FILE_ATTRIBUTE_HIDDEN)noupdate in developer_options.txtghost\master folder exists directly under the directory, the generated update files are also copied there.