Posts: 3
Joined: Mar 2011
Reputation:
0
I was trying to find a way to change the code for the XBMC.Quit action. After a couple of hours, I couldn't find where the files are located. I am running a Kubuntu 10.04 operating system.
Would this involve compiling the server from source or is there some PHP files I can edit?
If there is anyone with more experience than me, please point me in the right direction. Thanks.
Posts: 3
Joined: Mar 2011
Reputation:
0
I believe, I would have to compile the libjsonrpc library file. My search began with the xbmc/lib/libjsonrpc/JSONRPC.cpp souce file, line 195. Now, I would create a new method called CXBMCOperations::MonitorOff and replace the CXBMCOperations::Quit method reference with the new CXBMCOperations::MonitorOff method reference on line 195 of file JSONRPC.cpp. Or something along those lines.
Does anybody want to confirm my suspicions?
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
Yes that would be it. As a design choice JSON RPC uses explicit actions as much as possible you won't see the quit as having that control. However you could add a method System.TurnOffMonitor type of thing, this may be interesting for mainline inclusion even. Obviously depends on the quality of patch and if more devs agree.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."