修复EFileUtils::getString函数名错误
This commit is contained in:
parent
ee796af1df
commit
c977bc12a3
|
|
@ -31,20 +31,24 @@ public:
|
||||||
});
|
});
|
||||||
this->add(button);*/
|
this->add(button);*/
|
||||||
auto sprite = new ESprite(L"test2.png");
|
auto sprite = new ESprite(L"test2.png");
|
||||||
sprite->setPivot(-1, 0);
|
|
||||||
sprite->setPos(EApp::getWidth() / 2, EApp::getHeight() / 2);
|
sprite->setPos(EApp::getWidth() / 2, EApp::getHeight() / 2);
|
||||||
this->add(sprite);
|
this->add(sprite);
|
||||||
|
|
||||||
sprite->runAction(new EActionLoop(new EActionRotateBy(1, 60)));
|
sprite->runAction(new EActionLoop(new EActionRotateBy(1, 60)));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
#include <iostream>
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
EApp app;
|
EApp app;
|
||||||
|
|
||||||
if (app.init(L"Easy2D Demo", 640, 480))
|
if (app.init(L"Easy2D Demo", 640, 480))
|
||||||
{
|
{
|
||||||
|
app.showConsole();
|
||||||
|
for (int i = 0; i < 20; i++)
|
||||||
|
{
|
||||||
|
std::cout << ERandom::between(1, 3) << std::endl;
|
||||||
|
}
|
||||||
ENode::setDefaultPiovt(0.5f, 0.5f);
|
ENode::setDefaultPiovt(0.5f, 0.5f);
|
||||||
|
|
||||||
auto scene = new Scene();
|
auto scene = new Scene();
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ float e2d::EFileUtils::getFloat(const EString & key, float default)
|
||||||
return std::stof(temp);
|
return std::stof(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
e2d::EString e2d::EFileUtils::geTString(const EString & key, const EString & default)
|
e2d::EString e2d::EFileUtils::getString(const EString & key, const EString & default)
|
||||||
{
|
{
|
||||||
TCHAR temp[256] = { 0 };
|
TCHAR temp[256] = { 0 };
|
||||||
::GetPrivateProfileString(L"Default", key.c_str(), default.c_str(), temp, 255, getDefaultSavePath().c_str());
|
::GetPrivateProfileString(L"Default", key.c_str(), default.c_str(), temp, 255, getDefaultSavePath().c_str());
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ public:
|
||||||
);
|
);
|
||||||
|
|
||||||
// 获取 字符串 型的值(若不存在则返回 default 参数的值)
|
// 获取 字符串 型的值(若不存在则返回 default 参数的值)
|
||||||
static EString geTString(
|
static EString getString(
|
||||||
const EString & key,
|
const EString & key,
|
||||||
const EString & default
|
const EString & default
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue