Archived
1
Fork 0

Load graphics preset anyway if user.cfg doesnt exist

This commit is contained in:
Joshua Goins 2018-11-08 14:14:11 -05:00
parent d5dcb3ddee
commit 80deaf7142
3 changed files with 6 additions and 1 deletions

View file

@ -66,8 +66,10 @@ void loadGraphicsConfig() {
void readConfig() {
Config config;
if(!config.load("user.cfg"))
if(!config.load("user.cfg")) {
loadGraphicsConfig(); // load medium anyway
return;
}
windowX = toInt(config.get("Window", "x"));
windowY = toInt(config.get("Window", "y"));

View file

@ -1,5 +1,6 @@
#include "shadowpass.h"
#include <array>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>

View file

@ -1,5 +1,7 @@
#include "skypass.h"
#include <array>
#include "renderer.h"
SkyPass::SkyPass(Renderer& renderer) : renderer_(renderer) {