mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-28 05:31:37 +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
|
// filter
|
||||||
if (missionData.datablockCompatibility != 'mbw' && missionData.datablockCompatibility != 'mbg')
|
if (missionData.datablockCompatibility != 'mbw' && missionData.datablockCompatibility != 'mbg')
|
||||||
continue;
|
continue;
|
||||||
if (!['gold', 'platinum', 'ultra', 'platinumquest'].contains(missionData.modification))
|
// if (!['gold', 'platinum', 'ultra', 'platinumquest'].contains(missionData.modification))
|
||||||
continue;
|
// continue;
|
||||||
if (missionData.gameMode != null && !(missionData.gameMode == 'null' || missionData.gameMode.toLowerCase() == 'hunt'))
|
if (missionData.gameMode != null && !(missionData.gameMode == 'null' || missionData.gameMode.toLowerCase() == 'hunt'))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
@ -89,6 +89,8 @@ class Marbleland {
|
||||||
if (isMultiplayer) {
|
if (isMultiplayer) {
|
||||||
game = 'multiplayer';
|
game = 'multiplayer';
|
||||||
}
|
}
|
||||||
|
if (game == null)
|
||||||
|
game = "platinum";
|
||||||
|
|
||||||
if (game == 'platinum') {
|
if (game == 'platinum') {
|
||||||
if (platDupes.exists(mission.title + mission.description))
|
if (platDupes.exists(mission.title + mission.description))
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class TorqueFileSystem extends LocalFileSystem {
|
||||||
override function checkPath(path:String) {
|
override function checkPath(path:String) {
|
||||||
// make sure the file is loaded with correct case !
|
// make sure the file is loaded with correct case !
|
||||||
var baseDir = new haxe.io.Path(path).dir;
|
var baseDir = new haxe.io.Path(path).dir;
|
||||||
var c = directoryCache.get(baseDir);
|
var c = directoryCache.get(baseDir.toLowerCase());
|
||||||
var isNew = false;
|
var isNew = false;
|
||||||
if (c == null) {
|
if (c == null) {
|
||||||
isNew = true;
|
isNew = true;
|
||||||
|
|
@ -62,13 +62,13 @@ class TorqueFileSystem extends LocalFileSystem {
|
||||||
sys.FileSystem.readDirectory(baseDir)
|
sys.FileSystem.readDirectory(baseDir)
|
||||||
catch (e:Dynamic)
|
catch (e:Dynamic)
|
||||||
[])
|
[])
|
||||||
c.set(f, true);
|
c.set(f.toLowerCase(), true);
|
||||||
directoryCache.set(baseDir, c);
|
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?
|
// added since then?
|
||||||
if (!isNew) {
|
if (!isNew) {
|
||||||
directoryCache.remove(baseDir);
|
directoryCache.remove(baseDir.toLowerCase());
|
||||||
return checkPath(path);
|
return checkPath(path);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue