Reverted some changes that should not have been part of the merge from Midiman.
This commit is contained in:
@@ -82,17 +82,17 @@ ThemePrefs =
|
|||||||
-- If we don't have IniFile, we can't read/write from/to disk
|
-- If we don't have IniFile, we can't read/write from/to disk
|
||||||
if not IniFile then Warn( GetString("IniFileMissing") ) end
|
if not IniFile then Warn( GetString("IniFileMissing") ) end
|
||||||
|
|
||||||
Trace( ("ThemePrefs.Init(prefs, %s)"):format(tostring(bLoadFromDisk)) )
|
-- Trace( ("ThemePrefs.Init(prefs, %s)"):format(tostring(bLoadFromDisk)) )
|
||||||
if bLoadFromDisk then
|
if bLoadFromDisk then
|
||||||
Trace( "ThemePrefs.Init: loading from disk" )
|
Trace( "ThemePrefs.Init: loading from disk" )
|
||||||
if not ThemePrefs.Load() then return false end
|
if not ThemePrefs.Load() then return false end
|
||||||
end
|
end
|
||||||
|
|
||||||
Trace( "ThemePrefs.Init: not loading from disk" )
|
-- Trace( "ThemePrefs.Init: not loading from disk" )
|
||||||
|
|
||||||
-- create the section if it doesn't exist
|
-- create the section if it doesn't exist
|
||||||
local section = GetThemeName()
|
local section = GetThemeName()
|
||||||
Trace( ("ThemePrefs.Init: Theme name is \"%s\""):format(section) )
|
-- Trace( ("ThemePrefs.Init: Theme name is \"%s\""):format(section) )
|
||||||
PrefsTable[section] = PrefsTable[section] and PrefsTable[section] or { }
|
PrefsTable[section] = PrefsTable[section] and PrefsTable[section] or { }
|
||||||
|
|
||||||
--Trace( "Using section " .. section )
|
--Trace( "Using section " .. section )
|
||||||
@@ -105,7 +105,7 @@ ThemePrefs =
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
PrintTable( PrefsTable[section] )
|
-- PrintTable( PrefsTable[section] )
|
||||||
end,
|
end,
|
||||||
|
|
||||||
Load = function()
|
Load = function()
|
||||||
@@ -115,7 +115,7 @@ ThemePrefs =
|
|||||||
end,
|
end,
|
||||||
|
|
||||||
Save = function()
|
Save = function()
|
||||||
Trace( "ThemePrefs.Save" )
|
-- Trace( "ThemePrefs.Save" )
|
||||||
if not IniFile then return false end
|
if not IniFile then return false end
|
||||||
if not NeedsSaved then return end
|
if not NeedsSaved then return end
|
||||||
NeedsSaved = false
|
NeedsSaved = false
|
||||||
|
|||||||
+4
-5
@@ -3181,13 +3181,12 @@ public:
|
|||||||
{
|
{
|
||||||
vector<const Game*> aGames;
|
vector<const Game*> aGames;
|
||||||
p->GetEnabledGames( aGames );
|
p->GetEnabledGames( aGames );
|
||||||
vector<RString> vsGames;
|
lua_createtable(L, aGames.size(), 0);
|
||||||
FOREACH( const Game*, aGames, g )
|
for(size_t i= 0; i < aGames.size(); ++i)
|
||||||
{
|
{
|
||||||
RString sGameName = (*g)->m_szName;
|
lua_pushstring(L, aGames[i]->m_szName);
|
||||||
vsGames.push_back( sGameName );
|
lua_rawseti(L, -2, i+1);
|
||||||
}
|
}
|
||||||
LuaHelpers::CreateTableFromArray<RString>( vsGames, L );
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1178,19 +1178,12 @@ void NoteData::LoadFromNode( const XNode* pNode )
|
|||||||
|
|
||||||
void NoteData::AddATIToList(all_tracks_iterator* iter) const
|
void NoteData::AddATIToList(all_tracks_iterator* iter) const
|
||||||
{
|
{
|
||||||
// mapconv crashes on windows an apparently this function is the cause.
|
|
||||||
// So windows will still crash on courses that use transform mods until
|
|
||||||
// mapconv can be fixed. -Kyz
|
|
||||||
#ifndef WIN32
|
|
||||||
m_atis.insert(iter);
|
m_atis.insert(iter);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NoteData::AddATIToList(all_tracks_const_iterator* iter) const
|
void NoteData::AddATIToList(all_tracks_const_iterator* iter) const
|
||||||
{
|
{
|
||||||
#ifndef WIN32
|
|
||||||
m_const_atis.insert(iter);
|
m_const_atis.insert(iter);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NoteData::RemoveATIFromList(all_tracks_iterator* iter) const
|
void NoteData::RemoveATIFromList(all_tracks_iterator* iter) const
|
||||||
|
|||||||
Reference in New Issue
Block a user