forked from mia/Aegisub
Updated version.cpp to say 1.11.
Hack to allow loading files with mixed V4 and V4+ style sections. Originally committed to SVN as r526.
This commit is contained in:
parent
da0da02ac0
commit
4b8d7b4dc8
2 changed files with 13 additions and 5 deletions
|
@ -67,13 +67,21 @@ void ASSSubtitleFormat::ReadFile(wxString filename,wxString encoding) {
|
||||||
wxbuffer = file.ReadLineFromFile();
|
wxbuffer = file.ReadLineFromFile();
|
||||||
|
|
||||||
// Convert v4 styles to v4+ styles
|
// Convert v4 styles to v4+ styles
|
||||||
|
// Ugly hacks to allow intermixed v4 and v4+ style sections
|
||||||
if (wxbuffer.Lower() == _T("[v4 styles]")) {
|
if (wxbuffer.Lower() == _T("[v4 styles]")) {
|
||||||
wxbuffer = _T("[V4+ Styles]");
|
wxbuffer = _T("[V4+ Styles]");
|
||||||
}
|
|
||||||
|
|
||||||
// Set group
|
|
||||||
if (wxbuffer[0] == _T('[')) {
|
|
||||||
curgroup = wxbuffer;
|
curgroup = wxbuffer;
|
||||||
|
IsSSA = true;
|
||||||
|
}
|
||||||
|
else if (wxbuffer.Lower() == _T("[v4+ styles]")) {
|
||||||
|
curgroup = wxbuffer;
|
||||||
|
IsSSA = false;
|
||||||
|
}
|
||||||
|
// Not-so-special case for other groups, just set it
|
||||||
|
else if (wxbuffer[0] == _T('[')) {
|
||||||
|
curgroup = wxbuffer;
|
||||||
|
// default from extension in all other sections
|
||||||
|
IsSSA = filename.Right(4).Lower() == _T(".ssa");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add line
|
// Add line
|
||||||
|
|
|
@ -78,7 +78,7 @@ struct VersionInfoStruct {
|
||||||
wxString SCMStr, VersionStr;
|
wxString SCMStr, VersionStr;
|
||||||
|
|
||||||
// Update this whenever a new version is release
|
// Update this whenever a new version is release
|
||||||
VersionNumber = _T("v1.10");
|
VersionNumber = _T("v1.11");
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
IsDebug = true;
|
IsDebug = true;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue