Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9

This commit is contained in:
2026-09-04 10:46:13 -07:00
parent c915312901
commit 0460b9d587
482 changed files with 27797 additions and 3226 deletions

View File

@ -311,7 +311,7 @@ class Data {
loadingSceneRaws.set(file, [done]);
// If no extension specified, set to .arm
// If no extension specified, set to .lnx
var compressed = file.endsWith(".lz4");
var isJson = file.endsWith(".json");
var ext = (compressed || isJson || file.endsWith(".lnx")) ? "" : ".lnx";
@ -405,6 +405,13 @@ class Data {
}
#end
public static function getCurveRawByName(datas: Array<TCurveData>, name: String): TCurveData {
if (datas == null || datas.length == 0) return null;
if (name == "") return datas[0];
for (dat in datas) if (dat.name == name) return dat;
return null;
}
// Raw assets
public static function getBlob(file: String, done: kha.Blob->Void) {
var cached = cachedBlobs.get(file); // Is already cached