Load Game on Startup
Moderator: ZSNES Mods
Load Game on Startup
Is there any way to use command line arguements to skip the intro screen and just go straight to the game?
I'm trying to build a front end for several emulators, and this is the only one I'm having trouble with. For you programmers out there, here's an example of what I'm trying...
Process.Start(Application.StartupPath + "\\ZSNESW\\zsnesw.exe ","ZELDA 3.SMC");
Where ZELDA 3.SMC is in the zsnesw.exe directory.
Thanks in advance for any help..
I'm trying to build a front end for several emulators, and this is the only one I'm having trouble with. For you programmers out there, here's an example of what I'm trying...
Process.Start(Application.StartupPath + "\\ZSNESW\\zsnesw.exe ","ZELDA 3.SMC");
Where ZELDA 3.SMC is in the zsnesw.exe directory.
Thanks in advance for any help..
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
<Nach> http://board.zsnes.com/phpBB2/viewtopic.php?t=11738
<Nach> Is he trying to get a game to skip their intros?
<grinvader> nah
<grinvader> skipping the gui
<Nach> it does skip the GUI if you pass it a ROM
<grinvader> yes
<Nach> so I don't know what that guys problem is
<grinvader> but that's what i understand from what he wrote
<grinvader> me neither
<Nach> maybe he's not passing a valid ROM
<grinvader> zelda3.smc seems pretty valid
<Nach> well, could be he's not passing the right path to the ROM
<Nach> Is he trying to get a game to skip their intros?
<grinvader> nah
<grinvader> skipping the gui
<Nach> it does skip the GUI if you pass it a ROM
<grinvader> yes
<Nach> so I don't know what that guys problem is
<grinvader> but that's what i understand from what he wrote
<grinvader> me neither
<Nach> maybe he's not passing a valid ROM
<grinvader> zelda3.smc seems pretty valid
<Nach> well, could be he's not passing the right path to the ROM
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
_____________
Insane Coding
-
- ZSNES Shake Shake Prinny
- Posts: 5632
- Joined: Wed Jul 28, 2004 4:15 pm
- Location: PAL50, dood !
I blame the space in your ROM name.
I curse whoever allowed for spaces in filenames, as a matter of fact. Stupidest thing ever.
PROTIP: _ is your friend.
I curse whoever allowed for spaces in filenames, as a matter of fact. Stupidest thing ever.
PROTIP: _ is your friend.
皆黙って俺について来い!!
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Code: Select all
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
Ooh, I didn't notice the space. Yeah, then he's missing \" around it.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
_____________
Insane Coding
-
- New Member
- Posts: 9
- Joined: Fri Feb 09, 2007 3:05 am
maybe this???
there is a great frontend readily available for multiple emulators called MAMEWAH! It requires a little bit of setup but no biggy.
PS: don't curse who ever created spaces in filenames....curse the software you use for not handling it correctly!
PS: don't curse who ever created spaces in filenames....curse the software you use for not handling it correctly!
-
- Lurker
- Posts: 102
- Joined: Sat Feb 25, 2006 7:47 pm
- Contact:
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
Re: maybe this???
Speak for yourself.rchuncleskeleton wrote: PS: don't curse who ever created spaces in filenames....curse the software you use for not handling it correctly!
I am going to curse whoever invented spaces in filenames, and allowed anything more than 8.3
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
_____________
Insane Coding
Re: maybe this???
So damn true.Nach wrote:I am going to curse whoever invented spaces in filenames, and allowed anything more than 8.3
Why would anyone use Street Fighter II Turbo - Hyper Fighting (U) [!].smc when SF2T.smc or SF2Turbo.smc works just as good, is beyond me.
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
Re: maybe this???
*nod* NO$GMB also having problem with spaces in file name, even if i enclosed the file name with quotes (")Kajuru wrote:So damn true.Nach wrote:I am going to curse whoever invented spaces in filenames, and allowed anything more than 8.3
Why would anyone use Street Fighter II Turbo - Hyper Fighting (U) [!].smc when SF2T.smc or SF2Turbo.smc works just as good, is beyond me.
i must rename all the rom using _
Re: maybe this???
Download RenameFiles, it easily replaces SPACES with _Rashidi wrote: i must rename all the rom using _
-
- ZSNES Shake Shake Prinny
- Posts: 5632
- Joined: Wed Jul 28, 2004 4:15 pm
- Location: PAL50, dood !
Re: maybe this???
No. first it's not even "created", it's allowed. I'm not seeing you curse windows for not "handling" A LOT of characters in their filenames. Like * or ?.rchuncleskeleton wrote:PS: don't curse who ever created spaces in filenames....curse the software you use for not handling it correctly!
Let me preempt the argument a bit.
And what do you think blank spaces do ?exoskeleton wrote:oh but it would make it very tough to differentiate between wildcards and actual filenames!
They make any kind of CL parsing completely retarded, turning them into backslashed hell.
Backslashes that windows wouldn't even be able to use, with its oh so smart "let's use backslash for directory levels !" stupidity, and have to use an even worse escape sequence, which prevents YET another character from being in filenames.
Fixing one issue by making 2 others. Brilliant.
Code: Select all
-rw------- 1 grin users 6 2008-07-16 19:43 "_spaces_fucking_suck
-rw------- 1 grin users 7 2008-07-16 19:42 *_yeah_they_do
-rw------- 1 grin users 10 2008-07-16 19:47 wtf_r_u_doing?
皆黙って俺について来い!!
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Code: Select all
<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
Don't joke about stuff like that.
This will appear as "cool stuff.txt" in any HTML rendering application if it isn't escaped. And who do you think even bothers to escape HTML in some program displaying a directory tree?
For example, if you were programming in Qt, and used a QTextEdit to display a full path list of a bunch of files, you'll have a bold file name.
If you used whichever language to display tree contents on a web server, presto, bold filenames.
Nobody bothers checking file names for escaping, since we all know how absurd that is
Case in point:

Here's some PHP code so you can do it yourself:
Code: Select all
/tmp> ls -la \<b\>cool\ stuff\</b\>.txt
-rw-r--r-- 1 nach nach 0 2008-07-17 08:31 <b>cool stuff</b>.txt
/tmp>
For example, if you were programming in Qt, and used a QTextEdit to display a full path list of a bunch of files, you'll have a bold file name.
If you used whichever language to display tree contents on a web server, presto, bold filenames.
Nobody bothers checking file names for escaping, since we all know how absurd that is

Case in point:

Here's some PHP code so you can do it yourself:
Code: Select all
function file_modes($mode)
{
$mode_str;
$mode_str.= ($mode & 0040000) ? 'd' : '-';
$mode_str.= ($mode & 00400) ? 'r' : '-';
$mode_str.= ($mode & 00200) ? 'w' : '-';
$mode_str.= ($mode & 00100) ? 'x' : '-';
$mode_str.= ($mode & 00040) ? 'r' : '-';
$mode_str.= ($mode & 00020) ? 'w' : '-';
$mode_str.= ($mode & 00010) ? 'x' : '-';
$mode_str.= ($mode & 00004) ? 'r' : '-';
$mode_str.= ($mode & 00002) ? 'w' : '-';
$mode_str.= ($mode & 00001) ? 'x' : '-';
return($mode_str);
}
function directory_print($dir)
{
$dirs = array();
print "<h3>Contents of: $dir</h3>\n";
if ($dh = opendir($dir))
{
print "<table border=\"1\">\n<tr><td>Permissions</td><td>Owner</td><td>Group</td><td>Size</td><td>Modified</td><td>Name</td></tr>\n";
while (($file = readdir($dh)) !== false)
{
if ($file[0] != ".")
{
if (filetype($dir.$file) == "dir")
{
array_push($dirs, $dir.$file);
}
$stat_results = stat($dir.$file);
$uid = posix_getpwuid($stat_results['uid']);
$gid = posix_getgrgid($stat_results['gid']);
print "<tr><td>".file_modes($stat_results['mode'])."</td><td>".$uid['name']."</td><td>".$gid['name']."</td><td>".$stat_results['size']."</td><td>".date("Y-m-d h:i:sA", $stat_results['mtime'])."</td><td>".$dir.$file."</td></tr>\n";
}
}
closedir($dh);
print "</table>\n";
}
foreach ($dirs as $newdir)
{
directory_print($newdir."/");
}
}
directory_print("/tmp/");
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
_____________
Insane Coding