Loader: Updated read methods to be const
- Required "file" handle to be made local and explicitly opened/closed as needed
This commit is contained in:
parent
1ccdb6a769
commit
2c62d92551
5 changed files with 76 additions and 65 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace FileSys {
|
||||
|
||||
Archive_RomFS::Archive_RomFS(Loader::AppLoader& app_loader) {
|
||||
Archive_RomFS::Archive_RomFS(const Loader::AppLoader& app_loader) {
|
||||
// Load the RomFS from the app
|
||||
if (Loader::ResultStatus::Success != app_loader.ReadRomFS(raw_data)) {
|
||||
WARN_LOG(FILESYS, "Unable to read RomFS!");
|
||||
|
|
|
@ -19,7 +19,7 @@ namespace FileSys {
|
|||
/// File system interface to the RomFS archive
|
||||
class Archive_RomFS : public Archive {
|
||||
public:
|
||||
Archive_RomFS(Loader::AppLoader& app_loader);
|
||||
Archive_RomFS(const Loader::AppLoader& app_loader);
|
||||
~Archive_RomFS();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue