Skip to content

Commit

Permalink
Make app documents visible in Files
Browse files Browse the repository at this point in the history
  • Loading branch information
ckosmic committed Nov 4, 2021
1 parent efc2b8d commit 4ab0123
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
Binary file not shown.
2 changes: 2 additions & 0 deletions sm64ios/sm64ios.xcodeproj/project.pbxproj
Expand Up @@ -1665,6 +1665,7 @@
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = sm64ios/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Super Mario 64";
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UIRequiresFullScreen = YES;
Expand Down Expand Up @@ -1741,6 +1742,7 @@
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = sm64ios/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Super Mario 64";
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UIRequiresFullScreen = YES;
Expand Down
2 changes: 2 additions & 0 deletions sm64ios/sm64ios/Info.plist
Expand Up @@ -21,5 +21,7 @@
</array>
<key>GCSupportsControllerUserInteraction</key>
<true/>
<key>UIFileSharingEnabled</key>
<true/>
</dict>
</plist>
1 change: 1 addition & 0 deletions src/pc/gfx/gfx_sdl.h
Expand Up @@ -6,5 +6,6 @@

extern struct GfxWindowManagerAPI gfx_sdl;
UIViewController *get_sdl_viewcontroller();
static SDL_Window *wnd;

#endif
2 changes: 1 addition & 1 deletion src/pc/gfx/gfx_sdl2.m
Expand Up @@ -26,6 +26,7 @@
#include <stdio.h>
#include <unistd.h>

#include "gfx_sdl.h"
#include "gfx_window_manager_api.h"
#include "gfx_screen_config.h"
#include "gfx_uikit.h"
Expand All @@ -44,7 +45,6 @@
# define FRAMERATE 30
#endif

static SDL_Window *wnd;
static SDL_GLContext ctx = NULL;
static int inverted_scancode_table[512];

Expand Down
6 changes: 5 additions & 1 deletion src/pc/pc_main.m
Expand Up @@ -186,6 +186,10 @@ void present_first_screen(void) {
present_viewcontroller(@"MenuNav", true);
}

void ios_produce_one_frame(void) {
wm_api->main_loop(produce_one_frame);
}

void main_func(void) {
const char *gamedir = gCLIOpts.GameDir[0] ? gCLIOpts.GameDir : FS_BASEDIR;
const char *userpath = gCLIOpts.SavePath[0] ? gCLIOpts.SavePath : sys_user_path();
Expand Down Expand Up @@ -281,7 +285,7 @@ void main_func(void) {
request_anim_frame(on_anim_frame);
#else


//SDL_iPhoneSetAnimationCallback(wnd, 1, &ios_produce_one_frame, NULL);
while (true) {
wm_api->main_loop(produce_one_frame);
#ifdef DISCORDRPC
Expand Down

0 comments on commit 4ab0123

Please sign in to comment.