Added a file manager and hooked it up. It is now possible to load and

edit multiple DBC files.
This commit is contained in:
Collin Kidder
2016-01-17 17:09:47 -05:00
parent cd5f851f35
commit 3ef905b68a
13 changed files with 335 additions and 78 deletions
+2 -1
View File
@@ -735,7 +735,7 @@ void DBCHandler::saveDBCFile(int idx)
//Otherwise add a new one. Well, always add a new one.
//If a valid index is passed we'll remove that one and then commence
//adding. Otherwise, just go straight to adding.
void DBCHandler::loadDBCFile(int idx)
DBCFile* DBCHandler::loadDBCFile(int idx)
{
if (idx > -1 && idx < loadedFiles.count()) removeDBCFile(idx);
@@ -757,6 +757,7 @@ void DBCHandler::loadDBCFile(int idx)
newFile.loadFile(filename);
loadedFiles.append(newFile);
}
return &loadedFiles.last();
}
void DBCHandler::removeDBCFile(int idx)