修复EFileUtils::getString函数名错误

This commit is contained in:
Nomango 2017-11-09 21:04:39 +08:00
parent ee796af1df
commit c977bc12a3
3 changed files with 8 additions and 4 deletions

View File

@ -31,20 +31,24 @@ public:
});
this->add(button);*/
auto sprite = new ESprite(L"test2.png");
sprite->setPivot(-1, 0);
sprite->setPos(EApp::getWidth() / 2, EApp::getHeight() / 2);
this->add(sprite);
sprite->runAction(new EActionLoop(new EActionRotateBy(1, 60)));
}
};
#include <iostream>
int main()
{
EApp app;
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);
auto scene = new Scene();

View File

@ -93,7 +93,7 @@ float e2d::EFileUtils::getFloat(const EString & key, float default)
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 };
::GetPrivateProfileString(L"Default", key.c_str(), default.c_str(), temp, 255, getDefaultSavePath().c_str());

View File

@ -142,7 +142,7 @@ public:
);
// 获取 字符串 型的值(若不存在则返回 default 参数的值)
static EString geTString(
static EString getString(
const EString & key,
const EString & default
);