App::I static singleton to pointer
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user