mirror of https://github.com/snes9xgit/snes9x.git
Remove S9xChooseFilename
This is integration of the frontend with the core. Disable the snapshot button mappings that use it. Any frontend should implement those port commands its own.
This commit is contained in:
parent
063b3a959c
commit
f04f1bbe44
|
@ -2269,11 +2269,9 @@ void S9xApplyCommand (s9xcommand_t cmd, int16 data1, int16 data2)
|
|||
break;
|
||||
|
||||
case LoadFreezeFile:
|
||||
S9xUnfreezeGame(S9xChooseFilename(TRUE));
|
||||
break;
|
||||
|
||||
case SaveFreezeFile:
|
||||
S9xFreezeGame(S9xChooseFilename(FALSE));
|
||||
break;
|
||||
|
||||
case LoadOopsFile:
|
||||
|
|
|
@ -47,7 +47,6 @@ const char * S9xStringInput (const char *);
|
|||
const char * S9xGetDirectory (enum s9x_getdirtype);
|
||||
const char * S9xGetFilename (const char *, enum s9x_getdirtype);
|
||||
const char * S9xGetFilenameInc (const char *, enum s9x_getdirtype);
|
||||
const char * S9xChooseFilename (bool8);
|
||||
const char * S9xBasename (const char *);
|
||||
|
||||
// Routines the port has to implement if it uses command-line
|
||||
|
|
|
@ -298,10 +298,6 @@
|
|||
<p>
|
||||
Called when Snes9x wants to know the directory <code>dirtype</code>.
|
||||
</p>
|
||||
<h3><code>const char *S9xChooseFilename (bool8 read_only)</code></h3>
|
||||
<p>
|
||||
If your port can match Snes9x's built-in <code>LoadFreezeFile</code>/<code>SaveFreezeFile</code> command (see <code>controls.cpp</code>), you may choose to use this function. Otherwise return <code>NULL</code>.
|
||||
</p>
|
||||
<h3><code>const char *S9xChooseMovieFilename (bool8 read_only)</code></h3>
|
||||
<p>
|
||||
If your port can match Snes9x's built-in <code>BeginRecordingMovie</code>/<code>LoadMovie</code> command (see <code>controls.cpp</code>), you may choose to use this function. Otherwise return <code>NULL</code>.
|
||||
|
|
|
@ -29,11 +29,6 @@ const char *S9xChooseMovieFilename(bool8 read_only)
|
|||
return path;
|
||||
}
|
||||
|
||||
const char *S9xChooseFilename(bool8 read_only)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
const char *S9xGetFilenameInc(const char *e, enum s9x_getdirtype dirtype)
|
||||
{
|
||||
static char filename[PATH_MAX + 1];
|
||||
|
|
|
@ -2125,7 +2125,6 @@ const char* S9xGetDirectory(s9x_getdirtype type)
|
|||
return "";
|
||||
}
|
||||
void S9xInitInputDevices() {}
|
||||
const char* S9xChooseFilename(unsigned char) { return ""; }
|
||||
void S9xHandlePortCommand(s9xcommand_t, short, short) {}
|
||||
bool S9xPollButton(unsigned int, bool*) { return false; }
|
||||
void S9xToggleSoundChannel(int) {}
|
||||
|
|
|
@ -365,11 +365,6 @@ const char * S9xGetFilenameInc (const char *inExt, enum s9x_getdirtype dirtype)
|
|||
return (NULL);
|
||||
}
|
||||
|
||||
const char * S9xChooseFilename (bool8 read_only)
|
||||
{
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
const char * S9xChooseMovieFilename (bool8 read_only)
|
||||
{
|
||||
return (NULL);
|
||||
|
|
|
@ -588,25 +588,6 @@ const char * S9xBasename (const char *f)
|
|||
return (f);
|
||||
}
|
||||
|
||||
const char * S9xChooseFilename (bool8 read_only)
|
||||
{
|
||||
char s[PATH_MAX + 1];
|
||||
char drive[_MAX_DRIVE + 1], dir[_MAX_DIR + 1], fname[_MAX_FNAME + 1], ext[_MAX_EXT + 1];
|
||||
|
||||
const char *filename;
|
||||
char title[64];
|
||||
|
||||
_splitpath(Memory.ROMFilename, drive, dir, fname, ext);
|
||||
snprintf(s, PATH_MAX + 1, "%s.frz", fname);
|
||||
sprintf(title, "%s snapshot filename", read_only ? "Select load" : "Choose save");
|
||||
|
||||
S9xSetSoundMute(TRUE);
|
||||
filename = S9xSelectFilename(s, S9xGetDirectory(SNAPSHOT_DIR), "frz", title);
|
||||
S9xSetSoundMute(FALSE);
|
||||
|
||||
return (filename);
|
||||
}
|
||||
|
||||
const char * S9xChooseMovieFilename (bool8 read_only)
|
||||
{
|
||||
char s[PATH_MAX + 1];
|
||||
|
|
|
@ -10843,12 +10843,6 @@ void S9xHandlePortCommand(s9xcommand_t cmd, int16 data1, int16 data2)
|
|||
return;
|
||||
}
|
||||
|
||||
// NYI
|
||||
const char *S9xChooseFilename (bool8 read_only)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// NYI
|
||||
const char *S9xChooseMovieFilename (bool8 read_only)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue