| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include <assert.h> | 7 #include <assert.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 #include <unistd.h> | 10 #include <unistd.h> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 close(fh); | 36 close(fh); |
| 37 } | 37 } |
| 38 | 38 |
| 39 ret = chdir("/usr/games"); | 39 ret = chdir("/usr/games"); |
| 40 if (ret != 0) { | 40 if (ret != 0) { |
| 41 perror("Can change to /usr/games."); | 41 perror("Can change to /usr/games."); |
| 42 exit(1); | 42 exit(1); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 int nacl_main(int argc, char* argv[]) { | 46 int main(int argc, char* argv[]) { |
| 47 setup_unix_environment(argv[0]); | 47 setup_unix_environment(argv[0]); |
| 48 return nethack_main(argc, argv); | 48 return nethack_main(argc, argv); |
| 49 } | 49 } |
| OLD | NEW |