mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
NORを移行しない場合はクリアしておくように
吸い出したNORを書き込んだ後はacを止めてNORに書き込まれないように git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@341 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
0a3ec6a87e
commit
3ad1f0eeb8
@ -33,6 +33,7 @@
|
|||||||
#include <nn/nwm/CTR/nwm_InfraAPI.h>
|
#include <nn/nwm/CTR/nwm_InfraAPI.h>
|
||||||
#include <nn/mcu.h>
|
#include <nn/mcu.h>
|
||||||
#include <nn/drivers/mcu/CTR/driverMcuRegisterMap.h>
|
#include <nn/drivers/mcu/CTR/driverMcuRegisterMap.h>
|
||||||
|
#include <nn/ndm.h>
|
||||||
|
|
||||||
#include "FileName.h"
|
#include "FileName.h"
|
||||||
#include "Importer.h"
|
#include "Importer.h"
|
||||||
@ -796,6 +797,15 @@ nn::Result ImportNorData()
|
|||||||
reinterpret_cast<common::NtrNorData*> (buf)->NtrWiFiSetting, common::NTR_WIFI_SETTING_SIZE);
|
reinterpret_cast<common::NtrNorData*> (buf)->NtrWiFiSetting, common::NTR_WIFI_SETTING_SIZE);
|
||||||
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result);
|
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// クリアしておく
|
||||||
|
result = nn::cfg::nor::CTR::ClearTwlWifiSetting();
|
||||||
|
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result);
|
||||||
|
|
||||||
|
result = nn::cfg::nor::CTR::ClearNtrWifiSetting();
|
||||||
|
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
common::HeapManager::GetHeap()->Free(buf);
|
common::HeapManager::GetHeap()->Free(buf);
|
||||||
@ -1839,6 +1849,10 @@ nn::Result ImportData()
|
|||||||
{
|
{
|
||||||
init = false;
|
init = false;
|
||||||
|
|
||||||
|
// インポート前にACを止める
|
||||||
|
result = nn::ndm::SuspendScheduler();
|
||||||
|
NN_UTIL_RETURN_IF_FAILED(result);
|
||||||
|
|
||||||
// NANDのごみを削除する
|
// NANDのごみを削除する
|
||||||
Cleanup();
|
Cleanup();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user