TOML Parsing and Code Refactor #15
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
HugeSpaceship/Patchwork!15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "config-parse"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This commit changes a decent amount of things, namely:
And there are also some smaller changes:
config.mkSome nitpicks, looks good overall though
@ -10,7 +14,7 @@ LD = $(PPU_DIR)/$(PPU_PREFIX)gccSCETOOL ?= ./scetool.exeRealistically this should probably be a placeholder rather than your local ps3 ip
@ -1,83 +1,33 @@#include <sys/prx.h>#include <stdlib.h>#include <sys/ppu_thread.h> // sys_ppu_thread_yield#include <string.h>you have done a stupid find and replace, and it has broken the emphasis. please fix.
@ -127,103 +77,123 @@ void patch_thread(uint64_t arg) {}this is C, not 0 is true
this could probably also be statically allocated
If going with the suggestion on line 123, this if statement will need to be removed.
this is wonky looking
@ -163,3 +131,4 @@else {strcpy(msgBuf, SUCCESS_MESSAGE_WITHOUT_PW);}did you change the message for it to require a different offset, I genuinely can't tell at this point.
@jvyden do you mind giving this a review when you get a chance please?
@ -127,103 +77,123 @@ void patch_thread(uint64_t arg) {}Why is that? It should still work fine. I could set the value when I create the variable I suppose.
@ -127,103 +77,123 @@ void patch_thread(uint64_t arg) {}I didn't like how
else if ()looked with it in front of the}so I just did it this way everywhere lol.@ -163,3 +131,4 @@else {strcpy(msgBuf, SUCCESS_MESSAGE_WITHOUT_PW);}Yes, it is now just a string which doesn't include any of the webMAN request stuff (like
"%0A"string in place of newline character). This gets passed to the function which turns strings into webMAN popup requests.@ -10,7 +14,7 @@ LD = $(PPU_DIR)/$(PPU_PREFIX)gccSCETOOL ?= ./scetool.exeI'll just fix this at the end so I don't gotta change it every commit.
Apologies for the late review, I haven't been feeling well lately.
@ -0,0 +1,84 @@#include <stdlib.h>sizemeant to besize_t?@ -0,0 +6,4 @@#include <stdbool.h>#include <sys/return_code.h>#include <sys/syscall.h>Do we not have a memset function?
Can we eliminate this magic somehow?
As far as I understand, at some point the function in
message.cwas meant to do this, according to the comment at the top of the function. Is this no longer planned?@ -0,0 +6,4 @@#include <stdbool.h>#include <sys/return_code.h>#include <sys/syscall.h>Initially I had assumed memset didn't link correctly, which is why I thought this function was initially written. Seems to link fine though, so I'll change it.
I initially wasn't going mess with it because I didn't see a use case for it, but I missed this. Though I will probably use a "replace next character x in string" approach.
Sorry it took so long, been busy.
why does
2cf2c26449change line endings (or some other formatting)?I have no clue, git just died I suppose. The only differences are that I increased the minor version and fixed a function header define I forgot to update.
Perhaps it might've accidentally occurred because I added the changed files to git from my msys2 shell rather than from powershell. I know git likes to mess with line endings.
Alright, I've set everything to use LF, should be okay now?
Pull request closed