File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,13 @@ function FindEntRigs(fileName) {
288288 for (let app of json["Data"]["RootChunk"]["appearances"]) {
289289 var appfileName = app["appearanceResource"]["DepotPath"];
290290 //Logger.Info(appfileName);
291- var appfile = wkit.GetFileFromBase(appfileName.toString());
291+ var appfileNameStr = appfileName.toString();
292+ if (wkit.FileExistsInProject(appfileNameStr)) {
293+ var appfile = wkit.GetFileFromProject(appfileNameStr, OpenAs.GameFile);
294+ }
295+ else {
296+ var appfile = wkit.GetFileFromBase(appfileNameStr);
297+ }
292298 var appjson = TypeHelper.JsonParse(wkit.GameFileToJson(appfile));
293299 for (let appApp of appjson["Data"]["RootChunk"]["appearances"]) {
294300 for (let appcomp of appApp["Data"]["components"]) {
Original file line number Diff line number Diff line change @@ -240,7 +240,13 @@ function FindEntRigs(fileName) {
240240 for (let app of json["Data"]["RootChunk"]["appearances"]) {
241241 var appfileName = app["appearanceResource"]["DepotPath"];
242242 //Logger.Info(appfileName);
243- var appfile = wkit.GetFileFromBase(appfileName.toString());
243+ var appfileNameStr = appfileName.toString();
244+ if (wkit.FileExistsInProject(appfileNameStr)) {
245+ var appfile = wkit.GetFileFromProject(appfileNameStr, OpenAs.GameFile);
246+ }
247+ else {
248+ var appfile = wkit.GetFileFromBase(appfileNameStr);
249+ }
244250 var appjson = TypeHelper.JsonParse(wkit.GameFileToJson(appfile));
245251 for (let appApp of appjson["Data"]["RootChunk"]["appearances"]) {
246252 for (let appcomp of appApp["Data"]["components"]) {
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ globalThis.onImportFromJson = function (jsonText) {
210210 // json["Data"]["RootChunk"]["cookingPlatform"] = "PLATFORM_PS5";
211211
212212 return {
213- jsonText: TypeHelper.JsonStringify(json, 2 )
213+ jsonText: TypeHelper.JsonStringify(json)
214214 }
215215}
216216
You can’t perform that action at this time.
0 commit comments