All uses of hashes should now be lower case (#122)
This commit is contained in:
@@ -79,7 +79,7 @@ namespace gaseous_server.Classes
|
|||||||
platformname = platform.Name,
|
platformname = platform.Name,
|
||||||
description = emulatorBios.description,
|
description = emulatorBios.description,
|
||||||
filename = emulatorBios.filename,
|
filename = emulatorBios.filename,
|
||||||
hash = emulatorBios.hash
|
hash = emulatorBios.hash.ToLower()
|
||||||
};
|
};
|
||||||
biosItems.Add(biosItem);
|
biosItems.Add(biosItem);
|
||||||
}
|
}
|
||||||
|
@@ -103,9 +103,9 @@ namespace gaseous_server.Classes
|
|||||||
GameId = (long)romDR["gameid"],
|
GameId = (long)romDR["gameid"],
|
||||||
Name = (string)romDR["name"],
|
Name = (string)romDR["name"],
|
||||||
Size = (long)romDR["size"],
|
Size = (long)romDR["size"],
|
||||||
CRC = (string)romDR["crc"],
|
CRC = ((string)romDR["crc"]).ToLower(),
|
||||||
MD5 = (string)romDR["md5"],
|
MD5 = ((string)romDR["md5"]).ToLower(),
|
||||||
SHA1 = (string)romDR["sha1"],
|
SHA1 = ((string)romDR["sha1"]).ToLower(),
|
||||||
DevelopmentStatus = (string)romDR["developmentstatus"],
|
DevelopmentStatus = (string)romDR["developmentstatus"],
|
||||||
Attributes = Newtonsoft.Json.JsonConvert.DeserializeObject<List<KeyValuePair<string, object>>>((string)Common.ReturnValueIfNull(romDR["attributes"], "[ ]")),
|
Attributes = Newtonsoft.Json.JsonConvert.DeserializeObject<List<KeyValuePair<string, object>>>((string)Common.ReturnValueIfNull(romDR["attributes"], "[ ]")),
|
||||||
RomType = (int)romDR["romtype"],
|
RomType = (int)romDR["romtype"],
|
||||||
|
@@ -188,9 +188,9 @@ namespace gaseous_server.SignatureIngestors.XML
|
|||||||
dbDict.Add("gameid", gameId);
|
dbDict.Add("gameid", gameId);
|
||||||
dbDict.Add("name", Common.ReturnValueIfNull(romObject.Name, ""));
|
dbDict.Add("name", Common.ReturnValueIfNull(romObject.Name, ""));
|
||||||
dbDict.Add("size", Common.ReturnValueIfNull(romObject.Size, ""));
|
dbDict.Add("size", Common.ReturnValueIfNull(romObject.Size, ""));
|
||||||
dbDict.Add("crc", Common.ReturnValueIfNull(romObject.Crc, ""));
|
dbDict.Add("crc", Common.ReturnValueIfNull(romObject.Crc, "").ToString().ToLower());
|
||||||
dbDict.Add("md5", Common.ReturnValueIfNull(romObject.Md5, ""));
|
dbDict.Add("md5", Common.ReturnValueIfNull(romObject.Md5, "").ToString().ToLower());
|
||||||
dbDict.Add("sha1", Common.ReturnValueIfNull(romObject.Sha1, ""));
|
dbDict.Add("sha1", Common.ReturnValueIfNull(romObject.Sha1, "").ToString().ToLower());
|
||||||
dbDict.Add("developmentstatus", Common.ReturnValueIfNull(romObject.DevelopmentStatus, ""));
|
dbDict.Add("developmentstatus", Common.ReturnValueIfNull(romObject.DevelopmentStatus, ""));
|
||||||
|
|
||||||
if (romObject.Attributes != null)
|
if (romObject.Attributes != null)
|
||||||
|
@@ -88,8 +88,8 @@ namespace gaseous_server.Controllers
|
|||||||
Name = (string)sigDbRow["romname"],
|
Name = (string)sigDbRow["romname"],
|
||||||
Size = (Int64)sigDbRow["Size"],
|
Size = (Int64)sigDbRow["Size"],
|
||||||
Crc = (string)sigDbRow["CRC"],
|
Crc = (string)sigDbRow["CRC"],
|
||||||
Md5 = (string)sigDbRow["MD5"],
|
Md5 = ((string)sigDbRow["MD5"]).ToLower(),
|
||||||
Sha1 = (string)sigDbRow["SHA1"],
|
Sha1 = ((string)sigDbRow["SHA1"]).ToLower(),
|
||||||
DevelopmentStatus = (string)sigDbRow["DevelopmentStatus"],
|
DevelopmentStatus = (string)sigDbRow["DevelopmentStatus"],
|
||||||
Attributes = Newtonsoft.Json.JsonConvert.DeserializeObject<List<KeyValuePair<string, object>>>((string)Common.ReturnValueIfNull(sigDbRow["Attributes"], "[]")),
|
Attributes = Newtonsoft.Json.JsonConvert.DeserializeObject<List<KeyValuePair<string, object>>>((string)Common.ReturnValueIfNull(sigDbRow["Attributes"], "[]")),
|
||||||
RomType = (Models.Signatures_Games.RomItem.RomTypes)(int)sigDbRow["RomType"],
|
RomType = (Models.Signatures_Games.RomItem.RomTypes)(int)sigDbRow["RomType"],
|
||||||
|
@@ -286,7 +286,7 @@ namespace gaseous_server.Models
|
|||||||
{
|
{
|
||||||
filename = (string)Common.ReturnValueIfNull(biosRow["Filename"], ""),
|
filename = (string)Common.ReturnValueIfNull(biosRow["Filename"], ""),
|
||||||
description = (string)Common.ReturnValueIfNull(biosRow["Description"], ""),
|
description = (string)Common.ReturnValueIfNull(biosRow["Description"], ""),
|
||||||
hash = (string)Common.ReturnValueIfNull(biosRow["Hash"], "")
|
hash = ((string)Common.ReturnValueIfNull(biosRow["Hash"], "")).ToLower()
|
||||||
};
|
};
|
||||||
bioss.Add(bios);
|
bioss.Add(bios);
|
||||||
}
|
}
|
||||||
|
@@ -61,7 +61,7 @@ namespace gaseous_tools
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _md5hash;
|
return _md5hash.ToLower();
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
@@ -73,7 +73,7 @@ namespace gaseous_tools
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _sha1hash;
|
return _sha1hash.ToLower();
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user