Java for SDL2 Updates

This commit is contained in:
Gerhard Stein
2013-10-11 11:54:37 +02:00
parent e7fa0c35d5
commit 69976da427
6 changed files with 13 additions and 4 deletions

View File

@@ -1002,6 +1002,11 @@ if [ "$LibSdlVersion" = "1.3" ] ; then
UsingSdl13=true
fi
UsingSdl20=false
if [ "$LibSdlVersion" = "2.0" ] ; then
UsingSdl20=true
fi
if [ "$ScreenOrientation" = "h" -o "$ScreenOrientation" = "l" ] ; then
ScreenOrientation1=landscape
HorizontalOrientation=true
@@ -1292,6 +1297,8 @@ echo Patching project/src/Globals.java
$SEDI "s/public static String ApplicationName = .*;/public static String ApplicationName = \"$AppShortName\";/" project/src/Globals.java
$SEDI "s/public static final boolean Using_SDL_1_3 = .*;/public static final boolean Using_SDL_1_3 = $UsingSdl13;/" project/src/Globals.java
$SEDI "s/public static final boolean Using_SDL_2_0 = .*;/public static final boolean Using_SDL_2_0 = $UsingSdl20;/" project/src/Globals.java
# Work around "Argument list too long" problem when compiling VICE
#$SEDI "s@public static String DataDownloadUrl = .*@public static String DataDownloadUrl = \"$AppDataDownloadUrl1\";@" project/src/Globals.java
$SEDI "s@public static String\[\] DataDownloadUrl = .*@public static String[] DataDownloadUrl = { ### };@" project/src/Globals.java