mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
RRenamed BX_CHECK to BX_ASSERT.
This commit is contained in:
@@ -108,7 +108,7 @@ namespace entry
|
||||
|
||||
virtual bool open(const bx::FilePath& _filePath, bx::Error* _err) override
|
||||
{
|
||||
BX_CHECK(NULL != _err, "Reader/Writer interface calling functions must handle errors.");
|
||||
BX_ASSERT(NULL != _err, "Reader/Writer interface calling functions must handle errors.");
|
||||
|
||||
if (NULL != m_file)
|
||||
{
|
||||
@@ -139,15 +139,15 @@ namespace entry
|
||||
|
||||
virtual int64_t seek(int64_t _offset, bx::Whence::Enum _whence) override
|
||||
{
|
||||
BX_CHECK(NULL != m_file, "Reader/Writer file is not open.");
|
||||
BX_ASSERT(NULL != m_file, "Reader/Writer file is not open.");
|
||||
return AAsset_seek64(m_file, _offset, _whence);
|
||||
|
||||
}
|
||||
|
||||
virtual int32_t read(void* _data, int32_t _size, bx::Error* _err) override
|
||||
{
|
||||
BX_CHECK(NULL != m_file, "Reader/Writer file is not open.");
|
||||
BX_CHECK(NULL != _err, "Reader/Writer interface calling functions must handle errors.");
|
||||
BX_ASSERT(NULL != m_file, "Reader/Writer file is not open.");
|
||||
BX_ASSERT(NULL != _err, "Reader/Writer interface calling functions must handle errors.");
|
||||
|
||||
int32_t size = (int32_t)AAsset_read(m_file, _data, _size);
|
||||
if (size != _size)
|
||||
@@ -555,7 +555,7 @@ namespace entry
|
||||
BX_UNUSED(_thread);
|
||||
|
||||
int32_t result = chdir("/sdcard/bgfx/examples/runtime");
|
||||
BX_CHECK(0 == result, "Failed to chdir to dir. android.permission.WRITE_EXTERNAL_STORAGE?", errno);
|
||||
BX_ASSERT(0 == result, "Failed to chdir to dir. android.permission.WRITE_EXTERNAL_STORAGE?", errno);
|
||||
|
||||
MainThreadEntry* self = (MainThreadEntry*)_userData;
|
||||
result = main(self->m_argc, self->m_argv);
|
||||
|
||||
Reference in New Issue
Block a user