mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Add a global settings entry for switching between ogg and midi music
This commit is contained in:
parent
c6fbe158da
commit
da3d683bf7
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-12-07 17:31+0100\n"
|
"POT-Creation-Date: 2017-12-12 23:45+0100\n"
|
||||||
"PO-Revision-Date: 2017-12-07 17:36+0100\n"
|
"PO-Revision-Date: 2017-12-07 17:36+0100\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -282,6 +282,11 @@ msgstr "Stein bearbeiten"
|
|||||||
msgid "Carve rocks"
|
msgid "Carve rocks"
|
||||||
msgstr "Steine bearbeiten"
|
msgstr "Steine bearbeiten"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Change the\n"
|
||||||
|
"music format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Change the\n"
|
"Change the\n"
|
||||||
"window size"
|
"window size"
|
||||||
@ -526,6 +531,9 @@ msgstr "Roboterchef"
|
|||||||
msgid "Medical potion"
|
msgid "Medical potion"
|
||||||
msgstr "Medikament"
|
msgstr "Medikament"
|
||||||
|
|
||||||
|
msgid "Midi"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Mine"
|
msgid "Mine"
|
||||||
msgstr "Bergwerk"
|
msgstr "Bergwerk"
|
||||||
|
|
||||||
@ -630,6 +638,9 @@ msgstr "Du kannst jetzt mit den Missionen beginnen."
|
|||||||
msgid "Occupied ground"
|
msgid "Occupied ground"
|
||||||
msgstr "Untergrund schon besetzt"
|
msgstr "Untergrund schon besetzt"
|
||||||
|
|
||||||
|
msgid "Ogg"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Open another game"
|
msgid "Open another game"
|
||||||
msgstr "Gespeicherte Mission öffnen"
|
msgstr "Gespeicherte Mission öffnen"
|
||||||
|
|
||||||
@ -845,6 +856,12 @@ msgstr "Bäume"
|
|||||||
msgid "Tree trunks"
|
msgid "Tree trunks"
|
||||||
msgstr "Baumstämme"
|
msgstr "Baumstämme"
|
||||||
|
|
||||||
|
msgid "Use Midi music (original)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Use Ogg music"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Version"
|
msgid "Version"
|
||||||
msgstr "Version"
|
msgstr "Version"
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-12-07 17:31+0100\n"
|
"POT-Creation-Date: 2017-12-12 23:45+0100\n"
|
||||||
"PO-Revision-Date: 2017-02-27 21:28+0100\n"
|
"PO-Revision-Date: 2017-02-27 21:28+0100\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -238,6 +238,11 @@ msgstr ""
|
|||||||
msgid "Carve rocks"
|
msgid "Carve rocks"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Change the\n"
|
||||||
|
"music format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Change the\n"
|
"Change the\n"
|
||||||
"window size"
|
"window size"
|
||||||
@ -471,6 +476,9 @@ msgstr ""
|
|||||||
msgid "Medical potion"
|
msgid "Medical potion"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Midi"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Mine"
|
msgid "Mine"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -573,6 +581,9 @@ msgstr ""
|
|||||||
msgid "Occupied ground"
|
msgid "Occupied ground"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Ogg"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Open another game"
|
msgid "Open another game"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -775,6 +786,12 @@ msgstr ""
|
|||||||
msgid "Tree trunks"
|
msgid "Tree trunks"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Use Midi music (original)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Use Ogg music"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Version"
|
msgid "Version"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-12-07 17:31+0100\n"
|
"POT-Creation-Date: 2017-12-12 23:45+0100\n"
|
||||||
"PO-Revision-Date: 2017-12-07 17:37+0100\n"
|
"PO-Revision-Date: 2017-12-07 17:37+0100\n"
|
||||||
"Last-Translator: Mathieu Schroeter <mathieu@schroetersa.ch>\n"
|
"Last-Translator: Mathieu Schroeter <mathieu@schroetersa.ch>\n"
|
||||||
"Language-Team: French <kde-i18n-doc@kde.org>\n"
|
"Language-Team: French <kde-i18n-doc@kde.org>\n"
|
||||||
@ -280,6 +280,11 @@ msgstr "Taille un rocher"
|
|||||||
msgid "Carve rocks"
|
msgid "Carve rocks"
|
||||||
msgstr "Taille des rochers"
|
msgstr "Taille des rochers"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Change the\n"
|
||||||
|
"music format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Change the\n"
|
"Change the\n"
|
||||||
"window size"
|
"window size"
|
||||||
@ -521,6 +526,9 @@ msgstr "Robot-maître"
|
|||||||
msgid "Medical potion"
|
msgid "Medical potion"
|
||||||
msgstr "Potion"
|
msgstr "Potion"
|
||||||
|
|
||||||
|
msgid "Midi"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Mine"
|
msgid "Mine"
|
||||||
msgstr "Mine de fer"
|
msgstr "Mine de fer"
|
||||||
|
|
||||||
@ -625,6 +633,9 @@ msgstr "Passe maintenant aux missions."
|
|||||||
msgid "Occupied ground"
|
msgid "Occupied ground"
|
||||||
msgstr "Terrain occupé"
|
msgstr "Terrain occupé"
|
||||||
|
|
||||||
|
msgid "Ogg"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Open another game"
|
msgid "Open another game"
|
||||||
msgstr "Ouvrir une autre partie"
|
msgstr "Ouvrir une autre partie"
|
||||||
|
|
||||||
@ -835,6 +846,12 @@ msgstr "Arbres"
|
|||||||
msgid "Tree trunks"
|
msgid "Tree trunks"
|
||||||
msgstr "Troncs"
|
msgstr "Troncs"
|
||||||
|
|
||||||
|
msgid "Use Midi music (original)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Use Ogg music"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Version"
|
msgid "Version"
|
||||||
msgstr "Version"
|
msgstr "Version"
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-12-07 17:31+0100\n"
|
"POT-Creation-Date: 2017-12-12 23:45+0100\n"
|
||||||
"PO-Revision-Date: 2017-12-07 17:38+0100\n"
|
"PO-Revision-Date: 2017-12-07 17:38+0100\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -280,6 +280,11 @@ msgstr "Spacca una roccia"
|
|||||||
msgid "Carve rocks"
|
msgid "Carve rocks"
|
||||||
msgstr "Spacca delle roccie"
|
msgstr "Spacca delle roccie"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Change the\n"
|
||||||
|
"music format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Change the\n"
|
"Change the\n"
|
||||||
"window size"
|
"window size"
|
||||||
@ -524,6 +529,9 @@ msgstr "Robot-capo"
|
|||||||
msgid "Medical potion"
|
msgid "Medical potion"
|
||||||
msgstr "Pozione"
|
msgstr "Pozione"
|
||||||
|
|
||||||
|
msgid "Midi"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Mine"
|
msgid "Mine"
|
||||||
msgstr "Miniera"
|
msgstr "Miniera"
|
||||||
|
|
||||||
@ -628,6 +636,9 @@ msgstr "Ora passa alle missioni."
|
|||||||
msgid "Occupied ground"
|
msgid "Occupied ground"
|
||||||
msgstr "Terreno occupato"
|
msgstr "Terreno occupato"
|
||||||
|
|
||||||
|
msgid "Ogg"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Open another game"
|
msgid "Open another game"
|
||||||
msgstr "Apri un'altra partita"
|
msgstr "Apri un'altra partita"
|
||||||
|
|
||||||
@ -838,6 +849,12 @@ msgstr "Alberi"
|
|||||||
msgid "Tree trunks"
|
msgid "Tree trunks"
|
||||||
msgstr "Tronchi"
|
msgstr "Tronchi"
|
||||||
|
|
||||||
|
msgid "Use Midi music (original)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Use Ogg music"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Version"
|
msgid "Version"
|
||||||
msgstr "Versione"
|
msgstr "Versione"
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-12-07 17:31+0100\n"
|
"POT-Creation-Date: 2017-12-12 23:45+0100\n"
|
||||||
"PO-Revision-Date: 2017-12-07 17:39+0100\n"
|
"PO-Revision-Date: 2017-12-07 17:39+0100\n"
|
||||||
"Last-Translator: tomangelo <tomangelo@wp.pl>\n"
|
"Last-Translator: tomangelo <tomangelo@wp.pl>\n"
|
||||||
"Language-Team: TerranovaTeam <contact@colobot.info>\n"
|
"Language-Team: TerranovaTeam <contact@colobot.info>\n"
|
||||||
@ -281,6 +281,11 @@ msgstr "Wyłup skałę"
|
|||||||
msgid "Carve rocks"
|
msgid "Carve rocks"
|
||||||
msgstr "Wyłup skały"
|
msgstr "Wyłup skały"
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Change the\n"
|
||||||
|
"music format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"Change the\n"
|
"Change the\n"
|
||||||
"window size"
|
"window size"
|
||||||
@ -522,6 +527,9 @@ msgstr "Mistrz robotów"
|
|||||||
msgid "Medical potion"
|
msgid "Medical potion"
|
||||||
msgstr "Lekarstwo"
|
msgstr "Lekarstwo"
|
||||||
|
|
||||||
|
msgid "Midi"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Mine"
|
msgid "Mine"
|
||||||
msgstr "Kopalnia"
|
msgstr "Kopalnia"
|
||||||
|
|
||||||
@ -626,6 +634,9 @@ msgstr "Teraz spróbuj swoich sił w misjach"
|
|||||||
msgid "Occupied ground"
|
msgid "Occupied ground"
|
||||||
msgstr "Teren zajęty"
|
msgstr "Teren zajęty"
|
||||||
|
|
||||||
|
msgid "Ogg"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Open another game"
|
msgid "Open another game"
|
||||||
msgstr "Otwórz poprzednią grę"
|
msgstr "Otwórz poprzednią grę"
|
||||||
|
|
||||||
@ -836,6 +847,12 @@ msgstr "Drzewo"
|
|||||||
msgid "Tree trunks"
|
msgid "Tree trunks"
|
||||||
msgstr "Pnie drzew"
|
msgstr "Pnie drzew"
|
||||||
|
|
||||||
|
msgid "Use Midi music (original)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Use Ogg music"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Version"
|
msgid "Version"
|
||||||
msgstr "Wersja"
|
msgstr "Wersja"
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2017-12-07 17:31+0100\n"
|
"POT-Creation-Date: 2017-12-12 23:45+0100\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -551,6 +551,12 @@ msgstr ""
|
|||||||
msgid "Increase window size"
|
msgid "Increase window size"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Use Ogg music"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Use Midi music (original)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Version"
|
msgid "Version"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -705,6 +711,17 @@ msgid ""
|
|||||||
"window size"
|
"window size"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid ""
|
||||||
|
"Change the\n"
|
||||||
|
"music format"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Midi"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Ogg"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "You have played Planet Blupi."
|
msgid "You have played Planet Blupi."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -71,18 +71,7 @@ bool g_enableRecorder = false;
|
|||||||
std::string g_playRecord;
|
std::string g_playRecord;
|
||||||
bool g_restoreBugs = false; // restore original < v1.9 bugs
|
bool g_restoreBugs = false; // restore original < v1.9 bugs
|
||||||
bool g_restoreMidi = false; // restore music playback based on midi files
|
bool g_restoreMidi = false; // restore music playback based on midi files
|
||||||
|
int g_settingsOverload = 0;
|
||||||
enum Settings {
|
|
||||||
SETTING_FULLSCREEN = 1 << 0,
|
|
||||||
SETTING_SPEEDRATE = 1 << 1,
|
|
||||||
SETTING_TIMERINTERVAL = 1 << 2,
|
|
||||||
SETTING_RENDERER = 1 << 3,
|
|
||||||
SETTING_ZOOM = 1 << 4,
|
|
||||||
SETTING_DRIVER = 1 << 5,
|
|
||||||
SETTING_MIDI = 1 << 6,
|
|
||||||
};
|
|
||||||
|
|
||||||
static int g_settingsOverload = 0;
|
|
||||||
|
|
||||||
bool g_bTermInit = false; // initialisation en cours
|
bool g_bTermInit = false; // initialisation en cours
|
||||||
Uint32 g_lastPhase = 999;
|
Uint32 g_lastPhase = 999;
|
||||||
|
12
src/blupi.h
12
src/blupi.h
@ -34,6 +34,18 @@ extern bool g_restoreMidi;
|
|||||||
extern bool g_enableRecorder;
|
extern bool g_enableRecorder;
|
||||||
extern std::string g_playRecord;
|
extern std::string g_playRecord;
|
||||||
|
|
||||||
|
enum Settings {
|
||||||
|
SETTING_FULLSCREEN = 1 << 0,
|
||||||
|
SETTING_SPEEDRATE = 1 << 1,
|
||||||
|
SETTING_TIMERINTERVAL = 1 << 2,
|
||||||
|
SETTING_RENDERER = 1 << 3,
|
||||||
|
SETTING_ZOOM = 1 << 4,
|
||||||
|
SETTING_DRIVER = 1 << 5,
|
||||||
|
SETTING_MIDI = 1 << 6,
|
||||||
|
};
|
||||||
|
|
||||||
|
extern int g_settingsOverload;
|
||||||
|
|
||||||
struct Point {
|
struct Point {
|
||||||
Sint32 x;
|
Sint32 x;
|
||||||
Sint32 y;
|
Sint32 y;
|
||||||
|
@ -70,8 +70,10 @@ typedef struct {
|
|||||||
Sint16 skill;
|
Sint16 skill;
|
||||||
// v1.1
|
// v1.1
|
||||||
Sint16 language;
|
Sint16 language;
|
||||||
|
// v1.2
|
||||||
|
Sint16 musicMidi;
|
||||||
|
|
||||||
Sint16 reserve2[92];
|
Sint16 reserve2[91];
|
||||||
} DescInfo;
|
} DescInfo;
|
||||||
|
|
||||||
// Toutes les premières lettres doivent
|
// Toutes les premières lettres doivent
|
||||||
@ -1499,6 +1501,18 @@ static Phase table[] =
|
|||||||
284 + 40, 330,
|
284 + 40, 330,
|
||||||
{ translate ("Increase window size") },
|
{ translate ("Increase window size") },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
EV_BUTTON7,
|
||||||
|
0, {1, 50},
|
||||||
|
399, 330,
|
||||||
|
{ translate ("Use Ogg music") },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
EV_BUTTON8,
|
||||||
|
0, {1, 51},
|
||||||
|
399 + 40, 330,
|
||||||
|
{ translate ("Use Midi music (original)") },
|
||||||
|
},
|
||||||
{
|
{
|
||||||
EV_PHASE_INIT,
|
EV_PHASE_INIT,
|
||||||
0, {1, 40},
|
0, {1, 40},
|
||||||
@ -2083,6 +2097,9 @@ CEvent::DrawButtons ()
|
|||||||
|
|
||||||
SetEnable (EV_BUTTON5, !m_bFullScreen && m_WindowScale > 1);
|
SetEnable (EV_BUTTON5, !m_bFullScreen && m_WindowScale > 1);
|
||||||
SetEnable (EV_BUTTON6, !m_bFullScreen && m_WindowScale < 2);
|
SetEnable (EV_BUTTON6, !m_bFullScreen && m_WindowScale < 2);
|
||||||
|
|
||||||
|
SetEnable (EV_BUTTON7, g_restoreMidi);
|
||||||
|
SetEnable (EV_BUTTON8, !g_restoreMidi);
|
||||||
}
|
}
|
||||||
|
|
||||||
assert (m_index >= 0);
|
assert (m_index >= 0);
|
||||||
@ -2534,6 +2551,7 @@ CEvent::DrawButtons ()
|
|||||||
DrawTextCenter (gettext ("Interface language\nand sounds"), 54 + 40, 80);
|
DrawTextCenter (gettext ("Interface language\nand sounds"), 54 + 40, 80);
|
||||||
DrawTextCenter (gettext ("Select the\nwindow mode"), 169 + 40, 80);
|
DrawTextCenter (gettext ("Select the\nwindow mode"), 169 + 40, 80);
|
||||||
DrawTextCenter (gettext ("Change the\nwindow size"), 284 + 40, 80);
|
DrawTextCenter (gettext ("Change the\nwindow size"), 284 + 40, 80);
|
||||||
|
DrawTextCenter (gettext ("Change the\nmusic format"), 399 + 40, 80);
|
||||||
|
|
||||||
const auto locale = GetLocale ();
|
const auto locale = GetLocale ();
|
||||||
std::string lang;
|
std::string lang;
|
||||||
@ -2570,6 +2588,12 @@ CEvent::DrawButtons ()
|
|||||||
pos.y = 330 - 20;
|
pos.y = 330 - 20;
|
||||||
DrawText (m_pPixmap, pos, res);
|
DrawText (m_pPixmap, pos, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
text = g_restoreMidi ? gettext ("Midi") : gettext ("Ogg");
|
||||||
|
lg = GetTextWidth (text);
|
||||||
|
pos.x = (399 + 40) - lg / 2;
|
||||||
|
pos.y = 330 - 20;
|
||||||
|
DrawText (m_pPixmap, pos, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show the ending text
|
// Show the ending text
|
||||||
@ -4116,6 +4140,12 @@ CEvent::ChangeButtons (Sint32 message)
|
|||||||
SetWindowSize (scale, m_WindowScale);
|
SetWindowSize (scale, m_WindowScale);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case EV_BUTTON7:
|
||||||
|
g_restoreMidi = false;
|
||||||
|
break;
|
||||||
|
case EV_BUTTON8:
|
||||||
|
g_restoreMidi = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4671,7 +4701,7 @@ CEvent::WriteInfo ()
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
info.majRev = 1;
|
info.majRev = 1;
|
||||||
info.minRev = 1;
|
info.minRev = 2;
|
||||||
info.prive = m_private;
|
info.prive = m_private;
|
||||||
info.exercice = m_exercice;
|
info.exercice = m_exercice;
|
||||||
info.mission = m_mission;
|
info.mission = m_mission;
|
||||||
@ -4690,6 +4720,7 @@ CEvent::WriteInfo ()
|
|||||||
info.language = static_cast<Sint16> (
|
info.language = static_cast<Sint16> (
|
||||||
this->GetLanguage () != this->GetStartLanguage () ? this->GetLanguage ()
|
this->GetLanguage () != this->GetStartLanguage () ? this->GetLanguage ()
|
||||||
: Language::undef);
|
: Language::undef);
|
||||||
|
info.musicMidi = g_restoreMidi;
|
||||||
|
|
||||||
nb = fwrite (&info, sizeof (info), 1, file);
|
nb = fwrite (&info, sizeof (info), 1, file);
|
||||||
if (nb < 1)
|
if (nb < 1)
|
||||||
@ -4748,6 +4779,11 @@ CEvent::ReadInfo ()
|
|||||||
this->SetLanguage (static_cast<Language> (info.language));
|
this->SetLanguage (static_cast<Language> (info.language));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
((info.majRev == 1 && info.minRev >= 2) || info.majRev >= 2) &&
|
||||||
|
!(g_settingsOverload & SETTING_MIDI))
|
||||||
|
g_restoreMidi = !!info.musicMidi;
|
||||||
|
|
||||||
fclose (file);
|
fclose (file);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user