Import cia-foundation preservation fixes #1

Open
Ember Bot wants to merge 2 commits from preservation/cia-fixes into master
pull from: preservation/cia-fixes
4 changed files with 4 additions and 19 deletions

No files matched your search

Binary file not shown.
@@ -1,17 +0,0 @@
Cd(__DIR__);;
#include "AlienWorkingDir"
U0 AlienGame()
{
"This is our alien game.\n";
PressAKey;
ShowWorkingDir;
}
AlienGame;
+4 -2
View File
@@ -45,8 +45,10 @@ def decompress_all_files_in(path):
decompress_all_files_in(full_path)
elif full_path.endswith('.Z'):
decompressed_path = full_path[0:len(full_path)-2]
subprocess.check_call(['./TOSZ', '-ascii', full_path, decompressed_path])
os.remove(full_path)
if full_path.endswith('.BIN.Z'):
subprocess.check_call(['./TOSZ', full_path, decompressed_path])
else:
subprocess.check_call(['./TOSZ', '-ascii', full_path, decompressed_path])
# Extract TempleOS disk tree
extract('', OUTPUT_DIR)