Skip to content

Commit 9ae7bfc

Browse files
committed
Add Portfolio stub for non-Windows platforms
1 parent 917d407 commit 9ae7bfc

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ target_sources(studio
9696

9797
# TODO: replace with a module that saves settings to a file
9898
$<$<NOT:$<PLATFORM_ID:Windows>>:${PROJECT_SOURCE_DIR}/src/studio/configstub.cpp>
99+
$<$<NOT:$<PLATFORM_ID:Windows>>:${PROJECT_SOURCE_DIR}/src/studio/portfstub.cpp>
99100
)
100101

101102
target_include_directories(studio

src/studio/portfstub.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/***************************************************************************
2+
3+
portfstub.cpp: Portfolio stub
4+
5+
***************************************************************************/
6+
#include "studio.h"
7+
8+
ASSERTNAME
9+
10+
bool FPortDisplayWithIds(FNI *pfni, bool fOpen, int32_t lFilterLabel, int32_t lFilterExt, int32_t lTitle,
11+
PCSZ lpstrDefExt, PSTN pstnDefFileName, FNI *pfniInitialDir, uint32_t grfPrevType, CNO cnoWave)
12+
{
13+
Bug("Portfolio not implemented on this platform");
14+
return fFalse;
15+
}

0 commit comments

Comments
 (0)