IndieRunner::GrandCentral(3p)

NAME
IndieRunner::GrandCentral - heuristics to determine an IndieRunner game engine

DESCRIPTION
Heuristic subroutines to analyze files for a match with game engines known to IndieRunner.

SUBROUTINES

  find_bytes( $file, $bytes )
Scan a file for the (byte)string $bytes. Returns boolean (1 if found, otherwise 0).

  identify_engine( $file )
Compare filename against known globs for IndieRunner engines and return the matching engine. Returns a hash with directory as key and identified engine as value. Set $maxdepth to search subdirectories ("undef" to not set any maximum depth). Set $all to 1 to not stop after the first match. Returns an empty hash if no match was found.

  identify_engine_thorough( $file )
Compare file content against known bytestrings for IndieRunner engines, using find_bytes. Returns the matching engine, or an empty hash if no match was found.

SEE ALSO
IndieRunner

AUTHOR
Thomas Frohwein <thfr@cpan.org>

COPYRIGHT
Copyright 2022-2024 by Thomas Frohwein <thfr@cpan.org>.

This program is free software; you can redistribute it and/or modify it under the ISC license.