forked from cafeberry/cafeberry
fixed vita startup crash by guarding commerce calls (#21)
Commerce calls are now guarded with `#elif defined(__PSVITA__) && !defined(DISABLE_PSN)` --------- Co-authored-by: 552eden <552eden@gmail.com> Reviewed-on: pieeebot/cafeberry#21 Co-authored-by: ubergamer-pie <16+ubergamer-pie@noreply.localhost>
This commit is contained in:
@@ -46,6 +46,7 @@ CConsoleMinecraftApp::CConsoleMinecraftApp() : CMinecraftApp()
|
||||
|
||||
m_pSaveToDelete = NULL;
|
||||
m_pCheckoutProductInfo = NULL;
|
||||
m_pCommerce = NULL;
|
||||
}
|
||||
|
||||
void CConsoleMinecraftApp::SetRichPresenceContext(int iPad, int contextId)
|
||||
@@ -1080,7 +1081,7 @@ void CConsoleMinecraftApp::AppEventTick()
|
||||
|
||||
bool CConsoleMinecraftApp::CheckForEmptyStore(int iPad)
|
||||
{
|
||||
#ifdef VITA_COMMERCE
|
||||
#ifdef VITA_COMMERCE_ENABLED
|
||||
SonyCommerce::CategoryInfo *pCategories=app.GetCategoryInfo();
|
||||
|
||||
bool bEmptyStore=true;
|
||||
|
||||
Reference in New Issue
Block a user