Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
allow-git=all
57 changes: 57 additions & 0 deletions arguments_example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[
{
"key": "DEV_MODE",
"description": "Activates the developer mode, enabling additional debug tools and shortcuts.",
"type": "boolean"
},
{
"key": "CONFIGURATION_FILE",
"description": "Path to the configuration file to use.",
"type": "string"
},
{
"key": "NO_CAMERA_MIN_ZOOM",
"description": "Disables the minimum zoom restriction on the camera.",
"type": "boolean"
},
{
"key": "ONLY_ALLOWED_TEAM_TAB",
"description": "The tab number of the only tab allowed in the Fighter Management UI.",
"type": "number"
},
{
"key": "ONLY_ALLOWED_LADDER_TAB",
"description": "The tab number of the only tab allowed in the Ladder UI one of [ONE_VS_ONE,EVOLUTION,TWO_VS_TWO,GUILD,TOURNAMENT,PRO]",
"type": "string"
},
{
"key": "SKIP_TURN_NO_DELAY",
"description": "Bypass the delay before ending a turn.",
"type": "boolean"
},
{
"key": "REPLAY_FILE_PATH",
"description": "Path to a replay file to load and play.",
"type": "string"
},
{
"key": "WORLD_FADE",
"description": "Activates the world fade effect during transitions.",
"type": "boolean"
},
{
"key": "HOT_RELOAD_EFFECT",
"description": "Enables hot reloading of visual effects.",
"type": "boolean"
},
{
"key": "NO_CLASS_RESTRICTION",
"description": "Disables class restrictions for character creation or editing.",
"type": "boolean"
},
{
"key": "RESTORE_CONSOLE_PATH",
"description": "Restores the last used console path on startup instead of defaulting to server.",
"type": "boolean"
}
]
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions packages/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function initApp(initConfig: AppInitConfig) {
createWindowManagerModule({
initConfig,
openDevTools: import.meta.env.DEV,
})
}),
)
.init(disallowMultipleAppInstance())
.init(terminateAppOnLastWindowClose())
Expand All @@ -59,16 +59,18 @@ export async function initApp(initConfig: AppInitConfig) {
.init(
allowInternalOrigins(
new Set(
initConfig.renderer instanceof URL ? [initConfig.renderer.origin] : []
)
)
initConfig.renderer instanceof URL
? [initConfig.renderer.origin]
: [],
),
),
)
.init(
allowExternalUrls(
initConfig.renderer instanceof URL
? ALLOWED_EXTERNAL_ORIGINS
: new Set()
)
: new Set(),
),
);

await moduleRunner;
Expand Down
Loading
Loading