WraitheDX / realms_shattered

This is a CLI (command line interface) text RPG programmed in C++.
11 stars 6 forks source link

Load game #20

Closed WraitheDX closed 4 years ago

WraitheDX commented 4 years ago

Flesh out the GameState::game_state_load, adding in the ability for player to load their save file.

This should display a nice title that says Load Game or something similar at the top of the screen. Should search the 'save' folder in project's root folder for all .sav files, and print the names (character names) of the files without the file extension. Player should be able to type in the character name and load that save. Should check for 'save' folder before trying to access, to protect against crashing, but no need to create one. If no save file found, or save file is empty, simply print 'No save files found'

Note: The call for checking if folder exists should be abstracted to platform and platform_windows if they are not OS agnostic.

WraitheDX commented 4 years ago

Save file loading has almost been implemented, but it seems a different method is needed on Windows. My msvc is unable to find dirent.h

Edit added windows file listing.