Skip to content

Commit cb890b4

Browse files
committed
reorg assets
1 parent 646aa13 commit cb890b4

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

src/components/molecules/System/System.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function System({ data, onEnterPress, onFocus }) {
4343
>
4444
<img
4545
className="systems__bg"
46-
src={`file:///Users/rsedano/emudeck/launcher/themes/${themeName}/posters/${item.id}.jpg`}
46+
src={`file:///Users/rsedano/emudeck/launcher/themes/${themeName}/systems/${item.id}.jpg`}
4747
alt=""
4848
/>
4949
<div className="systems__excerpt">{item.excerpt}</div>

src/components/organisms/Systems/Systems.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ function Systems({ focusKey: focusKeyParam, systems }) {
9494
/>
9595
);
9696
})}
97+
<div className="system__fake">
98+
<System data={{}} onFocus={onAssetFocus} />
99+
</div>
97100
</div>
98101
</div>
99102
</FocusContext.Provider>

src/main/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ function processFolder(folderPath, depth) {
686686
systems[folderName] = { ...systemID, ...systemData };
687687
systems[
688688
folderName
689-
].poster = `file://${homeUser}/emudeck/launcher/themes/${theme}/posters/${folderName}.jpg`;
689+
].poster = `file://${homeUser}/emudeck/launcher/themes/${theme}/systems/${folderName}.jpg`;
690690
systems[
691691
folderName
692692
].controller = `file://${homeUser}/emudeck/launcher/themes/${theme}/controllers/${folderName}.png`;

src/pages/HomePage.jsx

+1-13
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,6 @@ function HomePage({ focusKey: focusKeyParam }) {
160160

161161
useEffect(() => {
162162
// Themes
163-
ipcChannel.sendMessage('get-available-themes');
164-
ipcChannel.once('get-available-themes', (systemsTemp) => {
165-
// Set current Selected theme
166-
const currentTheme = localStorage.getItem('current_theme');
167-
if (currentTheme) {
168-
ipcChannel.sendMessage('get-theme', [currentTheme]);
169-
ipcChannel.once('get-theme', (theme) => {
170-
setState({ ...state, themeName: currentTheme, themes: systemsTemp });
171-
setStateTheme({ ...stateTheme, theme });
172-
});
173-
}
174-
});
175163
}, []);
176164

177165
const onClickSetTheme = (value) => {
@@ -205,7 +193,7 @@ function HomePage({ focusKey: focusKeyParam }) {
205193
{currentSystem && (
206194
<img
207195
className="global-background"
208-
src={`file:///Users/rsedano/emudeck/launcher/themes/${themeName}/posters/${currentSystem}.jpg`}
196+
src={`file:///Users/rsedano/emudeck/launcher/themes/${themeName}/backgrounds/${currentSystem}.jpg`}
209197
alt="System"
210198
/>
211199
)}

0 commit comments

Comments
 (0)