MCPcopy Create free account
hub / github.com/ddnet/ddnet / fs_chdir

Function fs_chdir

src/base/fs.cpp:250–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250int fs_chdir(const char *path)
251{
252#if defined(CONF_FAMILY_WINDOWS)
253 const std::wstring wide_path = windows_utf8_to_wide(path);
254 return SetCurrentDirectoryW(wide_path.c_str()) != 0 ? 0 : 1;
255#else
256 return chdir(path) ? 1 : 0;
257#endif
258}
259
260char *fs_getcwd(char *buffer, int buffer_size)
261{

Callers 2

JNI_EXPORTED_FUNCTIONFunction · 0.85
InitAndroidFunction · 0.85

Calls 1

windows_utf8_to_wideFunction · 0.85

Tested by

no test coverage detected