Merge branch 'master' into matrix
@@ -57,7 +57,7 @@ install:
|
||||
tar --absolute-names -jxf android-ndk-r9-linux-x86_64.tar.bz2 &&
|
||||
tar -zxf android-sdk_r24.3.4-linux.tgz &&
|
||||
$ANDROID list sdk --extended -a &&
|
||||
echo yes | $ANDROID update sdk -a -t tools,platform-tools,build-tools-23.0.1,android-10 --no-ui --force --no-https;
|
||||
echo yes | $ANDROID update sdk -a -t tools,platform-tools,build-tools-23.0.1,android-23 --no-ui --force --no-https;
|
||||
fi
|
||||
- sudo python -m easy_install --upgrade pyOpenSSL
|
||||
- sudo pip install pyjavaproperties
|
||||
|
||||
@@ -474,7 +474,7 @@
|
||||
|
||||
#ifndef PNG_VERSION_INFO_ONLY
|
||||
/* include the compression library's header */
|
||||
#include "zlib.h"
|
||||
#include "../include/zlib.h"
|
||||
#endif
|
||||
|
||||
/* include all user configurable info, including optional assembler routines */
|
||||
|
||||
@@ -394,6 +394,7 @@ class JGE
|
||||
void SetJNIEnv(JNIEnv * env, jclass cls);
|
||||
void sendJNICommand(std::string command);
|
||||
std::string getFileSystemLocation();
|
||||
std::string getFileUserFolderPath();
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
@@ -131,10 +131,11 @@ JFileSystem::JFileSystem(const string & _userPath, const string & _systemPath)
|
||||
systemPath = [[documentsDirectory stringByAppendingString: @"/Res/"] cStringUsingEncoding:1];
|
||||
|
||||
#elif defined (ANDROID)
|
||||
userPath = JGE::GetInstance()->getFileSystemLocation();
|
||||
systemPath = "";
|
||||
userPath = JGE::GetInstance()->getFileUserFolderPath();
|
||||
systemPath = JGE::GetInstance()->getFileSystemLocation();
|
||||
|
||||
DebugTrace("User path " << userPath);
|
||||
DebugTrace("System path " << systemPath);
|
||||
#elif defined (QT_CONFIG)
|
||||
|
||||
QDir sysDir(RESDIR);
|
||||
|
||||
@@ -668,7 +668,7 @@ string JGE::getFileSystemLocation()
|
||||
if (env == NULL)
|
||||
{
|
||||
DebugTrace("An Error Occurred in getting the JNI Environment whie trying to get the system folder location. Defaulting to /mnt/sdcard/net.wagic.app/Wagic");
|
||||
return "/mnt/sdcard/Wagic";
|
||||
return "/mnt/sdcard/Wagic/Res";
|
||||
};
|
||||
|
||||
jclass jniClass = env->FindClass("org/libsdl/app/SDLActivity");
|
||||
@@ -677,7 +677,36 @@ string JGE::getFileSystemLocation()
|
||||
if (methodId == 0)
|
||||
{
|
||||
DebugTrace("An Error Occurred in getting the JNI methodID for getSystemFolderPath. Defaulting to /mnt/sdcard/Wagic");
|
||||
return "/mnt/sdcard/Wagic";
|
||||
return "/mnt/sdcard/Wagic/Res";
|
||||
};
|
||||
|
||||
jstring systemPath = (jstring) env->CallStaticObjectMethod(jniClass, methodId);
|
||||
|
||||
// Now convert the Java String to C++ char array
|
||||
const char* cstr = env->GetStringUTFChars(systemPath, 0);
|
||||
string retVal (cstr);
|
||||
env->ReleaseStringUTFChars(systemPath, cstr);
|
||||
env->DeleteLocalRef(systemPath);
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
string JGE::getFileUserFolderPath()
|
||||
{
|
||||
JNIEnv * env = getJNIEnv();
|
||||
if (env == NULL)
|
||||
{
|
||||
DebugTrace("An Error Occurred in getting the JNI Environment whie trying to get the system folder location. Defaulting to /mnt/sdcard/net.wagic.app/Wagic");
|
||||
return "/mnt/sdcard/Wagic/User";
|
||||
};
|
||||
|
||||
jclass jniClass = env->FindClass("org/libsdl/app/SDLActivity");
|
||||
jmethodID methodId = env->GetStaticMethodID( jniClass, "getUserFolderPath", "()Ljava/lang/String;");
|
||||
|
||||
if (methodId == 0)
|
||||
{
|
||||
DebugTrace("An Error Occurred in getting the JNI methodID for getSystemFolderPath. Defaulting to /mnt/sdcard/Wagic");
|
||||
return "/mnt/sdcard/Wagic/User";
|
||||
};
|
||||
|
||||
jstring systemPath = (jstring) env->CallStaticObjectMethod(jniClass, methodId);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="0201" android:versionName="@string/app_version" package="net.wagic.app">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="0211" android:installLocation="preferExternal" android:versionName="@string/app_version" package="net.wagic.app">
|
||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
@@ -12,5 +12,5 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10"/>
|
||||
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="13"/>
|
||||
</manifest>
|
||||
|
||||
@@ -8,4 +8,4 @@
|
||||
# project structure.
|
||||
|
||||
# Project target.
|
||||
target=android-10
|
||||
target=android-23
|
||||
|
||||
BIN
projects/mtg/Android/libs/armeabi-v7a/libSDL.so
Normal file
BIN
projects/mtg/Android/libs/armeabi-v7a/libmain.so
Normal file
BIN
projects/mtg/Android/libs/jsoup-1.11.3.jar
Normal file
BIN
projects/mtg/Android/libs/zip4j-2.1.3-SNAPSHOT.jar
Normal file
@@ -11,4 +11,4 @@
|
||||
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||
|
||||
# Project target.
|
||||
target=android-10
|
||||
target=android-23
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Wagic</string>
|
||||
<string name="app_version">0.20.1</string>
|
||||
<string name="info_text">Wagic v0.20.1\\nAll Rights Reserved.</string>
|
||||
<string name="app_version">0.21.1</string>
|
||||
<string name="info_text">Wagic v0.21.1\\nAll Rights Reserved.</string>
|
||||
</resources>
|
||||
|
||||
2290
projects/mtg/Android/src/net/wagic/utils/ImgDownloader.java
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/BattleIcon.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/DeckEditorMenuBackdrop.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/DeckMenuBackdrop.png
Normal file
|
After Width: | Height: | Size: 159 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/DefenderIcon.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/Ok.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/ai_unlocked.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/alphabeta.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/avatar.jpg
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/avatarholder.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/awardback.jpg
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/backdrop.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/backdropframe.png
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/bgdeckeditor.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/blitz_unlocked.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/bottom_corner.png
Normal file
|
After Width: | Height: | Size: 355 B |
BIN
projects/mtg/bin/Res/graphics_PSP/button_shoulder.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/counters/default.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/counters/quest.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/eviltwin_unlocked.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/f3.asc
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/f3.dat
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/f3.font
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/f3.gbk
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/f3.png
Normal file
|
After Width: | Height: | Size: 140 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/fakebar.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/gold.png
Normal file
|
After Width: | Height: | Size: 210 B |
BIN
projects/mtg/bin/Res/graphics_PSP/goldglow.png
Normal file
|
After Width: | Height: | Size: 235 B |
BIN
projects/mtg/bin/Res/graphics_PSP/handback.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/hermit_unlocked.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/iconcard.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/iconexile.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/iconhand.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/iconlibrary.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/iconspsp.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/jewel.png
Normal file
|
After Width: | Height: | Size: 146 B |
BIN
projects/mtg/bin/Res/graphics_PSP/magic.asc
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/magic.dat
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/magic.font
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/magic.gbk
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/magic.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/mana.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/manablack.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/manablue.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/managreen.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/manared.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/manawhite.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/menubar.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/menubgdeckeditor.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/menucorner.png
Normal file
|
After Width: | Height: | Size: 426 B |
BIN
projects/mtg/bin/Res/graphics_PSP/menuholder.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/menuicons.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/menupanel.jpg
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/menuside.png
Normal file
|
After Width: | Height: | Size: 162 B |
BIN
projects/mtg/bin/Res/graphics_PSP/menuside2.png
Normal file
|
After Width: | Height: | Size: 310 B |
BIN
projects/mtg/bin/Res/graphics_PSP/menutitle.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/miconslarge.png
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/momir_unlocked.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/new.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/noavatar.jpg
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/particle1.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/particle2.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/particle3.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/particle4.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/particle5.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/particle6.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/particle7.psi
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/particles.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/phasebar.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/phaseinfo.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/preview.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/pspbackdrop.jpg
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/pspbackdropframe.png
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/pspdeckmenu.png
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/pspf3.dat
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/pspf3.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/pspmagic.dat
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/pspmagic.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/pspmenubgdeckeditor.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/pspsimon.dat
Normal file
BIN
projects/mtg/bin/Res/graphics_PSP/pspsimon.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/randomdeck_unlocked.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/set_unlocked.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/shadows.png
Normal file
|
After Width: | Height: | Size: 280 B |
BIN
projects/mtg/bin/Res/graphics_PSP/shop.jpg
Normal file
|
After Width: | Height: | Size: 142 KiB |
BIN
projects/mtg/bin/Res/graphics_PSP/shop_aliasing.png
Normal file
|
After Width: | Height: | Size: 58 KiB |