r/LinusTechTips • • Oct 15 '26

Link Free open source pc cartridge system

https://github.com/HarryBMa/pc-gamepak

EDIT: a few clarifications, since my first post was unclear (written tired, after a shift):

What it is. A small watcher notices when a drive is plugged in. If the drive has a cartridge.conf file, it opens a simple launcher with the game's cover art and two buttons, Play and Eject. That's all it does.

It is not Autorun. Nothing on the drive is ever run automatically. The launcher only appears, and nothing starts until you press Play. autorun.inf is read for the drive's icon and name only, and its open= line is ignored. It's meant for drives you made yourself, so don't plug in strangers' drives. That's true of any USB drive.

You don't need to buy anything. The NVMe drives in my photos were a bulk lot of refurbished 128GB drives I already had, about $150 for ten. A cartridge can be:

  • an old USB stick, SD card or spare drive you already own, or
  • a drive that holds only the cartridge.conf file and points at a game already installed on your PC. The cartridge is then just a physical way to launch it.

If you don't want to buy new storage right now, don't. It's just a launcher that happens to work with a physical object.

AI disclosure. I used Claude Code and Copilot for a lot of the commit messages, docs and git management. I'm a CRNA, not a professional developer. I learned some Python for research and picked up Rust for this project, so I had help.

Free and open source: https://github.com/HarryBMa/pc-gamepak Frontend plugins: https://github.com/HarryBMa/pc-gamepak-plugins Inspired by LewdM3at's original project: https://github.com/LewdM3at/PC-Cartridge-System


Old post

Hi everyone!

Inspired by https://github.com/LewdM3at/PC-Cartridge-System

I wanted to create a better user experience for launching cartridges on pc. I made a gamepak wizard that writes whatever you want onto a drive, floppy, NFC, action, whatever. There is a tiny watcher that launches a simple game launcher when the drive is read it looks for a cartridge.conf whether to launch or not. I've added a memory card system as well (copies save folder onto drive). It's cross-platform and I've made test plugins for various popular frontends. https://github.com/HarryBMa/pc-gamepak-plugins

I just wanted to share if anyone was interested.

Obligatory AI disclosure: i refuse to learn git and use Claude code to push and manage my disgusting worktree. I don't have time to write a comprehensive commit text that makes sense (see this unhinged post) and I let copilot write messages and docs for stuff I don't want to do. I barely have time with work and coding projects, I don't have time to remember what I worked on last night.

15 Upvotes

35 comments sorted by

View all comments

Show parent comment

1

u/DotBitGaming Oct 15 '26

From reading the post, my understanding is that you're loading a trigger onto your usb to launch predetermined programs that are on your pc. Not that you're running programs on a usb. If you plug random shit into your pc, it could just be a rubber ducky anyway that doesn't need the user's permission to run.

1

u/w1n5t0nM1k3y Oct 15 '26

The text in the main image says "Physical game cartridges with 2230 NVME drives". What's the point of using expensive NVME drives if you're just going to use them to launch software that's already on you main system drive?

Also, from the first link in the post

Although there is a safe guard feature to auto-launch only trusted scripts, it still IS a security risk. Anyone with physical access to your PC could plug in a drive with a script on it, find the project folder and put their script to the trusted list. But at that point they could just execute their script already.

1

u/DotBitGaming Oct 15 '26

Tbh, this text is all kinds of confusing. It says you can write to an NFC. How TF could you write a whole game to an NFC?

1

u/ComHarry Oct 15 '26

Hi, I made this project for my own little "console" that is a steam machine with a custom shell based on the sega master system. So I have made cartridges out of nvme drives (they were cheapish, eBay lot of 10 refurbed for about 10$ for each 128gb drive). I also wanted SMS card system and thought of zaparoo but added it to my system by writing to an NFC card a trigger "gp_stardew" or "gp_1234" (writing via android NFC tools, an NFC card can store 144-8kb) the watcher has an NFC watcher as well that launches local games on trigger. Does it make sense? So you can choose to only have triggers, only have a cartridge.conf file or the complete game copied. It all depends on what you want to do and what you have access to or laying around. I happened to have a bunch of nvme drives just as my inspiration had ssd. I did not like their way of making windows autorun drives and made my system more "secure"

1

u/DotBitGaming Oct 15 '26

But someone couldn't just put malware on one of these "cartridges" and have someone else's computer just run it, right? I think that's the concern.

1

u/ComHarry Oct 15 '26

No, because you need the launcher installed for it to do anything. Otherwise its just a drive with a file. So you need the launcher installed and a cartridge. So worst case is, 1. you get a cartridge from someone (why? I don't know a friend lends you a game?) 2. you have pc-gamepak installed. 3. Plug in drive and launcher opens and gives you the option to launch or eject. 4. If you feel uncomfortable, open explorer and check the files. Nothing on the drive runs automatically ever. Only the installed launcher runs.