- put the entire filesystem code into a namespace and created some subdirectories.

This commit is contained in:
Christoph Oelckers 2023-08-22 21:20:28 +02:00
commit ebb71cebf1
108 changed files with 308 additions and 225 deletions

View file

@ -828,16 +828,16 @@ static int SetupCrouchSprite(AActor *self, int crouchsprite)
FString normspritename = sprites[self->SpawnState->sprite].name;
FString crouchspritename = sprites[crouchsprite].name;
int spritenorm = fileSystem.CheckNumForName(normspritename + "A1", ns_sprites);
int spritenorm = fileSystem.CheckNumForName(normspritename + "A1", FileSys::ns_sprites);
if (spritenorm == -1)
{
spritenorm = fileSystem.CheckNumForName(normspritename + "A0", ns_sprites);
spritenorm = fileSystem.CheckNumForName(normspritename + "A0", FileSys::ns_sprites);
}
int spritecrouch = fileSystem.CheckNumForName(crouchspritename + "A1", ns_sprites);
int spritecrouch = fileSystem.CheckNumForName(crouchspritename + "A1", FileSys::ns_sprites);
if (spritecrouch == -1)
{
spritecrouch = fileSystem.CheckNumForName(crouchspritename + "A0", ns_sprites);
spritecrouch = fileSystem.CheckNumForName(crouchspritename + "A0", FileSys::ns_sprites);
}
if (spritenorm == -1 || spritecrouch == -1)