mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
関数名を変更: GetExternalKeyInfo -> GetEcInfo
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@840 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
ec2707e62b
commit
b2699d291e
@ -54,7 +54,7 @@ nn::Result NinjaCommunicator::GetNsUid(const char* baseUrl, nn::ProgramId progra
|
||||
return HttpCommunicationCore(url);
|
||||
}
|
||||
|
||||
nn::Result NinjaCommunicator::GetExternalKeyInfo(const char* baseUrl, const char* nsUid, const char* countryCode)
|
||||
nn::Result NinjaCommunicator::GetEcInfo(const char* baseUrl, const char* nsUid, const char* countryCode)
|
||||
{
|
||||
if(!nn::ac::IsConnected())
|
||||
{
|
||||
@ -63,7 +63,7 @@ nn::Result NinjaCommunicator::GetExternalKeyInfo(const char* baseUrl, const char
|
||||
}
|
||||
|
||||
std::string url(baseUrl);
|
||||
GenerateUrlForGetExternalKeyInfo(url, nsUid, countryCode);
|
||||
GenerateUrlForEcInfo(url, nsUid, countryCode);
|
||||
|
||||
return HttpCommunicationCore(url);
|
||||
}
|
||||
@ -124,7 +124,7 @@ void NinjaCommunicator::GenerateUrlForNsUid(std::string& url, nn::ProgramId prog
|
||||
NN_LOG("URL=%s\n", url.c_str());
|
||||
}
|
||||
|
||||
void NinjaCommunicator::GenerateUrlForGetExternalKeyInfo(std::string& url, const char* nsUid, const char* countryCode)
|
||||
void NinjaCommunicator::GenerateUrlForEcInfo(std::string& url, const char* nsUid, const char* countryCode)
|
||||
{
|
||||
url.append(countryCode);
|
||||
url.append("/title/");
|
||||
|
||||
@ -32,8 +32,8 @@ public:
|
||||
//! @param[in] url 接続先URL
|
||||
nn::Result GetNsUid(const char* baseUrl, nn::ProgramId programId);
|
||||
|
||||
//! @Ninjaと通信して外部鍵情報を取得します
|
||||
nn::Result GetExternalKeyInfo(const char* baseUrl, const char* nsUid, const char* countryCode);
|
||||
//! @Ninjaと通信してec_infoを取得します
|
||||
nn::Result GetEcInfo(const char* baseUrl, const char* nsUid, const char* countryCode);
|
||||
|
||||
//! @brief 通信結果をバッファに書き込みます。
|
||||
//! @param[out] buf 通信結果を書き込むバッファ
|
||||
@ -45,7 +45,7 @@ public:
|
||||
private:
|
||||
nn::Result HttpCommunicationCore(std::string url);
|
||||
void GenerateUrlForNsUid(std::string& url, nn::ProgramId programId);
|
||||
void GenerateUrlForGetExternalKeyInfo(std::string& url, const char* nsUid, const char* countryCode);
|
||||
void GenerateUrlForEcInfo(std::string& url, const char* nsUid, const char* countryCode);
|
||||
|
||||
//Connectionインスタンス
|
||||
nn::http::Connection m_HttpCon;
|
||||
|
||||
@ -127,7 +127,7 @@ void TestNinjaCommunicator::GetExternalKeyInfo()
|
||||
ConsoleRestore::NinjaCommunicator ninja;
|
||||
|
||||
NN_TEST_ASSERT(
|
||||
ninja.GetExternalKeyInfo("https://ninja.ctr.shop.nintendo.net/ninja/ws/", "50010000041101", "JP").IsSuccess());
|
||||
ninja.GetEcInfo("https://ninja.ctr.shop.nintendo.net/ninja/ws/", "50010000041101", "JP").IsSuccess());
|
||||
|
||||
size_t bufSize = 1024 * 1024; // 1MB
|
||||
common::HeapManager heap(bufSize);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user