App::I static singleton to pointer

This commit is contained in:
2019-07-11 18:08:17 +02:00
parent 92dd00d910
commit b89274e7a6
33 changed files with 417 additions and 412 deletions

View File

@@ -6,7 +6,7 @@ Settings Settings::I;
bool Settings::load()
{
auto path = App::I.data_path + "/settings/pref.bin";
auto path = App::I->data_path + "/settings/pref.bin";
BinaryStreamReader sr;
if (sr.load(path))
{
@@ -18,7 +18,7 @@ bool Settings::load()
bool Settings::save()
{
auto path = App::I.data_path + "/settings/pref.bin";
auto path = App::I->data_path + "/settings/pref.bin";
BinaryStreamWriter sw;
sw.init();
I.write(sw);