mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
Releaseビルドでデバッグ出力を行わないように
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@313 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
parent
20dbb4dc74
commit
2e62667703
@ -853,7 +853,7 @@ bool ExistsIvsDirectory(std::string& ivsRoot)
|
||||
result = dir.TryInitialize(common::SD_NINTENDO_3DS_ROOT_PATH);
|
||||
if(result.IsFailure())
|
||||
{
|
||||
nn::dbg::PrintResult(result);
|
||||
NN_DBG_PRINT_RESULT(result);
|
||||
common::SdMountManager::Unmount();
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -37,7 +37,7 @@ do { \
|
||||
nn::nim::Shop::GetCustomerSupportCode(&csc); \
|
||||
COMMON_LOGGER("CSCode: %d\n", csc); \
|
||||
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result); \
|
||||
nn::dbg::PrintResult(result); \
|
||||
NN_DBG_PRINT_RESULT(result); \
|
||||
COMMON_LOGGER_DEBUG("Result = %08X\n", result.GetPrintableBits()); \
|
||||
s_ShopResult = result; \
|
||||
return; \
|
||||
|
||||
@ -42,7 +42,7 @@ do { \
|
||||
nn::nim::Updater::GetCustomerSupportCode(&csc)); \
|
||||
COMMON_LOGGER("CSCode: %d\n", csc); \
|
||||
COMMON_LOGGER_RESULT_IF_FAILED_WITH_LINE(result); \
|
||||
nn::dbg::PrintResult(result); \
|
||||
NN_DBG_PRINT_RESULT(result); \
|
||||
COMMON_LOGGER_DEBUG("Result = %08X\n", result.GetPrintableBits()); \
|
||||
s_Result = result; \
|
||||
goto LABEL_FINALIZE; \
|
||||
|
||||
@ -57,9 +57,7 @@ void CommonLogger::Print(const char* fmt, ...)
|
||||
|
||||
va_start(vlist, fmt);
|
||||
|
||||
#ifdef NN_BUILD_VERBOSE
|
||||
nn::dbg::detail::VPrintf(fmt, vlist);
|
||||
#endif
|
||||
NN_LOGV(fmt, vlist);
|
||||
GetSdInstance()->Print(fmt, vlist);
|
||||
GetConsoleInstance()->AddText(fmt, vlist);
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
|
||||
#define COMMON_LOGGER( ... ) (void)common::Logger::GetLoggerInstance()->Print(__VA_ARGS__)
|
||||
#define COMMON_LOGGER_RESULT(result, func) \
|
||||
(void)nn::dbg::PrintResult(result); \
|
||||
NN_DBG_PRINT_RESULT(result); \
|
||||
(void)common::Logger::GetLoggerInstance()->PrintResultSdLog("Func = %s\n", func); \
|
||||
(void)common::Logger::GetLoggerInstance()->PrintResultSdLog("Result = %X\n", result.GetPrintableBits()); \
|
||||
|
||||
@ -34,9 +34,9 @@
|
||||
#endif // ifndef NN_SWITCH_DISABLE_DEBUG_PRINT else
|
||||
|
||||
#define COMMON_LOGGER_RESULT_WITH_LINE(result, line, func) \
|
||||
(void)nn::dbg::detail::Printf("%s\n", func); \
|
||||
(void)nn::dbg::detail::Printf("%d\n", line); \
|
||||
(void)nn::dbg::PrintResult(result); \
|
||||
NN_LOG("%s\n", func); \
|
||||
NN_LOG("%d\n", line); \
|
||||
NN_DBG_PRINT_RESULT(result); \
|
||||
(void)common::Logger::GetLoggerInstance()->PrintResultSdLog("Func = %s\n", func); \
|
||||
(void)common::Logger::GetLoggerInstance()->PrintResultSdLog("line = %d\n", line); \
|
||||
(void)common::Logger::GetLoggerInstance()->PrintResultSdLog("Result = %X\n", result.GetPrintableBits()); \
|
||||
|
||||
@ -46,7 +46,7 @@ void PrintResultIfFailed(nn::Result result, u32 line = 0)
|
||||
{
|
||||
NN_LOG("%s, %d\n", __FILE__, line);
|
||||
}
|
||||
nn::dbg::PrintResult(result);
|
||||
NN_DBG_PRINT_RESULT(result);
|
||||
}
|
||||
}
|
||||
|
||||
@ -224,7 +224,7 @@ void SdLogger::Clear()
|
||||
result = nn::fs::TryDeleteFile(log.c_str());
|
||||
if(result.IsFailure())
|
||||
{
|
||||
nn::dbg::PrintResult(result);
|
||||
NN_DBG_PRINT_RESULT(result);
|
||||
}
|
||||
|
||||
SdMountManager::Unmount();
|
||||
|
||||
@ -108,7 +108,7 @@ void UtilTest::GetSaveDataDirectoryRoot()
|
||||
result = fis.TryRead(&readSize, ivs, ivsSize);
|
||||
if (result.IsFailure())
|
||||
{
|
||||
nn::dbg::PrintResult(result);
|
||||
NN_DBG_PRINT_RESULT(result);
|
||||
NN_TEST_FAIL("Can't Read IVS");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user