Skip to content

Commit

Permalink
Add brightmaps, gzdoom, and lights pk3 and update build number
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrupczak3 committed Jun 15, 2019
1 parent a55864b commit 3eda384
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 15 deletions.
8 changes: 4 additions & 4 deletions doom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ android {
signingConfigs {
config {
keyAlias 'key0'
keyPassword 'Ca$hm0n3y000'
keyPassword ''
storeFile file('C:/Users/matth/Dropbox/Keystore/mkrupczak3.jks')
storePassword 'Ca$hm0n3y000'
storePassword ''
}
}

Expand All @@ -34,8 +34,8 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 26
versionCode 17
versionName "0.4.0"
versionCode 18
versionName "0.4.1"
}
/*
externalNativeBuild {
Expand Down
Binary file added doom/src/main/assets/brightmaps.pk3
Binary file not shown.
Binary file added doom/src/main/assets/lights.pk3
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,

Utils.copyFreedoomFilesToSD(getActivity());

// Nasty hack to refresh view if this is the first launch and freedoom files were copied
// Nasty hack to refresh view if this is the first launch and Freedoom files were copied
File hasRunTester = new File ( fullBaseDir + "/" + "firstrun");
if (!hasRunTester.exists()) {
Log.d(LOG, "firstrun file not found, proceeding with first launch hack");
Expand Down
28 changes: 18 additions & 10 deletions doom/src/main/java/net/nullsum/freedoom/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,24 @@ static void copyFreedoomFilesToSD(Activity responsibleActivity) {
Log.d(LOG, "zdoom.ini file is already present");
}

// // Nasty hack to refresh view if this is the first launch
// File hasRunTester = new File ( fullBaseDir + "/" + "firstrun");
// if (!hasRunTester.exists()) {
// Log.d(LOG, "firstrun file not found, proceeding with first launch hack");
// Utils.copyAsset(responsibleActivity, "firstrun", fullBaseDir);
// // Info of hack
// // https://stackoverflow.com/questions/15262747/refresh-or-force-redraw-the-fragment
//
//
// }
// copy over gzdoom mod/package files
String modFolderName = "mods";
String fullModDir = fullBaseDir + "/" + modFolderName;

tester = new File( fullModDir + "/" + "brightmaps.pk3");
if (!tester.exists()) {
Utils.copyAsset(responsibleActivity, "brightmaps.pk3", fullModDir);
}

tester = new File( fullModDir + "/" + "gzdoom.pk3");
if (!tester.exists()) {
Utils.copyAsset(responsibleActivity, "gzdoom.pk3", fullModDir);
}

tester = new File( fullModDir + "/" + "lights.pk3");
if (!tester.exists()) {
Utils.copyAsset(responsibleActivity, "lights.pk3", fullModDir);
}
}

private static void copyFile(InputStream in, OutputStream out) throws IOException {
Expand Down

0 comments on commit 3eda384

Please sign in to comment.