fuck it no more mod system
This commit is contained in:
parent
496b0b8560
commit
0ac8487c30
|
@ -96,7 +96,7 @@
|
|||
<assets path="assets/week7" library="week7" exclude="*.fla|*.ogg" if="web"/>
|
||||
<assets path="assets/week7" library="week7" exclude="*.fla|*.mp3" unless="web"/>
|
||||
|
||||
<assets path='example_mods' rename='mods' embed='false'/>
|
||||
<!-- <assets path='example_mods' rename='mods' embed='false'/> -->
|
||||
|
||||
<!-- <template path="example_mods" rename="mods" /> -->
|
||||
|
||||
|
|
|
@ -21,11 +21,6 @@ class Paths
|
|||
if (library != null)
|
||||
return getLibraryPath(file, library);
|
||||
|
||||
// Check mods folder first
|
||||
var modPath = getModPath(file);
|
||||
if (OpenFlAssets.exists(modPath, type))
|
||||
return modPath;
|
||||
|
||||
if (currentLevel != null)
|
||||
{
|
||||
var levelPath = getLibraryPathForce(file, currentLevel);
|
||||
|
@ -40,17 +35,11 @@ class Paths
|
|||
return getPreloadPath(file);
|
||||
}
|
||||
|
||||
|
||||
static public function getLibraryPath(file:String, library = "preload")
|
||||
{
|
||||
return if (library == "preload" || library == "default") getPreloadPath(file); else getLibraryPathForce(file, library);
|
||||
}
|
||||
|
||||
inline static function getModPath(file:String)
|
||||
{
|
||||
return 'mods/$file';
|
||||
}
|
||||
|
||||
inline static function getLibraryPathForce(file:String, library:String)
|
||||
{
|
||||
return '$library:assets/$library/$file';
|
||||
|
|
Loading…
Reference in New Issue