mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 19:13:52 +00:00
Reads the first 4 bytes of any file, looks the magic up in the format table, and reports: format name, file extension, category, plus the standard catalog header fields (version, catalog name, entry count) for any of the 33 catalog formats that share the magic+version+name+entryCount layout. Also suggests the matching --info-* flag so users who receive .w* files without context can route to the right inspector in one step. World/asset formats (WOM/WOB/WHM/WOT/WOW) are recognized by magic but the catalog-style header probe is skipped (their layouts differ). Returns exit 1 + 'unrecognized' message on non-Wowee files. Supports --json variant for tooling integration.
11 lines
196 B
C++
11 lines
196 B
C++
#pragma once
|
|
|
|
namespace wowee {
|
|
namespace editor {
|
|
namespace cli {
|
|
|
|
bool handleInfoMagic(int& i, int argc, char** argv, int& outRc);
|
|
|
|
} // namespace cli
|
|
} // namespace editor
|
|
} // namespace wowee
|