(Object aCategory, String aName, int aDefault)
| 170 | private static boolean sIDConfigNeedsSaving = F; |
| 171 | |
| 172 | public static int addIDConfig(Object aCategory, String aName, int aDefault) { |
| 173 | if (UT.Code.stringInvalid(aName)) return aDefault; |
| 174 | Property tProperty = sConfigFileIDs.get(aCategory.toString().replaceAll("\\|", "."), aName.replaceAll("\\|", "."), aDefault); |
| 175 | int rResult = tProperty.getInt(aDefault); |
| 176 | if (Abstract_Mod.sFinalized >= Abstract_Mod.sModCountUsingGTAPI && !tProperty.wasRead()) sConfigFileIDs.save(); else sIDConfigNeedsSaving = T; |
| 177 | return rResult; |
| 178 | } |
| 179 | } |
no test coverage detected