Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

OpenCL: change .bin dir to be in $XDG_DATA_HOME #238

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Artturin
Copy link

No description provided.

Copy link
Collaborator

@YukihoAA YukihoAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to unify {},

#239 should be fixed and merged with this PR

@@ -554,50 +587,11 @@ namespace w2xc
if (fp == NULL)
{
#if !defined(_WIN32)
if (errno == EACCES || errno == EROFS)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

errno is from L585 so should be moved together.

@@ -411,6 +411,39 @@ namespace w2xc

std::string bin_path = std::string(self_path) + "/" + dev_nameStr + ".bin";

#if !defined(_WIN32)
if (errno == EACCES || errno == EROFS)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in this case, we don't actually judge we have permission to write self_path

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
3 participants