Jump to content
RealModScene
Sign in to follow this  
beginner

Additional Aurora Filters (hide emulators, applications and homebrew)

Recommended Posts

Hello guys,

I often need to view all kinds of games together and hide the other stuff. So I wrote these filters to hide other categories.

Edit: I used ~= operator instead of "not ( = )". Thanks a lot Swizzy for the great tip :)

Hide Applications:

GameListFilterCategories.User["Hide Applications"] = function(Content)
	return Content.ScriptData ~= "Applications"
end

Hide Emulators:

GameListFilterCategories.User["Hide Emulators"] = function(Content)
	return Content.ScriptData ~= "Emulators"
end

Hide Homebrew:

GameListFilterCategories.User["Hide Homebrew"] = function(Content)
	return Content.ScriptData ~= "Homebrew"
end

Of course to add any filter, you have to put in a file with extension .lua and place it inside folder: Media/Scripts/UserFilters

I hope that would be useful for anyone :)

I also added another one in my post below

Edited by beginner
  • Like 2

Share this post


Link to post
Share on other sites

Awesome, thanks for sharing and contributing toward the custom filter scene!  we need more of this as that's the reason we created it this way!

Yeah, I really admired that feature when i saw it :)

Share this post


Link to post
Share on other sites

A little tip for you, instead of doing "not (... == ...)" you can do "... ~= ..." <--- that's the same as doing != in most languages ;)

Share this post


Link to post
Share on other sites

Here is another one, shows only titles added in the past week:

GameListFilterCategories.User["Recent Adds"] = function(Content)
	t = os.date("*t")
	t.day = t.day - 7
	added = os.time{year=Content.DateAdded.Year, month=Content.DateAdded.Month, day=Content.DateAdded.Day}
	return added > os.time(t)
end

Please tell me if there is a better way to do it :)

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...