bm_exist

From ArchaicPixels: HuC and PCEAS Documentation

Jump to: navigation, search

bm_exist(char* name);    [ 1.5+ / 3.03+ ]

    Check whether a backup ram file exists.
    Note: The return value changed in version 3.03 .
          Before 3.03, it would return the bm_error code ( 0 is OK, != 0 is bad ),
          but this did not match the sense of the function name.
          From 3.03 forward, it returns TRUE (!= 0) if good; FALSE (0) if bad.
          The error type can be retrieved from bm_errno().
    Note2: The name structure is not just an ASCII name; it begins with a
           2-byte "uniqueness ID" which is almost always 00 00, followed by
           10 bytes of ASCII name - which should be padded with trailing
           spaces.
Personal tools