From 4b474dcd5315f977723f28b23a7208971e9e9710 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Wed, 13 Oct 2004 18:16:36 +0000 Subject: [PATCH] Begin work of socket server for automation --- zsnes/src/linux/sockserv.c | 17 +++++++++++++++++ zsnes/src/linux/sockserv.h | 17 +++++++++++++++++ zsnes/src/linux/zloaderw.c | 9 ++++++--- 3 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 zsnes/src/linux/sockserv.c create mode 100644 zsnes/src/linux/sockserv.h diff --git a/zsnes/src/linux/sockserv.c b/zsnes/src/linux/sockserv.c new file mode 100644 index 00000000..4c45dd43 --- /dev/null +++ b/zsnes/src/linux/sockserv.c @@ -0,0 +1,17 @@ +/* +Copyright (C) 1997-2001 ZSNES Team ( zsknight@zsnes.com / _demo_@zsnes.com ) +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later +version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ diff --git a/zsnes/src/linux/sockserv.h b/zsnes/src/linux/sockserv.h new file mode 100644 index 00000000..4c45dd43 --- /dev/null +++ b/zsnes/src/linux/sockserv.h @@ -0,0 +1,17 @@ +/* +Copyright (C) 1997-2001 ZSNES Team ( zsknight@zsnes.com / _demo_@zsnes.com ) +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later +version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ diff --git a/zsnes/src/linux/zloaderw.c b/zsnes/src/linux/zloaderw.c index b6135b35..7b29fd0d 100644 --- a/zsnes/src/linux/zloaderw.c +++ b/zsnes/src/linux/zloaderw.c @@ -226,6 +226,7 @@ int main (int argc, char *argv[]) { /* disables GUI */ case 'm': { +printf("Hello the gui should now be off."); guioff = 1; break; } @@ -316,14 +317,16 @@ int main (int argc, char *argv[]) { } case 'z': { + printf("\nDebugger not implemented for Linux version!\n"); // FIX STATMAT - if(*(argv[p]+1) == 's') + if((argv[p+1]) == 's') { // if(!hasroom) return 4; - autoloadstate=my_atoi(argv[p+1]) + 1; - p++; +// autoloadstate=my_atoi(argv[p+1]) + 1; +// p++; } else StereoSound=1; + // FIX STATMAT break; }