Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/networking #311

Merged
merged 39 commits into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
0b64013
[feature/refactor_menu_classes]: updated the script that generates en…
AKA-Axanar Jan 16, 2020
656bdcf
[feature/refactor_menu_classes]: sped up the long fade in on boot.
AKA-Axanar Jan 16, 2020
f733078
[feature/refactor_menu_classes]: made a base class for options style …
AKA-Axanar Jan 16, 2020
b05f7ac
[feature/refactor_menu_classes]: fix the selection box when changing …
AKA-Axanar Jan 17, 2020
ca041f0
[feature/refactor_menu_classes]: spanish update
AKA-Axanar Jan 17, 2020
ecb07d6
[feature/refactor_menu_classes]: rename GuiMenu to GuiMenuBase and re…
AKA-Axanar Jan 17, 2020
9d9db28
[feature/refactor_menu_classes]: fix controller test gui crash on boot
AKA-Axanar Jan 18, 2020
6931772
[feature/refactor_menu_classes]: move menuVisible to guiSCreen. defa…
AKA-Axanar Jan 18, 2020
597f386
[feature/refactor_menu_classes]: added a generic fast forward routine…
AKA-Axanar Jan 18, 2020
56f2ea2
[feature/refactor_menu_classes]: Italian update
AKA-Axanar Jan 19, 2020
b4244c0
[feature/refactor_menu_classes]: options menu changes
AKA-Axanar Jan 19, 2020
a9b2ea8
[feature/refactor_menu_classes]: converted GuiMenuBase into a templat…
AKA-Axanar Jan 19, 2020
de0ddb5
[feature/refactor_menu_classes]: make a controller on valium version …
AKA-Axanar Jan 20, 2020
cb4c315
[feature/refactor_menu_classes]: put files in the same directory toge…
AKA-Axanar Jan 20, 2020
20d2cf8
[feature/refactor_menu_classes]: moved the gui menus files into the s…
AKA-Axanar Jan 20, 2020
ebd5c53
[feature/refactor_menu_classes]: sorted the files in CMakeLists.txt
AKA-Axanar Jan 20, 2020
d28b7ac
[feature/refactor_menu_classes]: work on GuiOptionsMenuBase and guiOp…
AKA-Axanar Jan 20, 2020
1d2468c
[feature/refactor_menu_classes]: rename menu file names
AKA-Axanar Jan 21, 2020
f5676a4
[feature/refactor_menu_classes]: pressing escape on keyboard on main …
AKA-Axanar Jan 21, 2020
03bae90
[]: sort the file list in CMakeLists.txt
AKA-Axanar Jan 21, 2020
c7e4e21
[feature/refactor_menu_classes]: work in progress
AKA-Axanar Jan 21, 2020
f95006c
[feature/refactor_menu_classes]: passing and ENV variable with -DMEM_…
AKA-Axanar Jan 24, 2020
f0a92ee
[feature/refactor_menu_classes]: GuiOptionsMenu inherits from GuiOpti…
AKA-Axanar Jan 24, 2020
4867e24
[feature/refactor_menu_classes]: L1/R1 in options menu moves by multi…
AKA-Axanar Jan 25, 2020
cc0a52e
[feature/refactor_menu_classes]: set fast forward default to 200ms
AKA-Axanar Jan 25, 2020
4c44daa
[feature/refactor_menu_classes]: delete the old commented out code
AKA-Axanar Jan 25, 2020
16286c2
[feature/refactor_menu_classes]: fix some compiler warnings found wit…
AKA-Axanar Jan 25, 2020
87912ab
[feature/refactor_menu_classes]: commented out "no games found" msg t…
AKA-Axanar Jan 25, 2020
5b7a1d9
merge the DIR_ defines from the padmapper.cpp to the .h
AKA-Axanar Jan 29, 2020
408172d
[feature/refactor_menu_classes]: fix lang and music issues in options…
AKA-Axanar Jan 29, 2020
0788db8
[feature/refactor_menu_classes]: added countMoreJoyPressesInQueue(int…
AKA-Axanar Jan 29, 2020
9145664
[feature/refactor_menu_classes]: fix translation issue in options menu
AKA-Axanar Jan 29, 2020
754cd0f
[feature/refactor_menu_classes]: remove quickboot, quickmenu, delay, …
AKA-Axanar Jan 30, 2020
c758e46
[feature/networking]: add kbd home and end to GuiKeyboard
AKA-Axanar Jan 30, 2020
adc4530
[feature/networking]: add bleemsync networking files to Apps
AKA-Axanar Jan 30, 2020
7283215
[feature/networking]: add bleemsync dir routines to Env
AKA-Axanar Jan 30, 2020
03240c7
[feature/networking]: add GuiNetworkMenu to enter network ssid and pa…
AKA-Axanar Jan 30, 2020
acc4572
[feature/networking]: init the wifi network from the network config menu
AKA-Axanar Jan 31, 2020
9ae8267
[feature/networking]: update english.txt
AKA-Axanar Jan 31, 2020
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
252 changes: 143 additions & 109 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,56 @@ project(autobleem-gui)
set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_VERBOSE_MAKEFILE ON)

if( ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm" )
message(STATUS "Building for ARM")
if( ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm CPU" )
message(STATUS "Building for ARM")
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0)
message(STATUS "CXX Compiler Version > 8")
SET(CMAKE_C_FLAGS "-mfloat-abi=hard -march=armv8-a+simd -Os -s")
SET(CMAKE_CXX_FLAGS " -mfloat-abi=hard -march=armv8-a+simd -Os -s")
message(STATUS "Newer GCC installed")
ELSE()
message(STATUS "Newer GCC installed")
else()
message(STATUS "CXX Compiler Version <= 8")
SET(CMAKE_C_FLAGS "-mfloat-abi=hard -march=armv7ve -s -Os -O3")
SET(CMAKE_CXX_FLAGS "-mfloat-abi=hard -march=armv7ve -s -Os -O3")
ENDIF()
endif()

include_directories(src/include "/opt/toolchain/armv8-sony-linux-gnueabihf/sysroot/usr/include")
link_directories(/opt/toolchain/armv8-sony-linux-gnueabihf/sysroot/usr/lib)

else()

message(STATUS "Building for PC CPU type=${CMAKE_BUILD_TYPE}")
if( "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" )
if ( "$ENV{MEM_DEBUG}" STREQUAL "1" )
message("Enabling additional memory debugging")
SET(CMAKE_C_FLAGS "-fsanitize=address -fno-omit-frame-pointer")
SET(CMAKE_CXX_FLAGS "-fsanitize=address -fno-omit-frame-pointer")
SET(LDFLAGS "-fsanitize=address -fno-omit-frame-pointer")
endif()
# if (MEM_DEBUG) # -DMEM_DEBUG=Extra in Clion does not work! cmake doesn't see it

# message(STATUS "Enabling all warnings")
# # all compiler warnings
# SET(CMAKE_C_FLAGS "-Wall -W")
# SET(CMAKE_CXX_FLAGS "-Wall -W")

message(STATUS "Enabling some warnings")
# all compiler warnings
SET(CMAKE_C_FLAGS "-Wreturn-type -Wuninitialized")
SET(CMAKE_CXX_FLAGS "-Wreturn-type -Wuninitialized")

# message(STATUS "Enabling additional memory debugging")
# memory sanitizer with all compiler warnings
# SET(CMAKE_C_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -ggdb -Wall -W")
# SET(CMAKE_CXX_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -ggdb -Wall -W")

# memory sanitizer with compiler warning for not returning a value from a function and uninitialized vars
# SET(CMAKE_C_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -ggdb -Wreturn-type -Wuninitialized")
# SET(CMAKE_CXX_FLAGS "-fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -ggdb -Wreturn-type -Wuninitialized")

# memory sanitizer with no additonal compiler warnings
# SET(CMAKE_C_FLAGS "-fsanitize=address -fno-omit-frame-pointer")
# SET(CMAKE_CXX_FLAGS "-fsanitize=address -fno-omit-frame-pointer")

# SET(LDFLAGS "-fsanitize=address -fno-omit-frame-pointer")

# endif()
else()
message(STATUS "Building Release")
endif()
endif()

Expand All @@ -36,133 +64,139 @@ add_library(sqlite3 STATIC libs/sqlite/sqlite3ab.c )

add_executable(
autobleem-gui
src/code/unecm.c
src/code/main.h
src/code/main.cpp
src/code/DebugTimer.h
src/code/DebugTimer.cpp
src/code/DebugTimer.h
src/code/DirEntry.cpp
src/code/DirEntry.h
src/code/engine/cardedit.cpp
src/code/engine/cardedit.h
src/code/engine/cfgprocessor.cpp
src/code/engine/cfgprocessor.h
src/code/engine/config.cpp
src/code/engine/config.h
src/code/engine/coverdb.cpp
src/code/engine/coverdb.h
src/code/engine/database.cpp
src/code/engine/database.h
src/code/util.h
src/code/util.cpp
src/code/DirEntry.h
src/code/DirEntry.cpp
src/code/engine/ecmhelper.cpp
src/code/engine/ecmhelper.h
src/code/engine/game.cpp
src/code/engine/game.h
src/code/engine/scanner.cpp
src/code/engine/scanner.h
src/code/engine/GetGameDirHierarchy.cpp
src/code/engine/GetGameDirHierarchy.h
src/code/engine/metadata.cpp
src/code/engine/metadata.h
src/code/engine/ecmhelper.cpp
src/code/engine/ecmhelper.h
src/code/gui/gui.h
src/code/gui/gui.cpp
src/code/engine/inifile.cpp
src/code/engine/inifile.h
src/code/engine/isodir.cpp
src/code/engine/isodir.h
src/code/engine/config.cpp
src/code/engine/config.h
src/code/engine/cfgprocessor.cpp
src/code/engine/cfgprocessor.h
src/code/engine/memcard.cpp
src/code/engine/memcard.h
src/code/engine/metadata.cpp
src/code/engine/metadata.h
src/code/engine/padmapper.cpp
src/code/engine/padmapper.h
src/code/engine/scanner.cpp
src/code/engine/scanner.h
src/code/engine/serialscanner.cpp
src/code/engine/serialscanner.h
src/code/environment.cpp
src/code/environment.h
src/code/gui/gui.cpp
src/code/gui/gui.h
src/code/gui/gui_about.cpp
src/code/gui/gui_about.h
src/code/gui/gui_screen.cpp
src/code/gui/gui_screen.h
src/code/gui/gui_splash.cpp
src/code/gui/gui_splash.h
src/code/gui/gui_options.cpp
src/code/gui/gui_options.h
src/code/gui/gui_memcards.cpp
src/code/gui/gui_memcards.h
src/code/gui/gui_confirm.cpp
src/code/gui/gui_confirm.h
src/code/gui/gui_font.cpp
src/code/gui/gui_font.h
src/code/gui/gui_font_wrapper.h
src/code/gui/gui_keyboard.cpp
src/code/gui/gui_keyboard.h
src/code/gui/gui_manager.cpp
src/code/gui/gui_manager.h
src/code/gui/gui_editor.cpp
src/code/gui/gui_editor.h
src/code/gui/gui_selectmemcard.cpp
src/code/gui/gui_selectmemcard.h
src/code/gui/gui_sdl_wrapper.h
src/code/gui/gui_padconfig.cpp
src/code/gui/gui_padconfig.h
src/code/gui/gui_padTest.cpp
src/code/gui/gui_padTest.h
src/code/gui/gui_screen.cpp
src/code/gui/gui_screen.h
src/code/gui/gui_scrollWin.cpp
src/code/gui/gui_scrollWin.h
src/code/gui/gui_sdl_wrapper.cpp
src/code/gui/gui_font.h
src/code/gui/gui_font.cpp
src/code/gui/gui_font_wrapper.h
src/code/gui/gui_gameDirMenu.h
src/code/gui/gui_scrollWin.h
src/code/gui/gui_scrollWin.cpp
src/code/ver_migration.cpp
src/code/ver_migration.h
src/code/engine/coverdb.cpp
src/code/engine/coverdb.h
src/code/engine/serialscanner.cpp
src/code/engine/serialscanner.h
src/code/gui/gui_sdl_wrapper.h
src/code/gui/gui_selectmemcard.cpp
src/code/gui/gui_selectmemcard.h
src/code/gui/gui_splash.cpp
src/code/gui/gui_splash.h
src/code/gui/menus/gui_gameDirMenu.h
src/code/gui/menus/gui_gameEditorMenu.cpp
src/code/gui/menus/gui_gameEditorMenu.h
src/code/gui/menus/gui_gameManagerMenu.cpp
src/code/gui/menus/gui_gameManagerMenu.h
src/code/gui/menus/gui_memCardsMenu.cpp
src/code/gui/menus/gui_memCardsMenu.h
src/code/gui/menus/gui_menuBase.h
src/code/gui/menus/gui_networkMenu.cpp
src/code/gui/menus/gui_networkMenu.h
src/code/gui/menus/gui_optionsMenu.cpp
src/code/gui/menus/gui_optionsMenu.h
src/code/gui/menus/gui_optionsMenuBase.cpp
src/code/gui/menus/gui_optionsMenuBase.h
src/code/gui/menus/gui_playlistsMenu.h
src/code/gui/menus/gui_stringMenu.h
src/code/gui/menus/gui_twoColumnStringMenu.h
src/code/gui/starfx.cpp
src/code/gui/starfx.h
src/code/lang.cpp
src/code/lang.h
src/code/launcher/emu_interceptor.cpp
src/code/launcher/emu_interceptor.h
src/code/launcher/gui_app_start.cpp
src/code/launcher/gui_app_start.h
src/code/launcher/gui_btn_guide.cpp
src/code/launcher/gui_btn_guide.h
src/code/launcher/gui_launcher.cpp
src/code/launcher/gui_launcher.h
src/code/launcher/gui_NotificationLine.h
src/code/launcher/gui_NotificationLine.cpp
src/code/launcher/ps_obj.cpp
src/code/launcher/ps_obj.h
src/code/launcher/ps_static.cpp
src/code/launcher/ps_static.h
src/code/launcher/ps_settings_back.cpp
src/code/launcher/ps_settings_back.h
src/code/launcher/ps_zoom_btn.cpp
src/code/launcher/ps_zoom_btn.h
src/code/launcher/ps_meta.cpp
src/code/launcher/ps_meta.h
src/code/launcher/ps_game.cpp
src/code/launcher/ps_game.h
src/code/launcher/ps_carousel.cpp
src/code/launcher/ps_carousel.h
src/code/launcher/gui_launcher_loop.cpp
src/code/launcher/gui_mc_manager.cpp
src/code/launcher/gui_mc_manager.h
src/code/launcher/gui_NotificationLine.cpp
src/code/launcher/gui_NotificationLine.h
src/code/launcher/launch_interceptor.cpp
src/code/launcher/launch_interceptor.h
src/code/launcher/pcsx_interceptor.cpp
src/code/launcher/pcsx_interceptor.h
src/code/launcher/ps_move_bnt.cpp
src/code/launcher/ps_move_bnt.h
src/code/launcher/ps_menu.cpp
src/code/launcher/ps_menu.h
src/code/launcher/ps_carousel.cpp
src/code/launcher/ps_carousel.h
src/code/launcher/ps_centerlabel.cpp
src/code/launcher/ps_centerlabel.h
src/code/launcher/ps_game.cpp
src/code/launcher/ps_game.h
src/code/launcher/ps_menu.cpp
src/code/launcher/ps_menu.h
src/code/launcher/ps_meta.cpp
src/code/launcher/ps_meta.h
src/code/launcher/ps_move_bnt.cpp
src/code/launcher/ps_move_bnt.h
src/code/launcher/ps_obj.cpp
src/code/launcher/ps_obj.h
src/code/launcher/ps_settings_back.cpp
src/code/launcher/ps_settings_back.h
src/code/launcher/ps_stateselector.cpp
src/code/launcher/ps_stateselector.h
src/code/launcher/gui_btn_guide.cpp
src/code/launcher/gui_btn_guide.h
src/code/launcher/gui_launcher_loop.cpp
src/code/engine/padmapper.cpp
src/code/engine/padmapper.h
src/code/gui/gui_padconfig.cpp
src/code/gui/gui_padconfig.h
src/code/gui/gui_padTest.cpp
src/code/gui/gui_padTest.h
src/code/launcher/retboot_interceptor.cpp
src/code/launcher/retboot_interceptor.h
src/code/launcher/emu_interceptor.cpp
src/code/launcher/emu_interceptor.h
src/code/launcher/ra_integrator.cpp
src/code/launcher/ra_integrator.h
src/code/gui/gui_playlists.h
src/code/engine/cardedit.h
src/code/engine/cardedit.cpp
src/code/launcher/gui_mc_manager.h
src/code/launcher/gui_mc_manager.cpp
src/code/gui/starfx.cpp
src/code/gui/starfx.h
src/code/environment.h
src/code/environment.cpp
src/code/launcher/launch_interceptor.cpp
src/code/launcher/launch_interceptor.h
src/code/launcher/gui_app_start.cpp
src/code/launcher/gui_app_start.h
src/code/gui/gui_menu.h
src/code/gui/gui_menu.cpp)
src/code/launcher/ps_static.cpp
src/code/launcher/ps_static.h
src/code/launcher/ps_zoom_btn.cpp
src/code/launcher/ps_zoom_btn.h
src/code/launcher/ra_integrator.cpp
src/code/launcher/ra_integrator.h
src/code/launcher/retboot_interceptor.cpp
src/code/launcher/retboot_interceptor.h
src/code/main.cpp
src/code/main.h
src/code/unecm.c
src/code/util.cpp
src/code/util.h
src/code/ver_migration.cpp
src/code/ver_migration.h
)

target_include_directories(autobleem-gui PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/libs/sqlite>
Expand Down
2 changes: 1 addition & 1 deletion make_english.txt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
# double space so english.txt can be easily compared to the other lang.txt files to see what has been added or modified.

if [[ "$OSTYPE" != "darwin"* ]]; then
grep -r --include=*.cpp -h -o '_("[^"]*")' | sed 's/_("//g' | sed 's/")//g' | sed '/^|@lang|$/d' | sed '/^$/d' | sort -u | sed G > src/resources/lang/English.txt
grep -r --include=*.cpp --include=*.h --exclude-dir=libs -h -o '_("[^"]*")' | sed 's/_("//g' | sed 's/")//g' | sed '/^|@lang|$/d' | sed '/^$/d' | sort -u | sed G > src/resources/lang/English.txt
fi
7 changes: 7 additions & 0 deletions payload/Apps/bleemsync_networking/app.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Title=Init MMC Networking
Author=(C)2019 Mod My Classic
Startup=run.sh
Kernel=false
Readme=readme.txt
Image=icon.png

Binary file added payload/Apps/bleemsync_networking/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions payload/Apps/bleemsync_networking/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
=====================================================================
!!!NOT OFFICIALLY ENDORSED BY MMC - DO NOT CONTACT MMC FOR SUPPORT!!!
=====================================================================

This app starts BleemSync's (1.2) networking features. It is required to have the bleemsync folder on the root of the USB drive.

If all is well, your network adapter should be initalized and have an IP within 15 seconds of launch. If not, refer to logs\network.log

Some chipsets may additionally require the BleemSync kernel be installed to function properly.

Basic instructions (if you have not used BleemSync networking before):
1. Ensure your wireless adapter is compatible (refer to ModMyClassic)
2. Create a file called ssid.cfg in: bleemsync\etc\bleemsync\CFG\
3. Open the file in a text editor and type two lines, the first containing your network's SSID and the second your network's password, e.g.:
MyAwesomeWiFiAP
SuperSecretPassword

Refer to ModMyClassic for additional information about networking, including alternate setup instructions or details about supported USB network adapters.

=====================================================================
!!!NOT OFFICIALLY ENDORSED BY MMC - DO NOT CONTACT MMC FOR SUPPORT!!!
=====================================================================
21 changes: 21 additions & 0 deletions payload/Apps/bleemsync_networking/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

#set up path
export bleemsync_path="/media/bleemsync"
mkdir -p "/media/logs"

#fix line terminators
if [ -f "$bleemsync_path/etc/bleemsync/CFG/ssid.cfg" ]; then
cp "$bleemsync_path/etc/bleemsync/CFG/ssid.cfg" "/tmp/ssid.cfg"
tr -d '\r' < "/tmp/ssid.cfg" > "$bleemsync_path/etc/bleemsync/CFG/ssid.cfg"
fi


for mod in "$bleemsync_path/etc/bleemsync/SUP/modules/"*.ko; do insmod "$mod"; done
source "$bleemsync_path/etc/bleemsync/FUNC/0000_shared.funcs"
source "$bleemsync_path/etc/bleemsync/FUNC/0010_execute.funcs"
source "$bleemsync_path/etc/bleemsync/FUNC/0030_retroarch.funcs"
source "$bleemsync_path/etc/bleemsync/FUNC/0040_theme.funcs"
source "$bleemsync_path/etc/bleemsync/FUNC/0050_bleemsync.funcs"
source "$bleemsync_path/etc/bleemsync/FUNC/0060_network.funcs"
init_networking &> "/media/logs/network.log"
2 changes: 0 additions & 2 deletions payload/Autobleem/bin/autobleem/config.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
[AutoBleem]
Adv=true
Autoregion=true
Cfg=/media/Autobleem/rc/autobleem_cfg.sh
Mip=true
Nomusic=false
Pcsx=bleemsync
Retroarch=true
Theme=default
Version=v0.5.0
Quick=false
Raconfig=true
Loading