1 /* |
1 /* |
2 * LDForge: LDraw parts authoring CAD |
2 * LDForge: LDraw parts authoring CAD |
3 * Copyright (C) 2013 Santeri `arezey` Piippo |
3 * Copyright (C) 2013 Santeri Piippo |
4 * |
4 * |
5 * This program is free software: you can redistribute it and/or modify |
5 * This program is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License as published by |
6 * it under the terms of the GNU General Public License as published by |
7 * the Free Software Foundation, either version 3 of the License, or |
7 * the Free Software Foundation, either version 3 of the License, or |
8 * (at your option) any later version. |
8 * (at your option) any later version. |
97 } |
98 } |
98 |
99 |
99 str entry = str (line).substr (0, equals - line); |
100 str entry = str (line).substr (0, equals - line); |
100 |
101 |
101 // Find the config entry for this. |
102 // Find the config entry for this. |
102 config* cfg = nullptr; |
103 config* cfg = null; |
103 for (config* i : g_pConfigPointers) |
104 for (config* i : g_pConfigPointers) |
104 if (entry == i->name) |
105 if (entry == i->name) |
105 cfg = i; |
106 cfg = i; |
106 |
107 |
107 if (!cfg) { |
108 if (!cfg) { |