Move FFlash to FullFlash (untested)

This commit is contained in:
team-orangeBlue 2024-09-03 13:38:26 +03:00
parent 0d43cbb5ca
commit 97c854c000
2 changed files with 10 additions and 11 deletions

View File

@ -1,4 +1,4 @@
#include "DrcFFlashScreen.hpp" #include "DrcFullFlashScreen.hpp"
#include "Gfx.hpp" #include "Gfx.hpp"
#include "ProcUI.hpp" #include "ProcUI.hpp"
#include "Utils.hpp" #include "Utils.hpp"
@ -15,20 +15,20 @@ namespace {
void SoftwareUpdateCallback(IOSError error, void* arg) void SoftwareUpdateCallback(IOSError error, void* arg)
{ {
DrcFFlashScreen* drcFFlashScreen = static_cast<DrcFFlashScreen*>(arg); DrcFullFlashScreen* drcFullFlashScreen = static_cast<DrcFullFlashScreen*>(arg);
drcFFlashScreen->OnUpdateCompleted(error); drcFullFlashScreen->OnUpdateCompleted(error);
} }
} }
DrcFFlashScreen::~DrcFFlashScreen() DrcFullFlashScreen::~DrcFullFlashScreen()
{ {
} }
void DrcFFlashScreen::Draw() void DrcFullFlashScreen::Draw()
{ {
DrawTopBar("DrcFFlashScreen"); DrawTopBar("DrcFullFlashScreen");
switch (mState) switch (mState)
{ {
@ -87,7 +87,7 @@ void DrcFFlashScreen::Draw()
} }
} }
bool DrcFFlashScreen::Update(VPADStatus& input) // Here is the core logic bool DrcFullFlashScreen::Update(VPADStatus& input) // Here is the core logic
{ {
flashUtils.ReadFirmwareHeader("/vol/external01/lang.bin", mLanguageHeader); flashUtils.ReadFirmwareHeader("/vol/external01/lang.bin", mLanguageHeader);
uint32_t targetVersion = mLanguageHeader.version; // We will read this value later uint32_t targetVersion = mLanguageHeader.version; // We will read this value later
@ -277,7 +277,7 @@ bool DrcFFlashScreen::Update(VPADStatus& input) // Here is the core logic
return true; return true;
} }
void DrcFFlashScreen::OnUpdateCompleted(int32_t result) void DrcFullFlashScreen::OnUpdateCompleted(int32_t result)
{ {
mUpdateComplete = true; mUpdateComplete = true;
mUpdateResult = result; mUpdateResult = result;

View File

@ -3,11 +3,10 @@
#include "Screen.hpp" #include "Screen.hpp"
#include "FlashUtils.hpp" #include "FlashUtils.hpp"
class DrcFFlashScreen : public Screen class DrcFullFlashScreen : public Screen
{ {
public: public:
// DrcLangScreen(); virtual ~DrcFullFlashScreen();
virtual ~DrcFFlashScreen();
void Draw(); void Draw();