Openkore.com

OpenKore Forums
It is currently 17 Aug 2018, 22:17

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [accinwin.pl] Adds acc name in the beginning of console name
PostPosted: 28 Aug 2017, 09:12 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 361
Code:
use Globals qw(%config);
use Plugins;

return unless
Plugins::register('accinwin', 'Add account name to window title', \&on_unload);

my $hooks = Plugins::addHooks(
      ['mainLoop::setTitle', \&onSetTitle],
   );

sub on_unload {
   Plugins::delHook($hooks);
}

sub onSetTitle{
   $_[1]->{return} =  $config{username} ." | ".$_[1]->{return};
}


in gist https://gist.github.com/Mortimal/7eb5cd ... 31160f9240

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
 Post subject: Re: [accinwin.pl] Adds acc name in the beginning of console name
PostPosted: 29 Aug 2017, 13:33 
Offline
Moderators
Moderators
User avatar

Joined: 16 Dec 2011, 02:53
Posts: 1192
Location: Brazil
Amazing ! 8-) 8-)

_________________
"'There are three things all wise men fear: the sea in storm, a night with no moon, and the anger of a gentle man.'" :P

Click here and travel to a new world -> Newbies
Read before asking something.
How to connect to private servers


Top
 Profile  
 
 Post subject: Re: [accinwin.pl] Adds acc name in the beginning of console name
PostPosted: 29 Aug 2017, 15:00 
Offline
Been there done that!
Been there done that!

Joined: 24 Mar 2012, 04:13
Posts: 116
why not edit customcaption plugin it's on needs-review


Top
 Profile  
 
 Post subject: Re: [accinwin.pl] Adds acc name in the beginning of console name
PostPosted: 29 Aug 2017, 15:37 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 361
that's why it is on forums but not in pull requests...

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
 Post subject: Re: [accinwin.pl] Adds acc name in the beginning of console name
PostPosted: 29 Aug 2017, 16:16 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 361
ok but il revise that thx for info

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group