mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Warning Fixes
This commit is contained in:
parent
997ee7b940
commit
1cc6059420
|
@ -26,9 +26,7 @@ void writeSubtitle(const char* gameName, const char* systemName, bool always)
|
||||||
FILE* file = fopen(getTitlePath().c_str(), "w");
|
FILE* file = fopen(getTitlePath().c_str(), "w");
|
||||||
int end = (int)(Settings::getInstance()->getInt("ScreenSaverSwapVideoTimeout") / (1000));
|
int end = (int)(Settings::getInstance()->getInt("ScreenSaverSwapVideoTimeout") / (1000));
|
||||||
if (always) {
|
if (always) {
|
||||||
fprintf(file, "1\n00:00:01,000 --> 00:00:");
|
fprintf(file, "1\n00:00:01,000 --> 00:00:%d,000\n", end);
|
||||||
fprintf(file, std::to_string(end).c_str());
|
|
||||||
fprintf(file, ",000\n");
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -40,13 +38,7 @@ void writeSubtitle(const char* gameName, const char* systemName, bool always)
|
||||||
if (!always) {
|
if (!always) {
|
||||||
if (end > 12)
|
if (end > 12)
|
||||||
{
|
{
|
||||||
fprintf(file, "2\n00:00:");
|
fprintf(file, "2\n00:00:%d,000 --> 00:00:%d,000\n%s\n<i>%s</i>\n", end-4, end, gameName, systemName);
|
||||||
fprintf(file, std::to_string(end - 4).c_str());
|
|
||||||
fprintf(file, ",000 --> 00:00:");
|
|
||||||
fprintf(file, std::to_string(end).c_str());
|
|
||||||
fprintf(file, ",000\n");
|
|
||||||
fprintf(file, "%s\n", gameName);
|
|
||||||
fprintf(file, "<i>%s</i>\n", systemName);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue