/[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 20 by dpavlin, Mon Oct 8 16:19:23 2007 UTC
# 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.35 2005/11/06 21:15:55 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.20

  ViewVC Help
Powered by ViewVC 1.1.26