Dman95 / SASM

SASM - simple crossplatform IDE for NASM, MASM, GAS and FASM assembly languages

Home Page:http://dman95.github.io/SASM/

Repository from Github https://github.comDman95/SASMRepository from Github https://github.comDman95/SASM

Allow for other source code filetypes

SirClickALot opened this issue · comments

I would like to be able to configure SASM so that it can browse and open .s files (source files) as well as the default .asm files?

Is that configurable somewhere?

Should we add a configuration option to set up other extensions perhaps?

Thank you.

It seems you can set this up in your OS settings.

Apologies for being unclear here but I was asking about associating filetypes with applications, I was referring to the (limited to only one - .asm) types on the Open file dialogue window.

Thanks

For now, you can select the "All files" option. Perhaps a separate option for .s files will be added in future versions.

@SirClickALot To accomplish this, you'll need to tweak the openFile method within the Mainwindow class found in mainwindow.cpp at line 596. Specifically, you can adjust line 598 to allow for browsing and opening .s/.S source files by updating it as follows:

QString fileName = QFileDialog::getOpenFileName(this, tr("Open file"), saveOpenDirectory,
                                                    tr("Assembler source files (*.asm *.S *.s);;All files (*)"));

The issue has been fixed. The fix will be available in the next release. Thank you!