six-arma-tools 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/six/arma/tools/pbodll.rb +6 -5
- data/lib/six/arma/tools.rb +1 -1
- metadata +4 -4
data/Rakefile
CHANGED
|
@@ -85,20 +85,21 @@ module Six
|
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
DEFAULT_UNPACK = {:extract_to_prefix =>
|
|
88
|
+
DEFAULT_UNPACK = {:extract_to_prefix => true, :derapify => true, :prompt_overwrite => true, :silent => true, :list => false}
|
|
89
89
|
def unpack(params = {})
|
|
90
90
|
params = DEFAULT_UNPACK.merge params
|
|
91
91
|
cmd = []
|
|
92
|
+
cmd << 'k' unless params[:extract_to_prefix]
|
|
92
93
|
cmd << 'n' unless params[:silent]
|
|
93
94
|
cmd << 'r' unless params[:derapify]
|
|
94
|
-
cmd << 'a' if params[:extract_to_prefix]
|
|
95
|
+
#cmd << 'a' if params[:extract_to_prefix]
|
|
95
96
|
cmd << 'l' if params[:list]
|
|
96
|
-
cmd = " -#{cmd.join('')}" if cmd.size > 0
|
|
97
|
+
cmd = [" -#{cmd.join('')}"] if cmd.size > 0
|
|
97
98
|
cmd << " -f \"#{params[:files_to_extract]}\"" if params[:files_to_extract]
|
|
98
99
|
cmd << " -w #{params[:output]}" if params[:output]
|
|
99
100
|
if @source[/\.pbo/]
|
|
100
101
|
@source[/(\w*)\.pbo/]
|
|
101
|
-
destination =
|
|
102
|
+
destination = @destination
|
|
102
103
|
|
|
103
104
|
log.info "Unpacking: #{@source} to #{destination}"
|
|
104
105
|
output = %x[#{tool('extractpbo.exe')}#{cmd.join('')} "#{@source}" "#{destination}"]
|
|
@@ -166,7 +167,7 @@ module Six
|
|
|
166
167
|
params += " -TEMP \"#{settings[:temp]}\"" if settings[:temp]
|
|
167
168
|
params += " -INCLUDE \"#{settings[:include]}\"" if settings[:include]
|
|
168
169
|
if settings[:project]
|
|
169
|
-
if Dir[File.join(@source, "**/*.p3d")].size > 0 # TODO: Configurable?
|
|
170
|
+
if (Dir[File.join(@source, "**/*.p3d")] + Dir[File.join(@source, "**/*.wrp")]).size > 0 # TODO: Configurable?
|
|
170
171
|
params += " -PROJECT \"#{settings[:project]}\""
|
|
171
172
|
end
|
|
172
173
|
end
|
data/lib/six/arma/tools.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: six-arma-tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.1.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- ""
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-
|
|
18
|
+
date: 2010-07-17 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|