Skip to content

Port amiitool to an includable function? #4

Open
@b-

Description

@b-

Hi,

I'm trying to write code that incorporates Amiitool. It would be amazing if it's functionality could be ported to a function, so I could just #include "lib/amiitool/amiitool.h and then do something like

decrypted_dump = amiitool( DECRYPT, key_variable, dump);
modified_dump = dosomestuff(decrypted_dump);
encrypted_dump = amiitool( ENCRYPT, key_variable, modified_dump);

I'm trying to do it myself, but unfortunately I'm very new to C, so any help would be appreciated immensely. To tell you the truth, I'm not even sure my example there doesn't have some glaring error. But I think it should be pretty self explanatory.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions