Skip to content

Commit

Permalink
Add some fallback assets
Browse files Browse the repository at this point in the history
  • Loading branch information
eleriaqueen committed Feb 17, 2024
1 parent 7a17707 commit 0190a07
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 4 deletions.
Binary file added korangar/data/model/missing.rsm
Binary file not shown.
Binary file added korangar/data/sprite/npc/missing.act
Binary file not shown.
Binary file added korangar/data/sprite/npc/missing.spr
Binary file not shown.
Binary file added korangar/data/texture/missing.bmp
Binary file not shown.
Binary file added korangar/data/texture/missing.tga
Binary file not shown.
Binary file added korangar/data/texture/model/missing.bmp
Binary file not shown.
9 changes: 5 additions & 4 deletions src/loaders/gamefile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,11 @@ impl GameFileLoader {

let delimiter = path.len() - 4;
match &path[delimiter..] {
".bmp" | ".BMP" => return self.get("data\\texture\\backside.bmp"),
".rsm" => return self.get("data\\model\\abyss\\coin_j_01.rsm"),
".spr" => return self.get("data\\sprite\\npc\\1_f_maria.spr"),
".act" => return self.get("data\\sprite\\npc\\1_f_maria.act"),
".bmp" | ".BMP" => return self.get("data\\texture\\missing.bmp"),
".tga" | ".TGA" => return self.get("data\\texture\\missing.tga"),
".rsm" => return self.get("data\\model\\missing.rsm"),
".spr" => return self.get("data\\sprite\\npc\\missing.spr"),
".act" => return self.get("data\\sprite\\npc\\missing.act"),
_other => {}
}
}
Expand Down

0 comments on commit 0190a07

Please sign in to comment.