No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Path.cpp 486B

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