hippie68 / pkgrename Goto Github PK
View Code? Open in Web Editor NEWC program that renames PS4 PKG files based on param.sfo information, online search, and predefined patterns.
C program that renames PS4 PKG files based on param.sfo information, online search, and predefined patterns.
Setting this pattern pattern='$content_id-A${app_ver//.}-V${version//.}.pkg'
in the old bash script I can rename the package with its "longname". Can you include this pattern in the new one?
With recursive subdirectories it should skip the recycle bin and other hidden directories.
"$I4IJUED.pkg"
File is not a PKG: "k:$RECYCLE.BIN\S-1-5-21-775778504-1851103982-645274329-1001$I4IJUED.pkg".
[process exited with code 1 (0x00000001)]
Suggestion: Print Usage on argument-less runs
Hey, first of all thanks for this great tool.
I am currently looking into automating the process of generating a repository which can be used by https://www.4pt-project.com/ . The Repository requires a name and type to be set ( https://github.com/victorrjimenezz/4PT-Repository#adding-packages ).
For this it would be great to have the information the pkgrename tool is parsing in a machine-readable form to transform the data into the repository format.
Right now this does not seem to be possible with pkgrename, is there any way to get the information anyway?
Cheers!
Trying to compile on Arch Linux I get this output:
gcc -Wall -Wextra --pedantic pkgrename.c src/*.c -o pkgrename -lcurl -pthread -s -O3
/usr/bin/ld: /tmp/ccu9iCDJ.o: in function `parse_directory':
scan.c:(.text+0x420): multiple definition of `parse_directory'; /tmp/ccH5in0V.o:dirparse.c:(.text+0x10): first defined here
/usr/bin/ld: /tmp/ccH5in0V.o: warning: relocation against `first_run' in read-only section `.text'
/usr/bin/ld: /tmp/ccH5in0V.o: in function `parse_directory':
dirparse.c:(.text+0x1c8): undefined reference to `pkgrename'
/usr/bin/ld: dirparse.c:(.text+0x312): undefined reference to `first_run'
/usr/bin/ld: dirparse.c:(.text+0x31c): undefined reference to `first_run'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
Is it possible to include Linux binaries in releases?
Not an issue but how the program detect the pkg is backported? I’m not familiar with C. Nice tool btw.
Program seems to be working great but when I try and add the pattern argument it doesn't want to work.
example if my .bat is this:
pkgrename.exe -r -p "%title% (%title_id%) ({v%app_ver%}) ({SDK%sdk%})" %*
then I will get this:
Entering directory ".\CUSA00000 Example Game-A0100-Scene
"Example Game.pkg"
=> "(v) (SDK).pkg"
If I remove the pattern argument it works correctly using the default pattern.
After enabling the UTF-8 beta feature: Settings - Time & Language - Language - Administrative language settings - Changing system locale... - Beta: Use Unicode UTF-8 for worldwide language support I can say rename D.pkg successfully to Déraciné.pkg but i can not rename Déraciné.pkg to something else (without renaming it say back to D.pkg first).
"D�racin�.pkg"
Error while opening file "k:\D�racin�.pkg".
[process exited with code 1 (0x00000001)]
Maybe you could take the first 2 characters from the %content_id% so region can be part of the file name?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.