@@ -56,9 +56,9 @@ class RageHashList
5656 ankerl::unordered_dense::map<uint32_t , std::string_view> m_lookupList;
5757};
5858
59- int LogPercentUsageWarning = GetPrivateProfileInt(" POOL_SETTINGS" , " LogPercentUsageWarning" , 0 , " .\\ PoolManager.toml" );
59+ BOOL LogPercentUsageWarning = GetPrivateProfileInt(" POOL_SETTINGS" , " LogPercentUsageWarning" , FALSE , " .\\ PoolManager.toml" );
6060int LogPercentUsageWarningAmount = GetPrivateProfileInt(" POOL_SETTINGS" , " LogPercentUsageWarningAmount" , 50 , " .\\ PoolManager.toml" );
61- int LogInitialPoolAmounts = GetPrivateProfileInt(" POOL_SETTINGS" , " LogInitialPoolAmounts " , 0 , " .\\ PoolManager.toml" );
61+ BOOL LogInitialPoolAmounts = GetPrivateProfileInt(" POOL_SETTINGS" , " LogInitialPoolAmounts " , FALSE , " .\\ PoolManager.toml" );
6262
6363static std::string LastPoolLogged;
6464static int LastSizeLogged;
@@ -69,14 +69,14 @@ static void cleanUpLogs()
6969{
7070 if (!clearedLogs)
7171 {
72- if (LogInitialPoolAmounts != 0 )
72+ if (LogInitialPoolAmounts != FALSE )
7373 {
7474 std::ofstream outfile;
7575 outfile.open (" PoolManager_Startup.log" , std::ofstream::out | std::ofstream::trunc);
7676 outfile.close ();
7777 }
7878
79- if (LogPercentUsageWarning != 0 )
79+ if (LogPercentUsageWarning != FALSE )
8080 {
8181 std::ofstream outfile;
8282 outfile.open (" PoolManager_UsageWarning.log" , std::ofstream::out | std::ofstream::trunc);
@@ -643,7 +643,7 @@ std::int32_t* PoolAllocateWrap(rage::fwBasePool* pool, uint64_t unk)
643643 auto value = g_origPoolAllocate (pool, unk);
644644
645645
646- if (LogPercentUsageWarning != 0 )
646+ if (LogPercentUsageWarning == TRUE )
647647 {
648648 if ((float )pool->GetCount () / (float )pool->GetSize () * 100 .00f > LogPercentUsageWarningAmount)
649649 {
@@ -762,7 +762,7 @@ std::uint32_t GetSizeOfPool(VOID* _this, std::uint32_t poolHash, std::uint32_t d
762762 if (it == g_intPools.end ())
763763 {
764764 g_intPools.insert ({ poolName, value });
765- if (LogInitialPoolAmounts != 0 )
765+ if (LogInitialPoolAmounts == TRUE )
766766 {
767767 if (poolName == poolNameHash)
768768 {
0 commit comments