mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
Logging cleanup (#69)
* Mac OS X 10.6 & More C++03 Support * Fix SDL2 options.txt loading for C++03 * Output/Logging Overhaul * Added StandardOut class * Renamed LOGX macros to LOG_X * Removed LogMsg macros in favor of LOG_X * Added console window for debug Windows builds * Updated Xcode Project + StandardOut.hpp + StandardOut.cpp * StandardOut_windows * Replaced the Windows #ifdefs in StandardOut with StandardOut_windows --------- Co-authored-by: Brent Da Mage <BrentDaMage@users.noreply.github.com>
This commit is contained in:
@@ -183,7 +183,7 @@ void Inventory::addTestItem(int itemID, int amount, int auxValue)
|
||||
|
||||
if (inst.m_amount != 0)
|
||||
{
|
||||
LogMsg("AddTestItem: Couldn't add all %d of %s, only gave %d",
|
||||
LOG_I("AddTestItem: Couldn't add all %d of %s, only gave %d",
|
||||
amount, Item::items[itemID]->m_DescriptionID.c_str(), amount - inst.m_amount);
|
||||
}
|
||||
}
|
||||
@@ -291,5 +291,5 @@ void Inventory::selectItemById(int itemID)
|
||||
return;
|
||||
}
|
||||
|
||||
LogMsg("selectItemById: %d doesn't exist", itemID);
|
||||
LOG_W("selectItemById: %d doesn't exist", itemID);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ Item::Item(int itemID)
|
||||
|
||||
if (Item::items[m_itemID])
|
||||
{
|
||||
printf("Item conflict id @ %d! Id already used\n", m_itemID);
|
||||
LOG_W("Item conflict id @ %d! Id already used\n", m_itemID);
|
||||
}
|
||||
|
||||
Item::items[m_itemID] = this;
|
||||
@@ -66,7 +66,7 @@ Item* Item::setMaxStackSize(int mss)
|
||||
Item* Item::setCraftingRemainingItem(Item* pItem)
|
||||
{
|
||||
if (m_maxStackSize > 1)
|
||||
puts("Max stack size must be 1 for items with crafting results");
|
||||
LOG_W("Max stack size must be 1 for items with crafting results");
|
||||
|
||||
m_pCraftingRemainingItem = pItem;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user