This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #264 from rockerbacon/independent-installer
Independent installer
- Loading branch information
Showing
40 changed files
with
1,674 additions
and
1,082 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: formatting | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- independent-installer | ||
|
||
jobs: | ||
indentation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: check indentation | ||
run: ./ci/check-file-indentation.pl * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*~ | ||
*.swp | ||
*.swo | ||
*.orig | ||
|
||
/gamesinfo/gamesinfo.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/usr/bin/perl | ||
|
||
use autodie; | ||
use strict; | ||
use warnings; | ||
use File::Find; | ||
use Term::ANSIColor; | ||
|
||
sub filter_entries { | ||
my @valid_entries=(); | ||
foreach (@_) { | ||
if ( | ||
-d and ! /^\.[!\.]/ | ||
or | ||
-f and /\.(sh|pl)/ | ||
) { | ||
push(@valid_entries, $_); | ||
} | ||
} | ||
|
||
return @valid_entries; | ||
} | ||
|
||
sub check_indentation { | ||
open (my $file_handle, "<", $_); | ||
|
||
while (<$file_handle>) { | ||
if (/^\s* /) { | ||
return 1; | ||
} | ||
} | ||
|
||
return 0; | ||
} | ||
|
||
my $fails = 0; | ||
sub check_dir_entry { | ||
if (! -f) { | ||
return 0; | ||
} | ||
|
||
print "$File::Find::name:"; | ||
|
||
if (! check_indentation) { | ||
print colored(" OK", "green"); | ||
} else { | ||
print colored(" INCORRECT", "red"); | ||
$fails++; | ||
} | ||
|
||
print "\n"; | ||
}; | ||
|
||
my %find_options = ( | ||
preprocess => \&filter_entries, | ||
wanted => \&check_dir_entry, | ||
); | ||
|
||
find(\%find_options, filter_entries @ARGV); | ||
|
||
print "\n"; | ||
if ($fails) { | ||
print colored("Indentation check failed!\n", "red"); | ||
print "Make sure to indent files using tabs\n"; | ||
} else { | ||
print colored("All files are OK!\n", "green"); | ||
} | ||
|
||
exit $fails; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
# could be either Fallout 3 or Fallout 3 Game of The Year Edition | ||
fo3_possible_appids=(22300 22370) | ||
|
||
for fo3_appid in "${fo3_possible_appids[@]}"; do | ||
fo3_library=$("$CACHE/utils/find-library-for-appid.sh" $fo3_appid) | ||
if [ -d "$fo3_library" ]; then | ||
steam_library="$fo3_library" | ||
break | ||
fi | ||
done | ||
|
||
if [ "$fo3_appid" == "22300" ]; then | ||
game_steam_subdirectory="Fallout 3" | ||
else | ||
game_steam_subdirectory="Fallout 3 goty" | ||
fi | ||
game_appid=$fo3_appid | ||
game_proton_options="--protonver 5.0" | ||
game_appid=22300 | ||
game_nexusid="fallout3" | ||
game_steam_subdirectory="Fallout 3" | ||
game_protonver="5.0" | ||
game_proton_options="" | ||
game_wine_options="" | ||
game_protontricks="d3dcompiler_43 d3dx9" | ||
game_winetricks="d3dcompiler_43 d3dx9" | ||
game_scriptextender_url="https://www.fose.silverlock.org/download/fose_v1_2_beta2.7z" | ||
game_scriptextender_files="*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
game_appid=22370 | ||
game_nexusid="fallout3" | ||
game_steam_subdirectory="Fallout 3 goty" | ||
game_protonver="5.0" | ||
game_proton_options="" | ||
game_wine_options="" | ||
game_protontricks="d3dcompiler_43 d3dx9" | ||
game_winetricks="d3dcompiler_43 d3dx9" | ||
game_scriptextender_url="https://www.fose.silverlock.org/download/fose_v1_2_beta2.7z" | ||
game_scriptextender_files="*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
game_steam_subdirectory="Fallout 4" | ||
game_nexusid="fallout4" | ||
game_appid=377160 | ||
game_proton_options="--noesync --native 'xaudio2_7' --protonver 5.0 -e 'PULSE_LATENCY_MSEC=90'" | ||
game_protonver="5.0" | ||
game_proton_options="--noesync --native 'xaudio2_7' -e 'PULSE_LATENCY_MSEC=90'" | ||
game_wine_options="--native 'xaudio2_7'" | ||
game_protontricks="" | ||
game_winetricks="" | ||
game_scriptextender_url="https://f4se.silverlock.org/beta/f4se_0_06_21.7z" | ||
game_scriptextender_files="*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
game_steam_subdirectory="Morrowind" | ||
game_nexusid="morrowind" | ||
game_appid=22320 | ||
game_proton_options="--protonver 5.0" | ||
game_protonver="5.0" | ||
game_proton_options="" | ||
game_wine_options="" | ||
game_protontricks="d3dcompiler_43 d3dx9" | ||
game_winetricks="d3dcompiler_43 d3dx9" | ||
game_scriptextener_url="https://github.com/MWSE/MWSE/releases/download/build-automatic/mwse.zip" | ||
game_scriptextender_files="*" | ||
|
Oops, something went wrong.