Skip to content
Snippets Groups Projects
Commit 1bc59d45 authored by Alfred Burgess's avatar Alfred Burgess
Browse files

removed build warnings

parent b772bf3f
No related merge requests found
......@@ -15,7 +15,7 @@ std::string ConfigParser::get( std::string key )
std::string ConfigParser::toString() const
{
std::string str = "Config File: "+this->_path+"\n";
for( const auto [key, value] : this->_config )
for( const auto& [key, value] : this->_config )
{ str += "["+key+"] "+value+"\n"; }
return str;
}
......
......@@ -32,8 +32,8 @@ void GameEngine::run()
{
this->isRunning = true;
this->_frame = 0;
std::chrono::system_clock::time_point now = std::chrono::system_clock::now();
std::time_t _frametime = std::chrono::system_clock::to_time_t(now);
// std::chrono::system_clock::time_point now = std::chrono::system_clock::now();
// std::time_t _frametime = std::chrono::system_clock::to_time_t(now);
while( this->isRunning ) { this->update(); }
}
......
......@@ -3,15 +3,13 @@
#ifndef __TEST_RUNNER__
int main( int argc, char* argv[] ) {
const uint16_t SCREEN_HEIGHT = 600;
const uint16_t SCREEN_WIDTH = 800;
// const uint16_t SCREEN_HEIGHT = 600;
// const uint16_t SCREEN_WIDTH = 800;
GameState state = Uninitialised;
// GameState state = Uninitialised;
// Initialise
Logger& logger = Logger::instance();
int tickCount = 0;
int _frame = 0;
// SaveManager saveManager;
// state = Initialise;
......
......@@ -46,10 +46,10 @@ void SaveManager::findSaves()
return;
}
for( const auto& entry : std::filesystem::directory_iterator( SAVE_LOCATION ) )
{
// saves.push_back( SaveItem(entry.path().filename() ) );
}
// for( const auto& entry : std::filesystem::directory_iterator( SAVE_LOCATION ) )
// {
// saves.push_back( SaveItem(entry.path().filename() ) );
// }
this->saves = saves;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment