~ubuntu-branches/ubuntu/maverick/vice/maverick

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2005-02-01 11:30:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050201113026-3eyakzsmmheclvjg
Tags: 1.16-1
* New upstream version
* Fixes crash on 64-bit architectures (closes: #287640)
* x128 working again (closes: #286767)
* Works fine with /dev/dsp in use (not in the main changelog, but tested
  on my local machine as working).  Presumably, this also takes care of
  the issue with dsp being held.  I'm not sure if this is because I'm
  testing it on a 2.6 kernel now -- if you are still having problems
  with /dev/dsp, please reopen the bugs. (closes: #152952, #207942)
* Don't kill Makefile.in on clean

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#include "debug.h"
46
46
#include "drive.h"
47
47
#include "fullscreen.h"
 
48
#include "gfxoutput.h"
48
49
#include "init.h"
49
50
#include "initcmdline.h"
50
51
#include "lib.h"
101
102
 
102
103
#ifndef __riscos
103
104
    if (atexit(main_exit) < 0) {
104
 
        perror("atexit");
 
105
        archdep_startup_log_error("atexit");
105
106
        return -1;
106
107
    }
107
108
#endif
146
147
        resources_set_value("SoundBufferSize", (resource_value_t)1000);
147
148
        resources_set_value("SoundSuspendTime", (resource_value_t)0);
148
149
    } else {
149
 
        int retval = resources_load(NULL);
 
150
        int retval;
 
151
 
 
152
        gfxoutput_early_init();
 
153
 
 
154
        retval = resources_load(NULL);
150
155
 
151
156
        if (retval < 0) {
152
157
            /* The resource file might contain errors, and thus certain
158
163
        }
159
164
    }
160
165
 
161
 
    if (initcmdline_check_args(argc, argv) < 0)
162
 
        return -1;
163
 
 
164
166
    if (log_init() < 0)
165
167
        archdep_startup_log_error("Cannot startup logging system.\n");
166
168
 
 
169
    if (initcmdline_check_args(argc, argv) < 0)
 
170
        return -1;
 
171
 
167
172
    program_name = archdep_program_name();
168
173
 
169
174
    /* VICE boot sequence.  */