I've bought a wifi adapter for raspberry pi, I don't have an OS, I'm running RetroPie so I need a console solution.
Someone suggested accessing:
sudo nano /etc/network/interfaces
and changing it to:
iface lo inet loopback
iface eth0 inet dhcp
iface wlan0 inet dhcp
I then reset my device like told and inserted the wifi adapter.
After booting up I don't know what else to do now to connect with wifi...