mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Ensured messages are recompiled if PBS files or map data is compiled
This commit is contained in:
@@ -959,7 +959,7 @@ module Compiler
|
||||
return ret
|
||||
end
|
||||
@@categories.each_pair do |category, procs|
|
||||
ret.push(category) if procs[:should_compile]&.call
|
||||
ret.push(category) if procs[:should_compile]&.call(ret)
|
||||
end
|
||||
return ret
|
||||
end
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module Compiler
|
||||
@@categories[:pbs_files] = {
|
||||
:should_compile => proc { next should_compile_pbs_files? },
|
||||
:should_compile => proc { |compiling| next should_compile_pbs_files? },
|
||||
:header_text => proc { next _INTL("Compiling PBS files") },
|
||||
:skipped_text => proc { next _INTL("Not compiled") },
|
||||
:compile => proc {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module Compiler
|
||||
@@categories[:animations] = {
|
||||
:should_compile => proc { next false },
|
||||
:should_compile => proc { |compiling| next false },
|
||||
:header_text => proc { next _INTL("Compiling animations") },
|
||||
:skipped_text => proc { next _INTL("Not compiled") },
|
||||
:compile => proc { compile_animations }
|
||||
|
||||
@@ -38,14 +38,14 @@ module Compiler
|
||||
]
|
||||
|
||||
@@categories[:map_data] = {
|
||||
:should_compile => proc { next import_new_maps },
|
||||
:should_compile => proc { |compiling| next import_new_maps },
|
||||
:header_text => proc { next _INTL("Modifying map data") },
|
||||
:skipped_text => proc { next _INTL("Not modified") },
|
||||
:compile => proc { compile_trainer_events }
|
||||
}
|
||||
|
||||
@@categories[:messages] = {
|
||||
:should_compile => proc { next false },
|
||||
:should_compile => proc { |compiling| next compiling.include?(:pbs_files) || compiling.include?(:map_data) },
|
||||
:header_text => proc { next _INTL("Gathering messages for translations") },
|
||||
:skipped_text => proc { next _INTL("Not gathered") },
|
||||
:compile => proc {
|
||||
|
||||
Reference in New Issue
Block a user