Remove unused arguments from mve_Init()

Before this change, mve_Init() took two arguments. Neither of the
arguments were ever used. This commit simplifies some code by removing
those unused arguments.

The main motivation behind this commit is to make it easier to make a
future commit. One of the arguments that this commit removes was named
dir. dir was a path to the movies/ directory. The future commit will
make it so that there can be more than one movies/ directory. Removing
dir means that I won’t have to mess with dir when I create that future
commit.
This commit is contained in:
Jason Yundt 2024-05-19 17:08:33 -04:00
parent 3a21380f9b
commit 58054449e3
3 changed files with 3 additions and 7 deletions

View File

@ -45,10 +45,7 @@ bool InitCinematics() {
return true;
}
char path[_MAX_PATH];
ddio_MakePath(path, Base_directory, "movies", NULL);
if (mve_Init(path, Sound_card_name) != MVELIB_NOERROR)
if (mve_Init() != MVELIB_NOERROR)
return false;
mve_SetCallback(CinematicCallback);

View File

@ -53,8 +53,7 @@ static bool mve_InitSound();
static void mve_CloseSound();
#endif
// sets the directory where movies are stored
int mve_Init(const char *dir, const char *sndcard) {
int mve_Init() {
#ifndef NO_MOVIES
return MVELIB_NOERROR;
#else

View File

@ -33,7 +33,7 @@
#define MVELIB_PLAYBACK_ERROR (-5)
#define MVELIB_PLAYBACK_ABORTED (-6)
int mve_Init(const char *dir, const char *sndcard);
int mve_Init();
// simply plays a movie.
int mve_PlayMovie(const std::filesystem::path &pMovieName, oeApplication *pApp);