Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with files not found #375

Merged
merged 3 commits into from
Dec 7, 2014
Merged

Deal with files not found #375

merged 3 commits into from
Dec 7, 2014

Conversation

MarianoGnu
Copy link
Member

Fixes #374

Currently we ignore
(*) "(OFF)"[english]
(*) (Brack)[polish].
Also, show a warning output when sound file is not found.
(*)Even if you still have a file called (OFF).wav it wont be played.
(*)If you have a file called (Brak).wav it will be played, but if you don't we skip the warning to prevent noise.

This behavior mush be checked on Polish's RPG Maker translation.
fdelapena added a commit that referenced this pull request Dec 7, 2014
@fdelapena fdelapena merged commit 8fdda1c into EasyRPG:master Dec 7, 2014
std::string const path = FileFinder::FindMusic(file);
if (path.empty()) {
//HACK: Polish RTP translation replaced (OFF) reserved string with (Brak)
if (file != ("Brak"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait a minute... ("Brak")? Shouldn't it be "(Brak)"?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, yep... Nice catch!

@MarianoGnu
Copy link
Member Author

Right... how could i...

@Ghabry
Copy link
Member

Ghabry commented Dec 8, 2014

-1
Dont do that off/brak checking in the low level audio code.
Check this in the game classes

fdelapena added a commit that referenced this pull request Jan 11, 2015
Move (OFF)/(Brak) checking to game classes (#374/#375)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Handle (Brak) as (OFF) for games created with Polish RPG Maker editor translation
4 participants