Moved some game code into engine code
This commit is contained in:
@@ -2,11 +2,13 @@
|
||||
#import "Basic";
|
||||
#import "String";
|
||||
#import "Sort";
|
||||
#import "File";
|
||||
|
||||
build_release := false;
|
||||
|
||||
build :: (main_path: string, game_name: string, working_dir: string = #filepath) {
|
||||
set_working_directory(working_dir);
|
||||
make_directory_if_it_does_not_exist("../../bin");
|
||||
|
||||
w := compiler_create_workspace("Game");
|
||||
opts := get_build_options(w);
|
||||
@@ -22,9 +24,9 @@ build :: (main_path: string, game_name: string, working_dir: string = #filepath)
|
||||
array_add(*new_path, "modules");
|
||||
opts.import_path = new_path;
|
||||
|
||||
if build_release {
|
||||
//if build_release {
|
||||
set_optimization(*opts, .VERY_OPTIMIZED);
|
||||
}
|
||||
//}
|
||||
|
||||
compiler_begin_intercept(w);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user