Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 6873c04

Browse files
committed
add notes and chown commands to allow users to mount in rom dirs
1 parent ac1f119 commit 6873c04

File tree

3 files changed

+85
-0
lines changed

3 files changed

+85
-0
lines changed

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,42 @@ Mobile browsers will function, just keep in mind compatibility will be reduced e
7575

7676
**We know about most of the oddities like crackling sound for some emulators, rendering issues, and games unreliably auto launching to fullscreen. In general full CD games on the Xbox web browser do not seem to work due to their size if you have a chd/pbp less than 450 megs it will run. Edge on Xbox has some kind of undocumented ram limitation of about a gigabyte. Until all emulators are transitioned to libretro cores the oddities of using self hosted EmulatorJS will not be something that can or should be solved using hacky workarounds interacting with obfuscated code. Just keep in mind these are full blown machine emulators running in Javascript in a browser, do not expect bare metal performance.**
7777

78+
Mounting in existing rom directories can be achieved by pointing to the default folder structure, IE lets say you would like to mount your NES library:
79+
80+
`-v /path/to/nes/roms:/data/nes/roms`
81+
82+
The folder names are:
83+
* 3do
84+
* arcade
85+
* atari2600
86+
* atari7800
87+
* colecovision
88+
* doom
89+
* gb
90+
* gba
91+
* gbc
92+
* jaguar
93+
* lynx
94+
* msx
95+
* n64
96+
* nds
97+
* nes
98+
* ngp
99+
* odyssey2
100+
* pce
101+
* psx
102+
* sega32x
103+
* segaCD
104+
* segaGG
105+
* segaMD
106+
* segaMS
107+
* segaSaturn
108+
* segaSG
109+
* snes
110+
* vb
111+
* vectrex
112+
* ws
113+
78114
## Usage
79115

80116
Here are some example snippets to help you get started creating a container.
@@ -246,6 +282,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
246282

247283
## Versions
248284

285+
* **25.01.22:** - Allow users to mount in existing rom directories.
249286
* **14.01.22:** - Add profile paths and rebase to Alpine 3.15.
250287
* **04.01.22:** - Add headers needed for Threaded emulators.
251288
* **29.11.21:** - Add wasm mime type to NGINX.

readme-vars.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,45 @@ app_setup_block: |
5353
5454
**We know about most of the oddities like crackling sound for some emulators, rendering issues, and games unreliably auto launching to fullscreen. In general full CD games on the Xbox web browser do not seem to work due to their size if you have a chd/pbp less than 450 megs it will run. Edge on Xbox has some kind of undocumented ram limitation of about a gigabyte. Until all emulators are transitioned to libretro cores the oddities of using self hosted EmulatorJS will not be something that can or should be solved using hacky workarounds interacting with obfuscated code. Just keep in mind these are full blown machine emulators running in Javascript in a browser, do not expect bare metal performance.**
5555
56+
Mounting in existing rom directories can be achieved by pointing to the default folder structure, IE lets say you would like to mount your NES library:
57+
58+
`-v /path/to/nes/roms:/data/nes/roms`
59+
60+
The folder names are:
61+
* 3do
62+
* arcade
63+
* atari2600
64+
* atari7800
65+
* colecovision
66+
* doom
67+
* gb
68+
* gba
69+
* gbc
70+
* jaguar
71+
* lynx
72+
* msx
73+
* n64
74+
* nds
75+
* nes
76+
* ngp
77+
* odyssey2
78+
* pce
79+
* psx
80+
* sega32x
81+
* segaCD
82+
* segaGG
83+
* segaMD
84+
* segaMS
85+
* segaSaturn
86+
* segaSG
87+
* snes
88+
* vb
89+
* vectrex
90+
* ws
91+
5692
# changelog
5793
changelogs:
94+
- { date: "25.01.22:", desc: "Allow users to mount in existing rom directories." }
5895
- { date: "14.01.22:", desc: "Add profile paths and rebase to Alpine 3.15." }
5996
- { date: "04.01.22:", desc: "Add headers needed for Threaded emulators." }
6097
- { date: "29.11.21:", desc: "Add wasm mime type to NGINX." }

root/etc/cont-init.d/20-config

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,14 @@ cp /defaults/mime.types /etc/nginx/mime.types
3232

3333
# nginx body cache
3434
chown -R abc:root /var/lib/nginx
35+
36+
# allow users to mount in rom dirs
37+
DIRS='3do atari2600 atari7800 colecovision doom gba lynx n64 nes odyssey2 psx segaCD segaMD segaSaturn snes vb ws arcade atari5200 gb gbc jaguar msx nds ngp pce sega32x segaGG segaMS segaSG vectrex'
38+
for DIR in ${DIRS}; do
39+
if [ -d "/data/${DIR}" ]; then
40+
chown abc:abc "/data/${DIR}"
41+
fi
42+
if [ -d "/data/${DIR}/roms" ]; then
43+
chown abc:abc "/data/${DIR}/roms"
44+
fi
45+
done

0 commit comments

Comments
 (0)