Log out func register to cubism */
| 7 | |
| 8 | /** Log out func register to cubism */ |
| 9 | static void Cubism_Log(const char* message) |
| 10 | { |
| 11 | static thread_local skr::Vector<char> buf; |
| 12 | buf.clear(); |
| 13 | buf.assign(message, ::strlen(message) + 1); |
| 14 | // replace the last '\n' with '\0' |
| 15 | if (buf[buf.size() - 1] == '\n') |
| 16 | buf[buf.size() - 1] = '\0'; |
| 17 | SKR_LOG_TRACE(u8"[Live2D] %s", buf.data()); |
| 18 | } |
| 19 | |
| 20 | class CubismFrameWorkAllocator : public Csm::ICubismAllocator |
| 21 | { |