Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cant get controlconfig to work
11-02-2014, 03:50 AM
Post: #1
Cant get controlconfig to work
okay im trying to set custom keyboard binds for each game. Assuming --controlconfig modifies controls.ini. Ppsspp version is 0.9.9.1.718, win64. Nothing is read-only anywhere.

This works:
C:\Games\ppsspp\PPSSPPWindows64.exe --config="c:\temp\temp-settings.ini"


This doesnt:
C:\Games\ppsspp\PPSSPPWindows64.exe --controlconfig="c:\temp\temp-controls.ini"

In fact adding --controlconfig makes the program ignore ppsspp.ini and ignore any changes made, in both settings and controls and reverts to default after program restart. Its like ppsspp doesnt understand what controlconfig means and is getting confused.
Find all posts by this user
Quote this message in a reply
11-02-2014, 09:37 AM
Post: #2
RE: Cant get controlconfig to work
okay im computer illiterate and i dont know how i got there but
http:// github.com/hrydgard/ppsspp/blob/master/Windows/main.cpp

line 419, the bolded word shouldnt that be "controlsConfigFilename"?


char configFilename[MAX_PATH] = { 0 };
char controlsConfigFilename[MAX_PATH] = { 0 };
...
std::strncpy(configFilename, tempStr.c_str(), MAX_PATH);
std::strncpy(configFilename, tempStr.c_str(), MAX_PATH);
...
g_Config.Load(configFilename, controlsConfigFilename);
Find all posts by this user
Quote this message in a reply
11-02-2014, 11:04 AM (This post was last modified: 11-02-2014 11:18 AM by Bigpet.)
Post: #3
RE: Cant get controlconfig to work
yep, you're right, this is the commit that introduced the copy&paste error: https://github.com/hrydgard/ppsspp/commi...fc33cf4881 so it's been broken since August 31

If you have a github account you can even fix that via the website. If you don't want to make your own pull-request I can do it for you

Btw. you can link to specific lines as well https://github.com/hrydgard/ppsspp/blob/...n.cpp#L419
Find all posts by this user
Quote this message in a reply
11-02-2014, 12:08 PM
Post: #4
RE: Cant get controlconfig to work
im not quite into that online stuff.. i did create an account but im afraid of clicking anywhere in such a big project. that would be great if you could make a request.
Find all posts by this user
Quote this message in a reply
11-02-2014, 12:31 PM
Post: #5
RE: Cant get controlconfig to work
Alright, but it's not like you could break anything, since you can not change anything directly but merely request that a change should be made. Then a maintainer has to look at those changes and decide whether they're ok or not.

Anyway, here' the pull request I opened: https://github.com/hrydgard/ppsspp/pull/7041
Find all posts by this user
Quote this message in a reply
11-02-2014, 07:00 PM
Post: #6
RE: Cant get controlconfig to work
Wow that was amazingly fast! Awesome. As for me i dont know c++ so checking a c++ project is nonsensical. and w/o a debugger its ten times more difficult anyway. Look we missed another variable there. I did a pull after your example this time. Tbh I feel a bit ashamed for that kind of changes.
Find all posts by this user
Quote this message in a reply
11-02-2014, 07:03 PM
Post: #7
RE: Cant get controlconfig to work
Well, these things happen, especially in hobby projects where testing rigor is not a thing most of the time. I didn't look at the surrounding code and I didn't test it, because I couldn't bother finding valid *.inis to test.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: