now saves to ~/.fceultra/movie/#.fc2

This commit is contained in:
punkrockguy318 2008-07-03 06:50:46 +00:00
parent 7429008e25
commit 1256d0dd4c
2 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ LoadCPalette(const std::string &file)
static void static void
CreateDirs(const std::string &dir) CreateDirs(const std::string &dir)
{ {
char *subs[7]={"fcs","fcm","snaps","gameinfo","sav","cheats","movie"}; char *subs[7]={"fcs","snaps","gameinfo","sav","cheats","movie"};
std::string subdir; std::string subdir;
int x; int x;

View File

@ -224,10 +224,10 @@ KeyboardCommands()
if(is_shift) { if(is_shift) {
char* fname = g_config->getConfigDirectory(); char* fname = g_config->getConfigDirectory();
char fnum[2]; char fnum[2];
strcat(fname, "/fcm/"); strcat(fname, "/movie/");
sprintf(fnum, "%d", movie_slot); sprintf(fnum, "%d", movie_slot);
strcat(fname, fnum); strcat(fname, fnum);
strcat(fname, ".fcm"); strcat(fname, ".fc2");
FCEUI_printf("Recording movie to %s\n", fname); FCEUI_printf("Recording movie to %s\n", fname);
FCEUI_SaveMovie(fname, MOVIE_FLAG_NONE); FCEUI_SaveMovie(fname, MOVIE_FLAG_NONE);
@ -242,10 +242,10 @@ KeyboardCommands()
if(is_shift) { if(is_shift) {
char* fname = g_config->getConfigDirectory(); char* fname = g_config->getConfigDirectory();
char fnum[2]; char fnum[2];
strcat(fname, "/fcm/"); strcat(fname, "/movie/");
sprintf(fnum, "%d", movie_slot); sprintf(fnum, "%d", movie_slot);
strcat(fname, fnum); strcat(fname, fnum);
strcat(fname, ".fcm"); strcat(fname, ".fc2");
FCEUI_printf("Playing back movie located at %s\n", fname); FCEUI_printf("Playing back movie located at %s\n", fname);
FCEUI_LoadMovie(fname , false, false, false); FCEUI_LoadMovie(fname , false, false, false);