Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 545604
Collapse All | Expand All

(-)a/BlockOut/Makefile (+4 lines)
Lines 71-76 LFLAGS = -L $(SDL_LIBS) \ Link Here
71
71
72
endif
72
endif
73
73
74
ifdef GAME_DATA_PREFIX
75
CXXFLAGS += -DBL2_HOME=\"$(GAME_DATA_PREFIX)\"
76
endif
77
74
78
75
#--------------------------------------------------------------------
79
#--------------------------------------------------------------------
76
80
(-)a/BlockOut/Utils.cpp (-1 / +9 lines)
Lines 206-218 BOOL CheckEnv() { Link Here
206
    printf("Please set the HOME variable to your home directory (ex: HOME=/users/jeanluc)\n");
206
    printf("Please set the HOME variable to your home directory (ex: HOME=/users/jeanluc)\n");
207
    return FALSE;
207
    return FALSE;
208
  }
208
  }
209
    
209
210
#ifndef BL2_HOME
211
210
  char *blockoutHome = getenv("BL2_HOME");
212
  char *blockoutHome = getenv("BL2_HOME");
211
  if( blockoutHome==NULL ) {
213
  if( blockoutHome==NULL ) {
212
    printf("BL2_HOME environement variable if not defined !\n");
214
    printf("BL2_HOME environement variable if not defined !\n");
213
    printf("Please set the BL2_HOME to the BlockOut II installation directory (ex: BL2_HOME=/usr/local/bl2).\n");
215
    printf("Please set the BL2_HOME to the BlockOut II installation directory (ex: BL2_HOME=/usr/local/bl2).\n");
214
    return FALSE;
216
    return FALSE;
215
  }
217
  }
218
#else
219
220
  char const *blockoutHome = BL2_HOME;
221
222
#endif
223
216
  strcpy( bl2Home , blockoutHome );
224
  strcpy( bl2Home , blockoutHome );
217
    
225
    
218
  char bl2Dir[512];
226
  char bl2Dir[512];

Return to bug 545604