Skip to content

Commit

Permalink
#1247: tiny export command fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nesbox committed Nov 24, 2020
1 parent 41469fe commit 5bd61aa
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/studio/screens/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1840,13 +1840,11 @@ static void onConsoleExportCommand(Console* console, const char* param)
exportMusic(console, atoi(param + MusicIndex) % MUSIC_TRACKS, getFilename(filename, ".wav"));
#if defined(CAN_EXPORT_NATIVE)
else if(strcmp(param, "native") == 0)
{
#if defined(__TIC_WINDOWS__)
filename = (char*)getFilename(filename, ".exe");
#endif

#if defined(__TIC_WINDOWS__)
onConsoleExportNativeCommand(console, getFilename(filename, ".exe"));
#else
onConsoleExportNativeCommand(console, filename);
}
#endif
#endif
else
{
Expand Down

0 comments on commit 5bd61aa

Please sign in to comment.