chenxiaolong / DualBootPatcher

Patches Android ROMs for dual boot support
https://dbp.noobdev.io
Other
528 stars 466 forks source link

libmbcommon: Revamp mb::File API #1320

Closed chenxiaolong closed 5 years ago

chenxiaolong commented 5 years ago

Make mb::File an abstract class. It no longer does any type of state management. Counterintuitively, this actually makes the subclasses easier to implement. More than half of mb::File-related code has been cut out due to this change.

This also drops the mb::CallbackFile class since it's easy enough to subclass mb::File.

Signed-off-by: Andrew Gunnerson andrewgunnerson@gmail.com