Add a new option to beastpatcher to patch and upload an original firmware file.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22745 a1c6a512-1295-4272-9138-f99709370657
- make main dualboot creation function work on buffers instead of files.
This is to be used in beastpatcher and simplifies error handling a bit.
- prepare for building with beastpatcher.
- export dualboot creation function.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22740 a1c6a512-1295-4272-9138-f99709370657
- separate patching from main function.
- improve cleaning up open files / allocated memory on errors.
- correct check for number of arguments.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22723 a1c6a512-1295-4272-9138-f99709370657