Added auto-complete extension for the output file#16
Added auto-complete extension for the output file#16akarapatakis wants to merge 2 commits intosapientcoder:masterfrom
Conversation
What did change? User doesn't need to add the extension manually anymore, the program itself selects the extension based on a new combobox.
Merge pull request sapientcoder#15 from ChocolateAdventurouz/master
|
Hello! I started contributing to this project because of a game that my friend is making and wanted to find an one-click solution that would make a cab file easily and fast. Now, in "First Challenge", maybe I wasn't clear enough on it, I will improve the label tomorrow 😄 But in "Second Challenge", the reason I didn't add a choice to add a customized choice, as it is based on the README file, it contains only these three extensions, but that's another thing I will fix tomorrow as well 😉! Thanks for respecting my effort trying to improve this utility! 🔥 |
|
Ah, okay. That makes sense. On a related note, CAB files can actually have any file extension, not just the ones I listed in the README. (For example, Microsoft used to have TSK files for its Windows Mobile operating system. Those were also CAB files but had a TSK extension.) What makes it a CAB file is that it conforms to Microsoft's Cabinet File Specification which you can see here: https://download.microsoft.com/download/4/d/a/4da14f27-b4ef-4170-a6e6-5b1ef85b1baa/[ms-cab].pdf It's possible there might be other files too which are "really" CAB files but use different extensions. I don't know for sure. But that's why I think allowing for custom extensions is probably still a good idea even if we provide a "shortcut" for the most common ones. |
|
Also, I'm just curious because I've never done game development... how are CAB files used in your friend's game? |
|
Nothing so special. All the game files are packed to a cab file and then on my installer, and updater, it extracts the cab to the installation directory. I told him today to start using compression since it is an online-based installer. |
|
Sorry for the late reply but i finally have time to spend on fixing the small problems on CabMaker. I recently switched only to Arch Linux and didn't have time to setup a windows virtual machine. I have changed the label that i had to from "File Type" to "Output File Extension" and added the none option on the extension combobox. I may push the commit later if i can! |

CabMaker may be used not only to make .cab archives, as referenced in README
And another scenario that this feature can be useful is when a user forgets to add the extension themselves, or they think that cabmaker does it automatically.
So, I added a combobox and modified the application accordingly in order to "request" from the user what file extension they want for they archive. After the user selects it (or it remains the default extension "cab") it modifies the output filename textbox with the file extension at the end. Here is a comparison between before and now
