Skip to content

Commit

Permalink
try to not set path back
Browse files Browse the repository at this point in the history
  • Loading branch information
tsssu committed Apr 24, 2024
1 parent 0b8a46e commit c436f52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ BEGIN_DEPLIST()
ADD_DEPENDENCY_VER(net.rusjj.aml, 1.2.1)
END_DEPLIST()

/*
inline size_t __strlen(const char *str)
{
const char* s = str;
Expand Down Expand Up @@ -56,6 +57,7 @@ inline void __pathback(char *str)
}
if(i > 0) str[i] = 0;
}
*/

// Pointers
void* pCLEO;
Expand Down Expand Up @@ -249,7 +251,7 @@ extern "C" void OnModPreLoad()

char tmp[256];
snprintf(tmp, sizeof(tmp), "%s", pCfgCLEOLocation->GetString());
__pathback(tmp);
//__pathback(tmp);

setenv("EXTERNAL_STORAGE", tmp, 1);
snprintf(tmp, sizeof(tmp), "%s/cleo", tmp);
Expand Down

0 comments on commit c436f52

Please sign in to comment.