2012-08-01 20:35:18 -02:30
|
|
|
import os, os.path, sys
|
|
|
|
|
|
2012-08-02 00:51:51 -07:00
|
|
|
from fml import setup_fml, finish_setup_fml, apply_fml_patches, setup_mcp
|
2012-08-01 20:35:18 -02:30
|
|
|
|
2012-08-08 23:44:32 -07:00
|
|
|
def fml_main(fml_dir, mcp_dir, dont_gen_conf=True):
|
2012-08-01 20:35:18 -02:30
|
|
|
print '================ Forge ModLoader Setup Start ==================='
|
2012-08-08 23:44:32 -07:00
|
|
|
setup_mcp(fml_dir, mcp_dir, dont_gen_conf)
|
2012-08-01 20:35:18 -02:30
|
|
|
setup_fml(fml_dir, mcp_dir)
|
2012-08-03 17:32:23 -07:00
|
|
|
apply_fml_patches(fml_dir, mcp_dir, os.path.join(mcp_dir, 'src'))
|
2012-08-01 20:35:18 -02:30
|
|
|
finish_setup_fml(fml_dir, mcp_dir)
|
|
|
|
|
print '================ Forge ModLoader Setup End ==================='
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2012-08-03 17:32:23 -07:00
|
|
|
fml_main(os.path.dirname(os.path.abspath(__file__)), os.path.abspath('..'))
|