This commit is contained in:
Bitl 2023-12-11 17:00:24 -07:00
parent dc18261611
commit 784f56f3f7
4 changed files with 7 additions and 5 deletions

View File

@ -5,6 +5,7 @@ Enhancements:
- Novetus will now create basic _meta.ini files for games that have badges! They can then be filled out with correct information by map creators and archivists.
Fixes:
- Fixed the AwardBadge and HasBadge extensions not working properly.
- Fixed the Bootstrabber not showing the correct launcher version.
----------------------------------------------------------------------------
EDGE Snapshot v23.8731.28487.3
Fixes:

View File

@ -32,7 +32,7 @@ public class AwardBadge : IWebProxyExtension
{
BaseMapName = "Appreciation";
}
string BadgeName = BaseMapName + "_" + data.BadgeId.ToString() + "_" + (data.BadgeName.Replace(" ", "-")) + "_" + data.BadgeCreatorName;
string BadgeName = (BaseMapName.Replace(" ", "-")) + "_" + data.BadgeId.ToString() + "_" + (data.BadgeName.Replace(" ", "-")) + "_" + (data.BadgeCreatorName.Replace(" ", "-"));
ini.IniWriteValue(BadgeDatabaseSection, BadgeName, Awarded.ToString());
}
@ -74,7 +74,7 @@ public class AwardBadge : IWebProxyExtension
try
{
INIFile metaIni = new INIFile(metaFile, !(File.Exists(metaFile));
INIFile metaIni = new INIFile(metaFile, !(File.Exists(metaFile)));
string section = BadgeID.ToString();
string name = metaIni.IniReadValue(section, "BadgeName", "Unknown Badge #" + BadgeID.ToString());

View File

@ -42,8 +42,9 @@ public class HasBadge : IWebProxyExtension
{
BaseMapName = "Appreciation";
}
string BadgeName = BaseMapName + "_" + data.BadgeId.ToString() + "_" + (data.BadgeName.Replace(" ", "-")) + "_" + data.BadgeCreatorName;
string awarded = ini.IniReadValue(BadgeDatabaseSection, BadgeName, "False");
string BadgeName = (BaseMapName.Replace(" ", "-")) + "_" + BadgeID.ToString();
string key = ini.IniGetKey(BadgeName);
string awarded = ini.IniReadValue(BadgeDatabaseSection, key, "False");
return Convert.ToBoolean(awarded);
}

View File

@ -10,5 +10,5 @@ ExtendedVersionNumber=True
//ExtendedVersionTemplate=%version% Snapshot v23.%build%.%revision%.%extended-revision%
ExtendedVersionTemplate=EDGE Snapshot v23.%build%.%revision%.%extended-revision%
ExtendedVersionRevision=1
InitialBootup=False
InitialBootup=True
IsLite=False