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: |
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 |
* |
* |
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]) |
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); |