1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Revert "Add an argument to look for music only in the base location"

This reverts commit ce0fe82a02c0334a068bd2b78fa1f92e81680806.

It's not very useful..
This commit is contained in:
Mathieu Schroeter 2018-01-31 07:20:31 +01:00
parent ce0fe82a02
commit e52704d937
2 changed files with 12 additions and 16 deletions

View File

@ -3066,7 +3066,7 @@ CEvent::IsHelpHide ()
} }
std::string std::string
CEvent::GetMusicLocation (Sint32 music, std::string & format, bool onlyBase) CEvent::GetMusicLocation (Sint32 music, std::string & format)
{ {
static const std::string exts[] = {"ogg", "mid"}; static const std::string exts[] = {"ogg", "mid"};
static const Location locs[] = {LOCATION_USER, LOCATION_BASE}; static const Location locs[] = {LOCATION_USER, LOCATION_BASE};
@ -3077,9 +3077,6 @@ CEvent::GetMusicLocation (Sint32 music, std::string & format, bool onlyBase)
// Look for music in the user directory, then in the game directory. // Look for music in the user directory, then in the game directory.
for (size_t i = 0; i < countof (locs); ++i) for (size_t i = 0; i < countof (locs); ++i)
{ {
if (onlyBase && locs[i] != LOCATION_BASE)
continue;
format = exts[g_restoreMidi ? 1 : 0]; format = exts[g_restoreMidi ? 1 : 0];
auto filename = auto filename =
string_format ("music/music%.3d.%s", music - 1, format.c_str ()); string_format ("music/music%.3d.%s", music - 1, format.c_str ());

View File

@ -94,18 +94,17 @@ public:
Point GetMousePos (); Point GetMousePos ();
void void
Create (CPixmap * pPixmap, CDecor * pDecor, CSound * pSound, CMovie * pMovie); Create (CPixmap * pPixmap, CDecor * pDecor, CSound * pSound, CMovie * pMovie);
void SetFullScreen (bool bFullScreen); void SetFullScreen (bool bFullScreen);
Sint32 GetWorld (); Sint32 GetWorld ();
Sint32 GetPhysicalWorld (); Sint32 GetPhysicalWorld ();
Sint32 GetImageWorld (); Sint32 GetImageWorld ();
bool IsHelpHide (); bool IsHelpHide ();
std::string std::string GetMusicLocation (Sint32 music, std::string & format);
GetMusicLocation (Sint32 music, std::string & format, bool onlyBase = false); bool ChangePhase (Uint32 phase);
bool ChangePhase (Uint32 phase); bool MovieToStart ();
bool MovieToStart (); Uint32 GetPhase ();
Uint32 GetPhase (); void TryInsert ();
void TryInsert ();
Sint32 GetButtonIndex (Sint32 button); Sint32 GetButtonIndex (Sint32 button);
Sint32 GetState (Sint32 button); Sint32 GetState (Sint32 button);