|
@@ -1114,26 +1114,6 @@ QStringList Project::getSongNames() {
|
1114
|
1114
|
return names;
|
1115
|
1115
|
}
|
1116
|
1116
|
|
1117
|
|
-QString Project::getSongName(int songNumber) {
|
1118
|
|
- QStringList names;
|
1119
|
|
- QString text = readTextFile(root + "/include/constants/songs.h");
|
1120
|
|
- if (!text.isNull()) {
|
1121
|
|
- QStringList songDefinePrefixes;
|
1122
|
|
- songDefinePrefixes << "SE_" << "BGM_";
|
1123
|
|
- QMap<QString, int> songDefines = readCDefines(text, songDefinePrefixes);
|
1124
|
|
-
|
1125
|
|
- // Loop through song defines, and fine the one with the matching song number.
|
1126
|
|
- QMap<QString, int>::iterator iter = songDefines.begin();
|
1127
|
|
- while (iter != songDefines.end()) {
|
1128
|
|
- if (iter.value() == songNumber) {
|
1129
|
|
- return iter.key();
|
1130
|
|
- }
|
1131
|
|
- iter++;
|
1132
|
|
- }
|
1133
|
|
- }
|
1134
|
|
- return "";
|
1135
|
|
-}
|
1136
|
|
-
|
1137
|
1117
|
QMap<QString, int> Project::getMapObjGfxConstants() {
|
1138
|
1118
|
QMap<QString, int> constants;
|
1139
|
1119
|
QString text = readTextFile(root + "/include/constants/map_objects.h");
|