db fix
This commit is contained in:
parent
dc18261611
commit
784f56f3f7
|
|
@ -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.
|
- 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:
|
Fixes:
|
||||||
- Fixed the AwardBadge and HasBadge extensions not working properly.
|
- Fixed the AwardBadge and HasBadge extensions not working properly.
|
||||||
|
- Fixed the Bootstrabber not showing the correct launcher version.
|
||||||
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
EDGE Snapshot v23.8731.28487.3
|
EDGE Snapshot v23.8731.28487.3
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ public class AwardBadge : IWebProxyExtension
|
||||||
{
|
{
|
||||||
BaseMapName = "Appreciation";
|
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());
|
ini.IniWriteValue(BadgeDatabaseSection, BadgeName, Awarded.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -74,7 +74,7 @@ public class AwardBadge : IWebProxyExtension
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
INIFile metaIni = new INIFile(metaFile, !(File.Exists(metaFile));
|
INIFile metaIni = new INIFile(metaFile, !(File.Exists(metaFile)));
|
||||||
string section = BadgeID.ToString();
|
string section = BadgeID.ToString();
|
||||||
|
|
||||||
string name = metaIni.IniReadValue(section, "BadgeName", "Unknown Badge #" + BadgeID.ToString());
|
string name = metaIni.IniReadValue(section, "BadgeName", "Unknown Badge #" + BadgeID.ToString());
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,9 @@ public class HasBadge : IWebProxyExtension
|
||||||
{
|
{
|
||||||
BaseMapName = "Appreciation";
|
BaseMapName = "Appreciation";
|
||||||
}
|
}
|
||||||
string BadgeName = BaseMapName + "_" + data.BadgeId.ToString() + "_" + (data.BadgeName.Replace(" ", "-")) + "_" + data.BadgeCreatorName;
|
string BadgeName = (BaseMapName.Replace(" ", "-")) + "_" + BadgeID.ToString();
|
||||||
string awarded = ini.IniReadValue(BadgeDatabaseSection, BadgeName, "False");
|
string key = ini.IniGetKey(BadgeName);
|
||||||
|
string awarded = ini.IniReadValue(BadgeDatabaseSection, key, "False");
|
||||||
return Convert.ToBoolean(awarded);
|
return Convert.ToBoolean(awarded);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,5 +10,5 @@ ExtendedVersionNumber=True
|
||||||
//ExtendedVersionTemplate=%version% Snapshot v23.%build%.%revision%.%extended-revision%
|
//ExtendedVersionTemplate=%version% Snapshot v23.%build%.%revision%.%extended-revision%
|
||||||
ExtendedVersionTemplate=EDGE Snapshot v23.%build%.%revision%.%extended-revision%
|
ExtendedVersionTemplate=EDGE Snapshot v23.%build%.%revision%.%extended-revision%
|
||||||
ExtendedVersionRevision=1
|
ExtendedVersionRevision=1
|
||||||
InitialBootup=False
|
InitialBootup=True
|
||||||
IsLite=False
|
IsLite=False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue