Skip to content

Commit

Permalink
Have GMVitalizer not die if a view file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowAfterlife committed Oct 17, 2020
1 parent 654a7fb commit a134d70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/VitProject.hx
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ class VitProject {
};
//
for (pair in project.resources) {
var id = pair.Key;
var id = pair.Key, full:String;
if (pair.Value.resourceType == GMFolder) {
var fd:YyView = Json.parse(File.getContent(Path.join([dir, "views", '$id.yy'])));
full = Path.join([dir, "views", '$id.yy']);
if (!FileSystem.exists(full)) continue;
var fd:YyView = Json.parse(File.getContent(full));
folders[id] = fd;
if (fd.isDefaultView) rootView = fd;
} else {
Expand Down

0 comments on commit a134d70

Please sign in to comment.