mirror of
https://github.com/Novetus/Novetus_src.git
synced 2025-01-31 09:41:33 +02:00
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.
|
||||
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:
|
||||
|
@ -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());
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user