Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for other source code filetypes #203

Open
SirClickALot opened this issue Jul 20, 2023 · 5 comments
Open

Allow for other source code filetypes #203

SirClickALot opened this issue Jul 20, 2023 · 5 comments

Comments

@SirClickALot
Copy link

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.

@Dman95
Copy link
Owner

Dman95 commented Jul 20, 2023

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

@Dman95 Dman95 closed this as completed Jul 20, 2023
@SirClickALot
Copy link
Author

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

@Dman95
Copy link
Owner

Dman95 commented Jul 20, 2023

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

@Dman95 Dman95 reopened this Jul 20, 2023
@ABHIJITH-EA
Copy link

@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 (*)"));

@faezlool
Copy link

faezlool commented Apr 4, 2024

422

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@SirClickALot @Dman95 @faezlool @ABHIJITH-EA and others