mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
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:
parent
3a21380f9b
commit
58054449e3
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user