conditional os in UI xml, add system dialog file open on osx, check api format or error message when opening a document, per-char text wrap on NodeText, additional info on create doc dialog like working path
This commit is contained in:
@@ -13,7 +13,7 @@ AAssetManager* Asset::m_am;
|
||||
|
||||
bool Asset::delete_file(const std::string& path)
|
||||
{
|
||||
LOG("delete project: %s", path.c_str());
|
||||
LOG("delete file: %s", path.c_str());
|
||||
std::remove(path.c_str());
|
||||
return true;
|
||||
}
|
||||
@@ -136,7 +136,7 @@ bool Asset::open(const char* path)
|
||||
#ifdef __ANDROID__
|
||||
if (!(m_asset = AAssetManager_open(m_am, path, AASSET_MODE_RANDOM)))
|
||||
{
|
||||
LOG("AAssetManager_open failed");
|
||||
LOG("AAssetManager_open failed %s", path);
|
||||
return false;
|
||||
}
|
||||
m_len = (int)AAsset_getLength(m_asset);
|
||||
@@ -150,7 +150,7 @@ bool Asset::open(const char* path)
|
||||
//LOG("asset file: %s", file_path.c_str());
|
||||
if (!(m_fp = fopen(file_path.c_str(), "rb")))
|
||||
{
|
||||
LOG("errno = %d", errno);
|
||||
LOG("asset open errno = %d, %s", errno, path);
|
||||
return false;
|
||||
}
|
||||
fseek(m_fp, 0, SEEK_END);
|
||||
|
||||
Reference in New Issue
Block a user