mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-19 17:40:51 +02:00
Use path separator that depends on platform (in screenshot tools).
This commit is contained in:
parent
837d5e18f3
commit
9e92f4f370
@ -417,7 +417,11 @@ void ScreenshotCommand::CapturePreferences(
|
|||||||
|
|
||||||
// Yucky static variables. Is there a better way? The problem is that we need the
|
// Yucky static variables. Is there a better way? The problem is that we need the
|
||||||
// idle callback to know more about what to do.
|
// idle callback to know more about what to do.
|
||||||
|
#ifdef __WXMSW__
|
||||||
mDirToWriteTo = mFileName.BeforeLast('\\') + "\\";
|
mDirToWriteTo = mFileName.BeforeLast('\\') + "\\";
|
||||||
|
#else
|
||||||
|
mDirToWriteTo = mFileName.BeforeLast('/') + "/";
|
||||||
|
#endif
|
||||||
mpShooter = this;
|
mpShooter = this;
|
||||||
const int nPrefsPages = 19;
|
const int nPrefsPages = 19;
|
||||||
|
|
||||||
@ -580,7 +584,11 @@ void ScreenshotCommand::CaptureCommands(
|
|||||||
wxString Str;
|
wxString Str;
|
||||||
// Yucky static variables. Is there a better way? The problem is that we need the
|
// Yucky static variables. Is there a better way? The problem is that we need the
|
||||||
// idle callback to know more about what to do.
|
// idle callback to know more about what to do.
|
||||||
|
#ifdef __WXMSW__
|
||||||
mDirToWriteTo = mFileName.BeforeLast('\\') + "\\";
|
mDirToWriteTo = mFileName.BeforeLast('\\') + "\\";
|
||||||
|
#else
|
||||||
|
mDirToWriteTo = mFileName.BeforeLast('/') + "/";
|
||||||
|
#endif
|
||||||
mpShooter = this;
|
mpShooter = this;
|
||||||
|
|
||||||
for( size_t i=0;i<Commands.GetCount();i++){
|
for( size_t i=0;i<Commands.GetCount();i++){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user