Support for loading archives

This commit is contained in:
SimoneN64
2023-06-11 17:54:53 +02:00
parent cfc080fe2d
commit 3bb4f5e31e
11 changed files with 96 additions and 44 deletions

View File

@@ -49,7 +49,7 @@ void App::Run() {
switch(event.key.keysym.sym) {
case SDLK_o: {
nfdchar_t* outpath;
const nfdu8filteritem_t filter {"Nintendo 64 roms", "n64,z64,v64,N64,Z64,V64"};
const nfdu8filteritem_t filter {"Nintendo 64 roms/archives", "n64,z64,v64,N64,Z64,V64,zip,tar,rar,7z"};
nfdresult_t result = NFD_OpenDialog(&outpath, &filter, 1, nullptr);
if(result == NFD_OKAY) {
LoadROM(outpath);