| 1 | /* Mednafen - Multi-system Emulator |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by |
| 5 | * the Free Software Foundation; either version 2 of the License, or |
| 6 | * (at your option) any later version. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program; if not, write to the Free Software |
| 15 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 16 | */ |
| 17 | |
| 18 | #include <stdint.h> |
| 19 | #include <string.h> |
| 20 | #include "settings.h" |
| 21 | |
| 22 | uint64_t MDFN_GetSettingUI(const char *name) |
| 23 | { |
| 24 | if (!strcmp("wswan.ocmultiplier", name)) |
| 25 | return 1; |
| 26 | if (!strcmp("wswan.bday", name)) |
| 27 | return 23; |
| 28 | if (!strcmp("wswan.bmonth", name)) |
| 29 | return 6; |
| 30 | if (!strcmp("wswan.byear", name)) |
| 31 | return 1989; |
| 32 | if (!strcmp("wswan.slstart", name)) |
| 33 | return 4; |
| 34 | if (!strcmp("wswan.slend", name)) |
| 35 | return 235; |
| 36 | |
| 37 | return 0; |
| 38 | } |
| 39 | |
| 40 | int64_t MDFN_GetSettingI(const char *name) |
| 41 | { |
| 42 | if (!strcmp("wswan.sex", name)) |
| 43 | return 0; |
| 44 | if (!strcmp("wswan.blood", name)) |
| 45 | return 0; |
| 46 | return 0; |
| 47 | } |
| 48 | |
| 49 | bool MDFN_GetSettingB(const char *name) |
| 50 | { |
| 51 | if (!strcmp("cheats", name)) |
| 52 | return 0; |
| 53 | if (!strcmp("wswan.forcemono", name)) |
| 54 | return 0; |
| 55 | if (!strcmp("wswan.language", name)) |
| 56 | return 1; |
| 57 | if (!strcmp("wswan.correct_aspect", name)) |
| 58 | return 1; |
| 59 | return 0; |
| 60 | } |
| 61 | |
| 62 | const char *MDFN_GetSettingS(const char *name) |
| 63 | { |
| 64 | if (!strcmp("wswan.name", name)) |
| 65 | return "Mednafen"; |
| 66 | return ""; |
| 67 | } |