mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-12-25 09:22:52 +00:00
fix case insensitivity again and discard the marbleland game requirements
This commit is contained in:
parent
07bff7724d
commit
3cfb0785fe
2 changed files with 9 additions and 7 deletions
|
|
@ -51,8 +51,8 @@ class Marbleland {
|
|||
// filter
|
||||
if (missionData.datablockCompatibility != 'mbw' && missionData.datablockCompatibility != 'mbg')
|
||||
continue;
|
||||
if (!['gold', 'platinum', 'ultra', 'platinumquest'].contains(missionData.modification))
|
||||
continue;
|
||||
// if (!['gold', 'platinum', 'ultra', 'platinumquest'].contains(missionData.modification))
|
||||
// continue;
|
||||
if (missionData.gameMode != null && !(missionData.gameMode == 'null' || missionData.gameMode.toLowerCase() == 'hunt'))
|
||||
continue;
|
||||
|
||||
|
|
@ -89,6 +89,8 @@ class Marbleland {
|
|||
if (isMultiplayer) {
|
||||
game = 'multiplayer';
|
||||
}
|
||||
if (game == null)
|
||||
game = "platinum";
|
||||
|
||||
if (game == 'platinum') {
|
||||
if (platDupes.exists(mission.title + mission.description))
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class TorqueFileSystem extends LocalFileSystem {
|
|||
override function checkPath(path:String) {
|
||||
// make sure the file is loaded with correct case !
|
||||
var baseDir = new haxe.io.Path(path).dir;
|
||||
var c = directoryCache.get(baseDir);
|
||||
var c = directoryCache.get(baseDir.toLowerCase());
|
||||
var isNew = false;
|
||||
if (c == null) {
|
||||
isNew = true;
|
||||
|
|
@ -62,13 +62,13 @@ class TorqueFileSystem extends LocalFileSystem {
|
|||
sys.FileSystem.readDirectory(baseDir)
|
||||
catch (e:Dynamic)
|
||||
[])
|
||||
c.set(f, true);
|
||||
directoryCache.set(baseDir, c);
|
||||
c.set(f.toLowerCase(), true);
|
||||
directoryCache.set(baseDir.toLowerCase(), c);
|
||||
}
|
||||
if (!c.exists(path.substr(baseDir.length + 1))) {
|
||||
if (!c.exists(path.substr(baseDir.length + 1).toLowerCase())) {
|
||||
// added since then?
|
||||
if (!isNew) {
|
||||
directoryCache.remove(baseDir);
|
||||
directoryCache.remove(baseDir.toLowerCase());
|
||||
return checkPath(path);
|
||||
}
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue