X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fshared%2Fa_modes.inc;h=3e089bd122cb6c79b650e8fe63abe4cda0acfbb2;hp=9b5d9390f1fadf14f156622520bde230fc91a334;hb=aa7e40301df69aa13c00ff2bcdb8e532b06b8053;hpb=17ca3896bbe664f64e6c302023b8010d4ebd02ff diff --git a/src/shared/a_modes.inc b/src/shared/a_modes.inc index 9b5d939..3e089bd 100644 --- a/src/shared/a_modes.inc +++ b/src/shared/a_modes.inc @@ -105,6 +105,22 @@ {$WARNING Holmes in headless mode has no sense. Disabled.} {$UNDEF ENABLE_HOLMES} {$ENDIF} + {$IFDEF ENABLE_MENU} + {$WARNING Menu in headless mode has no sense. Disabled.} + {$UNDEF ENABLE_MENU} + {$DEFINE DISABLE_MENU} + {$ENDIF} +{$ENDIF} + +{$IF DEFINED(ENABLE_MENU) AND DEFINED(DISABLE_MENU)} + {$ERROR Select ENABLE_MENU or DISABLE_MENU} +{$ELSEIF NOT DEFINED(ENABLE_MENU) AND NOT DEFINED(DISABLE_MENU)} + // defaut ENABLE/DISABLE menu + {$IFDEF HEADLESS} + {$DEFINE DISABLE_MENU} + {$ELSE} + {$DEFINE ENABLE_MENU} + {$ENDIF} {$ENDIF} {$IF DEFINED(USE_SYSSTUB)}