History

don't expand path on iOS

Jack Atherton committed 4 years ago

Commit dcbc1421 parent 1beafce1 file · +4 −4Browse files

Showing the changes to src/core/util_string.cpp (1 of 1 file). Show all

Unified · Split

src/core/util_string.cpp+4−4
@@ -366,7 +366,7 @@ done: · 365 unmodified lines
366 366
367 367
368/* from http://developer.apple.com/library/mac/#qa/qa1549/_index.html */368/* from http://developer.apple.com/library/mac/#qa/qa1549/_index.html */
369#if !defined(__PLATFORM_WIN32__) && !defined(__EMSCRIPTEN__) && !defined(__ANDROID__)369#if !defined(__PLATFORM_WIN32__) && !defined(__EMSCRIPTEN__) && !defined(__ANDROID__) && !defined(__CHIP_MODE__)
370 370
371#include <wordexp.h>371#include <wordexp.h>
372//-----------------------------------------------------------------------------372//-----------------------------------------------------------------------------
@@ -455,7 +455,7 @@ std::string globTildePath( const std::string & path ) · 82 unmodified lines
455//455//
456// return result;456// return result;
457//}457//}
458#endif // __PLATFORM_WIN32__ && __EMSCRIPTEN__ && __ANDROID__458#endif // not __PLATFORM_WIN32__ && __EMSCRIPTEN__ && __ANDROID__ && __CHIP_MODE__
459 459
460 460
461 461
@@ -506,8 +506,8 @@ std::string get_full_path( const std::string & fp ) · 44 unmodified lines
506//-----------------------------------------------------------------------------506//-----------------------------------------------------------------------------
507std::string expand_filepath( std::string & fp, t_CKBOOL ensurePathExists )507std::string expand_filepath( std::string & fp, t_CKBOOL ensurePathExists )
508{508{
509#if defined(__PLATFORM_WIN32__) || defined(__EMSCRIPTEN__) || defined(__ANDROID__)509#if defined(__PLATFORM_WIN32__) || defined(__EMSCRIPTEN__) || defined(__ANDROID__) || defined(__CHIP_MODE__)
510 // no expansion in Windows systems or Emscripten or Android510 // no expansion in Windows systems or Emscripten or Android or iOS
511 return fp;511 return fp;
512#else512#else
513 // expand ~ to full path513 // expand ~ to full path

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t