Skip to content

Instantly share code, notes, and snippets.

View gricard's full-sized avatar

Gabriel Ricard gricard

View GitHub Profile
@gricard
gricard / save_file_fix.patch
Created March 26, 2023 13:02
open_agb_firm patch for loading save from rom directory
diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c
index 9e447bd..31f9bf9 100644
--- a/source/arm11/open_agb_firm.c
+++ b/source/arm11/open_agb_firm.c
@@ -767,21 +767,32 @@ Result oafInitAndRun(void)
rom2GameCfgPath(filePath);
if((res = parseOafConfig(filePath, false)) != RES_OK && res != RES_FR_NO_FILE) break;
+ // use rom path for save path
+ char *const saveFilePath = (char*)calloc(strlen(filePath)+1, 1);
@gricard
gricard / vim.txt
Last active November 27, 2019 20:45
VIM
:q quit
:q! quit without saving
:w save changes
:wq save and exit
:x save and exit
:cq exit with error code
MISC
. repeat last command
:source file reload config file (:source ~/.ideavimrc)
@gricard
gricard / webpack4upgrade.md
Last active February 29, 2024 20:23
Just some notes about my attempt to upgrade to webpack 4

If you enjoyed reading this, I'm intending to do more blogging like this over here: https://cdgd.tech

This is not a complaint about Webpack or v4 in any way. This is just a record of my process trying it out so I could provide feedback to the webpack team

Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it. All I need to do is npm i -D webpack@next, right?

+ [email protected]