Add G_FILE_IGNORE_DEPRECATION_WARNINGS option to G.fileflags in preparation of BGE python API cleanup
This commit is contained in:
@@ -227,6 +227,7 @@ typedef struct Global {
|
||||
#define G_FILE_GLSL_NO_RAMPS (1 << 19)
|
||||
#define G_FILE_GLSL_NO_NODES (1 << 20)
|
||||
#define G_FILE_GLSL_NO_EXTRA_TEX (1 << 21)
|
||||
#define G_FILE_IGNORE_DEPRECATION_WARNINGS (1 << 22)
|
||||
|
||||
/* G.windowstate */
|
||||
#define G_WINDOWSTATE_USERDEF 0
|
||||
|
||||
@@ -1672,6 +1672,7 @@ static uiBlock *info_game_glslmenu(void *arg_unused)
|
||||
static void do_info_gamemenu(void *arg, int event)
|
||||
{
|
||||
switch (event) {
|
||||
case G_FILE_IGNORE_DEPRECATION_WARNINGS:
|
||||
case G_FILE_ENABLE_ALL_FRAMES:
|
||||
case G_FILE_DISPLAY_LISTS:
|
||||
case G_FILE_SHOW_FRAMERATE:
|
||||
@@ -1750,6 +1751,12 @@ static uiBlock *info_gamemenu(void *arg_unused)
|
||||
uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_DEHLT, "Show Debug Properties", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, G_FILE_SHOW_DEBUG_PROPS, "");
|
||||
}
|
||||
|
||||
if(G.fileflags & G_FILE_IGNORE_DEPRECATION_WARNINGS) {
|
||||
uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_HLT, "Ignore Deprecation Warnings", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, G_FILE_IGNORE_DEPRECATION_WARNINGS, "");
|
||||
} else {
|
||||
uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_DEHLT, "Ignore Deprecation Warnings", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, G_FILE_IGNORE_DEPRECATION_WARNINGS, "");
|
||||
}
|
||||
|
||||
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 1, 0, "");
|
||||
|
||||
if(!(G.fileflags & G_FILE_GAME_MAT)) {
|
||||
|
||||
@@ -424,6 +424,9 @@ void space_set_commmandline_options(void) {
|
||||
a= (G.fileflags & G_FILE_GAME_TO_IPO);
|
||||
SYS_WriteCommandLineInt(syshandle, "game2ipo", a);
|
||||
|
||||
a= (G.fileflags & G_FILE_IGNORE_DEPRECATION_WARNINGS);
|
||||
SYS_WriteCommandLineInt(syshandle, "ignore_deprecation_warnings", a);
|
||||
|
||||
a=(G.fileflags & G_FILE_GAME_MAT);
|
||||
SYS_WriteCommandLineInt(syshandle, "blender_material", a);
|
||||
a=(G.fileflags & G_FILE_GAME_MAT_GLSL);
|
||||
|
||||
Reference in New Issue
Block a user