| version 1.30, 2008/04/02 13:03:35 | version 1.32, 2011/01/15 14:37:09 | 
| Line 29 | Line 29 | 
 |  |  | 
 | #include <sys/stat.h> | #include <sys/stat.h> | 
 | #include <getopt.h> | #include <getopt.h> | 
 |  | #include <locale.h> | 
 | #include <signal.h> | #include <signal.h> | 
 |  |  | 
 | #if defined(USE_SDLAUDIO) || defined(USE_SDLMIXER) | #if defined(USE_SDLAUDIO) || defined(USE_SDLMIXER) | 
| Line 131  main(int argc, char *argv[]) | Line 132  main(int argc, char *argv[]) | 
 |  |  | 
 | progname = argv[0]; | progname = argv[0]; | 
 |  |  | 
 |  | setlocale(LC_ALL, ""); | 
 |  | bindtextdomain(np2appname, NP2LOCALEDIR); | 
 |  | bind_textdomain_codeset(np2appname, "UTF-8"); | 
 |  | textdomain(np2appname); | 
 |  |  | 
 | toolkit_initialize(); | toolkit_initialize(); | 
 | toolkit_arginit(&argc, &argv); | toolkit_arginit(&argc, &argv); | 
 |  |  | 
| Line 195  main(int argc, char *argv[]) | Line 201  main(int argc, char *argv[]) | 
 | } | } | 
 | if (modulefile[0] != '\0') { | if (modulefile[0] != '\0') { | 
 | /* font file */ | /* font file */ | 
| snprintf(np2cfg.fontfile, sizeof(np2cfg.fontfile), | file_cpyname(np2cfg.fontfile, modulefile, | 
| "%s/font.bmp", modulefile); | sizeof(np2cfg.fontfile)); | 
|  | file_cutname(np2cfg.fontfile); | 
|  | file_setseparator(np2cfg.fontfile, sizeof(np2cfg.fontfile)); | 
|  | file_catname(np2cfg.fontfile, "font.bmp", | 
|  | sizeof(np2cfg.fontfile)); | 
 |  |  | 
 | /* resume/statsave dir */ | /* resume/statsave dir */ | 
 | file_cpyname(statpath, modulefile, sizeof(statpath)); | file_cpyname(statpath, modulefile, sizeof(statpath)); |