wchar_t *GetDescription(JNIEnv *env, jobject jFilter) { JLString jDesc(env, (jstring)env->CallObjectMethod(jFilter, javaIDs.CommonDialogs.ExtensionFilter.getDescription)); CheckAndClearException(env); JString desc(env, jDesc, false); return desc; }
//-------------------------------------------------------------- //-------------------------------------------------------------- void GooglePlayExpansionSystem::CachePackageDescriptions() { Json::Value jDesc(Json::arrayValue); for(u32 i=0; i<m_numExpansions; ++i) { Json::Value jExpansion; jExpansion["VersionCode"] = m_javaInterface->GetExpansionVersionCode(i); jExpansion["FileSize"] = (u32)m_javaInterface->GetExpansionFileSizeInBytes(i); jDesc.append(jExpansion); } CSCore::Application::Get()->GetFileSystem()->WriteFile(CSCore::StorageLocation::k_cache, "GoogleExpansionDownloader.cache", (s8*)jDesc.toStyledString().data(), jDesc.toStyledString().size()); }