Skip to content

Game crashes if files are in lowercase #25

@dak151

Description

@dak151

Built / compiled the game on Linux Mint 22.1 -- runs great, no problems at all if the game data files are in UPPERCASE.
If files are in lowercase the engine errors with "file not found errors"

cosmo_engine -ep1 -fs -datadir ./ep1 -savedir ./ep1 -gamedir ./ep1
audio_init(): opened=1 times  frequency=22050Hz  format=S16LSB  channels=1
INFO: Game controllers found: 0 Mappings: './ep1/gamecontrollerdb.txt' Count: -1
Failed opening './ep1/COSMO1.VOL'
Error: opening COSMO1.VOL
cosmo_engine: /home/test/cosmo-engine/src/files/vol.c:127: vol_file_open: Assertion `open_vol_file(vol_filename, &vol_file)' failed.
./cca.sh: line 33:  9117 Aborted                 (core dumped) /home/user/Games/Cosmo/cosmo_engine -$ans -fs -datadir ./ep1 -savedir ./ep1 -gamedir ./ep1

Cheers,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions