mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Initial work on patch list
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "common.h"
|
||||
#include "ApListFactory.h"
|
||||
|
||||
ApList* ApListFactory::CreateFromFile(const TCHAR *path)
|
||||
std::unique_ptr<ApList> ApListFactory::CreateFromFile(const TCHAR* path)
|
||||
{
|
||||
FIL file;
|
||||
if (f_open(&file, path, FA_OPEN_EXISTING | FA_READ) != FR_OK)
|
||||
@@ -20,5 +20,5 @@ ApList* ApListFactory::CreateFromFile(const TCHAR *path)
|
||||
}
|
||||
f_close(&file);
|
||||
|
||||
return new ApList(std::move(entries), entryCount);
|
||||
return std::make_unique<ApList>(std::move(entries), entryCount);
|
||||
}
|
||||
Reference in New Issue
Block a user