Begin work of socket server for automation
This commit is contained in:
17
zsnes/src/linux/sockserv.c
Normal file
17
zsnes/src/linux/sockserv.c
Normal file
@@ -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.
|
||||||
|
*/
|
||||||
17
zsnes/src/linux/sockserv.h
Normal file
17
zsnes/src/linux/sockserv.h
Normal file
@@ -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.
|
||||||
|
*/
|
||||||
@@ -226,6 +226,7 @@ int main (int argc, char *argv[]) {
|
|||||||
|
|
||||||
/* disables GUI */
|
/* disables GUI */
|
||||||
case 'm': {
|
case 'm': {
|
||||||
|
printf("Hello the gui should now be off.");
|
||||||
guioff = 1;
|
guioff = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -316,14 +317,16 @@ int main (int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case 'z': {
|
case 'z': {
|
||||||
|
printf("\nDebugger not implemented for Linux version!\n");
|
||||||
// FIX STATMAT
|
// FIX STATMAT
|
||||||
if(*(argv[p]+1) == 's')
|
if((argv[p+1]) == 's')
|
||||||
{
|
{
|
||||||
// if(!hasroom) return 4;
|
// if(!hasroom) return 4;
|
||||||
autoloadstate=my_atoi(argv[p+1]) + 1;
|
// autoloadstate=my_atoi(argv[p+1]) + 1;
|
||||||
p++;
|
// p++;
|
||||||
}
|
}
|
||||||
else StereoSound=1;
|
else StereoSound=1;
|
||||||
|
|
||||||
// FIX STATMAT
|
// FIX STATMAT
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user