Skip to content

Commit

Permalink
Merge pull request #3321 from JosJuice/android-size-log
Browse files Browse the repository at this point in the history
MainAndroid: Fix size logging
  • Loading branch information
degasus committed Dec 8, 2015
2 parents 49cd777 + a27610f commit fc02ef4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Source/Core/DolphinWX/MainAndroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@
// Licensed under GPLv2+
// Refer to the license.txt file included.

#include <cinttypes>
#include <cstdio>
#include <cstdlib>
#include <jni.h>
#include <memory>
#include <android/log.h>
#include <android/native_window_jni.h>
#include <EGL/egl.h>
#include "../DiscIO/Volume.h"

#include "Android/ButtonManager.h"

#include "Common/CommonPaths.h"
#include "Common/CommonTypes.h"
#include "Common/CPUDetect.h"
#include "Common/Event.h"
#include "Common/FileUtil.h"
#include "Common/Logging/LogManager.h"

#include "Core/BootManager.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
Expand All @@ -27,6 +30,7 @@
#include "Core/PowerPC/PowerPC.h"
#include "Core/PowerPC/Profiler.h"

#include "DiscIO/Volume.h"
#include "DiscIO/VolumeCreator.h"

#include "UICommon/UICommon.h"
Expand Down Expand Up @@ -327,7 +331,9 @@ static u64 GetFileSize(std::string filename)
if (volume == nullptr)
return -1;

return volume->GetSize();
u64 size = volume->GetSize();
__android_log_print(ANDROID_LOG_INFO, DOLPHIN_TAG, "Size: %" PRIu64, size);
return size;
}

static std::string GetJString(JNIEnv *env, jstring jstr)
Expand Down

0 comments on commit fc02ef4

Please sign in to comment.