修改底层渲染为OpenGL
This commit is contained in:
@@ -54,4 +54,19 @@ std::string Tool_TruncatePath(const std::string &path)
|
||||
|
||||
// 如果没有找到 '/',返回原字符串(或根据需求返回空)
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
int Tool_get_file_size(const std::string &path)
|
||||
{
|
||||
FILE *file = fopen(path.c_str(), "rb");
|
||||
if (file == nullptr)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
fseek(file, 0, SEEK_END);
|
||||
int size = ftell(file);
|
||||
fclose(file);
|
||||
|
||||
return size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user