Mercurial > hg > early-roguelike
comparison srogue/save.c @ 121:e6c8652473fe
srogue: more compatibility improvements.
Randomness now uses mdport, and xcrypt.c has been replaced with the
rogue5 version.
Super-Rogue now builds on MinGW.
| author | John "Elwin" Edwards |
|---|---|
| date | Sat, 03 May 2014 10:31:30 -0700 |
| parents | d6b7c3fb37ea |
| children | 1863409c44cf |
comparison
equal
deleted
inserted
replaced
| 120:d6b7c3fb37ea | 121:e6c8652473fe |
|---|---|
| 285 #if defined(__CYGWIN__) || defined(__DJGPP__) | 285 #if defined(__CYGWIN__) || defined(__DJGPP__) |
| 286 close(inf); | 286 close(inf); |
| 287 #endif | 287 #endif |
| 288 if (!wizard) | 288 if (!wizard) |
| 289 { | 289 { |
| 290 #ifndef __DJGPP__ | 290 #if defined(HAVE_WORKING_FORK) |
| 291 endwin(); | 291 endwin(); |
| 292 if (!use_savedir) | 292 if (!use_savedir) |
| 293 { | 293 { |
| 294 while((pid = fork()) < 0) | 294 while((pid = fork()) < 0) |
| 295 sleep(1); | 295 sleep(1); |
| 342 environ = envp; | 342 environ = envp; |
| 343 | 343 |
| 344 strcpy(file_name, file); | 344 strcpy(file_name, file); |
| 345 setup(); | 345 setup(); |
| 346 restscr(cw); | 346 restscr(cw); |
| 347 srandom(getpid()); | 347 md_srandom(getpid()); |
| 348 playit(); | 348 playit(); |
| 349 } | 349 } |
