- 1,224
- Posts
- 11
- Years
- Omnipresence
- Seen Aug 8, 2023
I'd like to make an alias for the main compilation method, in case I ever decide to make this script standalone. However, it seems that this alias does not take place before the initial compiling does, rendering it useless.
Any ideas?
Code:
#Make books compile with everything else
alias :pbCompileAllData_old :pbCompileAllData
def pbCompileAllData(mustcompile)
pbCompileAllData_old(true){|msg| Win32API.SetWindowText(msg) }
#yield(_INTL("Compiling book data"))
pbCompileBooks(mustcompile)
end
Any ideas?