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
366366
367367
368368 /* 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__)
370370
371371 #include <wordexp.h>
372372 //-----------------------------------------------------------------------------
@@ -455,7 +455,7 @@ std::string globTildePath( const std::string & path ) · 82 unmodified lines
455455 //
456456 // return result;
457457 //}
458−#endif // __PLATFORM_WIN32__ && __EMSCRIPTEN__ && __ANDROID__
458+#endif // not __PLATFORM_WIN32__ && __EMSCRIPTEN__ && __ANDROID__ && __CHIP_MODE__
459459
460460
461461
@@ -506,8 +506,8 @@ std::string get_full_path( const std::string & fp ) · 44 unmodified lines
506506 //-----------------------------------------------------------------------------
507507 std::string expand_filepath( std::string & fp, t_CKBOOL ensurePathExists )
508508 {
509−#if defined(__PLATFORM_WIN32__) || defined(__EMSCRIPTEN__) || defined(__ANDROID__)
510− // no expansion in Windows systems or Emscripten or Android
509+#if defined(__PLATFORM_WIN32__) || defined(__EMSCRIPTEN__) || defined(__ANDROID__) || defined(__CHIP_MODE__)
510+ // no expansion in Windows systems or Emscripten or Android or iOS
511511 return fp;
512512 #else
513513 // 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