Path.cpp 513 B

12345678910111213141516171819202122232425
  1. #include "os/c-api/il2cpp-config-platforms.h"
  2. #if !RUNTIME_TINY
  3. #include "os/Path.h"
  4. #include "utils/PathUtils.h"
  5. #include "Allocator.h"
  6. extern "C"
  7. {
  8. const char* UnityPalGetTempPath()
  9. {
  10. return Allocator::CopyToAllocatedStringBuffer(il2cpp::os::Path::GetTempPath());
  11. }
  12. int32_t UnityPalIsAbsolutePath(const char* path)
  13. {
  14. if (path == NULL)
  15. return 0;
  16. std::string path_string = path;
  17. return il2cpp::os::Path::IsAbsolute(path_string);
  18. }
  19. }
  20. #endif