/[gxemul]/trunk/src/emul_parse.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/emul_parse.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 12 by dpavlin, Mon Oct 8 16:18:38 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   *  Copyright (C) 2005  Anders Gavare.  All rights reserved.   *  Copyright (C) 2005-2006  Anders Gavare.  All rights reserved.
3   *   *
4   *  Redistribution and use in source and binary forms, with or without   *  Redistribution and use in source and binary forms, with or without
5   *  modification, are permitted provided that the following conditions are met:   *  modification, are permitted provided that the following conditions are met:
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: emul_parse.c,v 1.33 2005/08/12 06:02:56 debug Exp $   *  $Id: emul_parse.c,v 1.36 2006/01/14 12:51:59 debug Exp $
29   *   *
30   *  Set up an emulation by parsing a config file.   *  Set up an emulation by parsing a config file.
31   *   *
# Line 561  static void parse__machine(struct emul * Line 561  static void parse__machine(struct emul *
561                          m->old_bintrans_enable = 0;                          m->old_bintrans_enable = 0;
562    
563                  /*  TODO: Hm...  */                  /*  TODO: Hm...  */
564                  if (m->bintrans_enable)                  if (m->bintrans_enable && m->arch == ARCH_MIPS)
565                          m->speed_tricks = 0;                          m->speed_tricks = 0;
566    
567                  if (cur_machine_bintrans_size[0])                  if (cur_machine_bintrans_size[0])
# Line 619  static void parse__machine(struct emul * Line 619  static void parse__machine(struct emul *
619                  else {                  else {
620                          m->x11_scaledown = atoi(cur_machine_x11_scaledown);                          m->x11_scaledown = atoi(cur_machine_x11_scaledown);
621                          if (m->x11_scaledown < 0) {                          if (m->x11_scaledown < 0) {
622                                    m->x11_scaleup = 0 - m->x11_scaledown;
623                                    m->x11_scaledown = 1;
624                            }
625                            if (m->x11_scaledown < 1) {
626                                  fprintf(stderr, "Invalid scaledown value"                                  fprintf(stderr, "Invalid scaledown value"
627                                      " (%i)\n", m->x11_scaledown);                                      " (%i)\n", m->x11_scaledown);
628                                  exit(1);                                  exit(1);

Legend:
Removed from v.12  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26