-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HEMTT Build Hooks to disable isDev on Release Builds
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Read the current contents of the mod.cpp | ||
// file from the project source | ||
|
||
if (HEMTT.is_release()) { | ||
let macro_path = HEMTT_VFS | ||
.join("addons") | ||
.join("CLib") | ||
.join("CLib_Macros.hpp"); | ||
let macro_hpp = macro_path | ||
.open_file() | ||
.read(); | ||
|
||
macro_hpp.replace("// #define ISDEV", "#define ISDEV"); | ||
|
||
macro_path | ||
.create_file() | ||
.write(macro_hpp); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Read the current contents of the mod.cpp | ||
// file from the project source | ||
|
||
if (HEMTT.is_release()) { | ||
let macro_path = HEMTT_VFS | ||
.join("addons") | ||
.join("CLib") | ||
.join("CLib_Macros.hpp"); | ||
let macro_hpp = macro_path | ||
.open_file() | ||
.read(); | ||
|
||
macro_hpp.replace("#define ISDEV", "// #define ISDEV"); | ||
|
||
macro_path | ||
.create_file() | ||
.write(macro_hpp); | ||
} |