prepare for ins preview in system file picker
This commit is contained in:
parent
8a1f544eef
commit
03e31c441e
9 changed files with 58 additions and 19 deletions
9
extern/nfd-modified/src/include/nfd.h
vendored
9
extern/nfd-modified/src/include/nfd.h
vendored
|
|
@ -10,10 +10,6 @@
|
|||
#ifndef _NFD_H
|
||||
#define _NFD_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/* denotes UTF-8 char */
|
||||
|
|
@ -66,9 +62,4 @@ nfdchar_t *NFD_PathSet_GetPath( const nfdpathset_t *pathSet, size_t index );
|
|||
/* Free the pathSet */
|
||||
void NFD_PathSet_Free( nfdpathset_t *pathSet );
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -8,6 +8,12 @@
|
|||
#include "nfd.h"
|
||||
#include "nfd_common.h"
|
||||
|
||||
// this language is a mess!
|
||||
// who thought it was a good idea to combine Objective-C and C++ together
|
||||
// when you could just have used C++ and call it a day!!!
|
||||
//
|
||||
// might as well make Objective-Ruswift++...
|
||||
|
||||
static NSArray *BuildAllowedFileTypes( const char *filterList )
|
||||
{
|
||||
// Commas and semicolons are the same thing on this platform
|
||||
8
extern/nfd-modified/src/nfd_common.h
vendored
8
extern/nfd-modified/src/nfd_common.h
vendored
|
|
@ -14,10 +14,6 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define NFD_MAX_STRLEN 256
|
||||
#define _NFD_UNUSED(x) ((void)x)
|
||||
|
||||
|
|
@ -30,10 +26,6 @@ void NFDi_SetError( const char *msg );
|
|||
int NFDi_SafeStrncpy( char *dst, const char *src, size_t maxCopy );
|
||||
int32_t NFDi_UTF8_Strlen( const nfdchar_t *str );
|
||||
int NFDi_IsFilterSegmentChar( char ch );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
1
extern/nfd-modified/src/nfd_win.cpp
vendored
1
extern/nfd-modified/src/nfd_win.cpp
vendored
|
|
@ -423,6 +423,7 @@ nfdresult_t NFD_OpenDialog( const nfdchar_t *filterList,
|
|||
}
|
||||
|
||||
// Show the dialog.
|
||||
// TODO: pass the Furnace window here
|
||||
result = fileOpenDialog->Show(NULL);
|
||||
if ( SUCCEEDED(result) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue