Skip to content

simulator: add optional listName to config.lua#4

Open
XeduR wants to merge 3 commits intocoronalabs:masterfrom
XeduR:master
Open

simulator: add optional listName to config.lua#4
XeduR wants to merge 3 commits intocoronalabs:masterfrom
XeduR:master

Conversation

@XeduR
Copy link
Copy Markdown
Contributor

@XeduR XeduR commented Apr 15, 2026

This allows users to define listName property inside config.lua's application table.

Missing or malformed config.lua is handled gracefully. If listName property is not defined, then Simulator falls back on default behaviour, i.e. this will not affect any existing projects. Projects will need to add application.listName to their config.lua to see any changes.

This change only affects the display texts in the Simulator's Recent Projects. This change does not affect the build process or anything else.

Current behaviour

Solar2D Simulator picks the project's display name based on the folder where the project's main.lua file is located. This can result in non-descriptive and even duplicate project names in the list.

current

New behaviour

Insert listName (string) to config.lua and the project's name changes in the Simulator's Recent Projects list. This allows developers to control exactly how their projects appear in the list.

config.lua:

application =
{
	listName = "Solar2D Playground",

	content =
	{
		width = 640,
		height = 960,
		scale = "letterbox",
		fps = 60,
	},
}
update

XeduR added 3 commits April 14, 2026 20:07
- Extract current year from buildNum instead of hardcoding
- Fix start year from 2020 to 2009 to match original Corona SDK release year (same as in the Console copyright message)
Simulator only:

Users can now define listName property inside config.lua's application table.

Handles missing and malformed config.lua gracefully. If listName property is not defined, then Simulator falls back to default behaviour.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant