Skip to content

Commit

Permalink
Merge branch 'hotfix/1.0.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
leiradel committed May 7, 2018
2 parents d2407e2 + 4d875d1 commit 7584575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
13 changes: 4 additions & 9 deletions src/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ bool Application::init(const char* title, int width, int height)
inited = kNothingInited;

_emulator = Emulator::kNone;
_recentListLoaded = false;

if (!_logger.init())
{
Expand Down Expand Up @@ -425,14 +424,11 @@ void Application::run()

void Application::destroy()
{
if (_recentListLoaded)
{
std::string json = "{\"recent\":";
json += serializeRecentList();
json += "}";
std::string json = "{\"recent\":";
json += serializeRecentList();
json += "}";

util::saveFile(&_logger, getConfigPath(), json.c_str(), json.length());
}
util::saveFile(&_logger, getConfigPath(), json.c_str(), json.length());

RA_Shutdown();

Expand Down Expand Up @@ -1391,7 +1387,6 @@ void Application::loadRecentList()
});

free(data);
_recentListLoaded = res == JSONSAX_OK;
}
}

Expand Down
1 change: 0 additions & 1 deletion src/Application.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ class Application

KeyBinds _keybinds;
std::vector<RecentItem> _recentList;
bool _recentListLoaded;

Allocator<256 * 1024> _allocator;

Expand Down

0 comments on commit 7584575

Please sign in to comment.