Skip to content
Merged
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
4 changes: 2 additions & 2 deletions packages/origine2/src/pages/dashboard/GameElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const RenameIcon = bundleIcon(Rename24Filled, Rename24Regular);
const DeleteIcon = bundleIcon(Delete24Filled, Delete24Regular);

export default function GameElement(props: IGameElementProps) {
const soureBase = 'background';
const sourceBase = 'background';

let className = styles.gameElement_main;
if (props.checked) {
Expand Down Expand Up @@ -111,7 +111,7 @@ export default function GameElement(props: IGameElementProps) {
<>
<div onClick={props.onClick} className={className} id={props.gameInfo.dir}>
<img
src={`/games/${props.gameInfo.dir}/game/${soureBase}/${props.gameInfo.cover}`}
src={`/games/${props.gameInfo.dir}/game/${sourceBase}/${props.gameInfo.cover}`}
alt={props.gameInfo.name}
className={styles.gameElement_cover}
/>
Expand Down
15 changes: 12 additions & 3 deletions packages/terre2/src/Modules/manage-game/manage-game.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ export class ManageGameService {
.filter((commandText) => commandText !== '')
.map((commandText) => {
const i = commandText.indexOf(':');
const arr = [commandText.slice(0, i), commandText.slice(i + 1)];
const arr = [
commandText.slice(0, i).trim(),
commandText.slice(i + 1).trim(),
];
config[arr[0]] = arr[1];
});
}
Expand Down Expand Up @@ -623,13 +626,19 @@ export class ManageGameService {
);
await this.webgalFs.mkdir(
// eslint-disable-next-line prettier/prettier
`${androidExportDir}/app/src/main/java/${gameConfig.Package_name.replace(/\./g, '/')}`,
`${androidExportDir}/app/src/main/java/${gameConfig.Package_name.replace(
/\./g,
'/',
)}`,
'',
);
await this.webgalFs.copy(
`${androidExportDir}/app/src/main/java/MainActivity.kt`,
// eslint-disable-next-line prettier/prettier
`${androidExportDir}/app/src/main/java/${gameConfig.Package_name.replace(/\./g, '/')}/MainActivity.kt`
`${androidExportDir}/app/src/main/java/${gameConfig.Package_name.replace(
/\./g,
'/',
)}/MainActivity.kt`,
);
await this.webgalFs.deleteFileOrDirectory(
`${androidExportDir}/app/src/main/java/MainActivity.kt`,
Expand Down
Loading