temporarily remove view routines
This commit is contained in:
parent
5c604d8273
commit
319bae8799
|
@ -436,8 +436,6 @@ get_bindings(void *data, int size){
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "4coder_default_view.cpp"
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// BOTTOM
|
// BOTTOM
|
||||||
|
|
35
4ed.cpp
35
4ed.cpp
|
@ -3255,7 +3255,7 @@ App_Init_Sig(app_init){
|
||||||
persistent->view_routine = models->config_api.view_routine;
|
persistent->view_routine = models->config_api.view_routine;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
Command_Map *global = 0;
|
Command_Map *global = 0;
|
||||||
i32 wanted_size = 0;
|
i32 wanted_size = 0;
|
||||||
|
@ -3834,6 +3834,8 @@ App_Step_Sig(app_step){
|
||||||
cmd->part = partition_sub_part(&models->mem.part, 16 << 10);
|
cmd->part = partition_sub_part(&models->mem.part, 16 << 10);
|
||||||
|
|
||||||
if (first_step){
|
if (first_step){
|
||||||
|
|
||||||
|
#if 0
|
||||||
{
|
{
|
||||||
View *view = 0;
|
View *view = 0;
|
||||||
View_Persistent *persistent = 0;
|
View_Persistent *persistent = 0;
|
||||||
|
@ -3848,22 +3850,17 @@ App_Step_Sig(app_step){
|
||||||
persistent->coroutine =
|
persistent->coroutine =
|
||||||
system->create_coroutine(view_caller);
|
system->create_coroutine(view_caller);
|
||||||
|
|
||||||
models->command_coroutine = persistent->coroutine;
|
|
||||||
|
|
||||||
persistent->coroutine =
|
persistent->coroutine =
|
||||||
app_launch_coroutine(system, &models->app_links, Co_View,
|
app_launch_coroutine(system, &models->app_links, Co_View,
|
||||||
persistent->coroutine,
|
persistent->coroutine, view, 0);
|
||||||
view,
|
|
||||||
0);
|
|
||||||
|
|
||||||
if (!persistent->coroutine){
|
if (!persistent->coroutine){
|
||||||
// TODO(allen): Error message and recover
|
// TODO(allen): Error message and recover
|
||||||
NotImplemented;
|
NotImplemented;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
models->command_coroutine = 0;
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
General_Memory *general = &models->mem.general;
|
General_Memory *general = &models->mem.general;
|
||||||
Editing_File *file = working_set_alloc_always(&models->working_set, general);
|
Editing_File *file = working_set_alloc_always(&models->working_set, general);
|
||||||
|
@ -3883,7 +3880,9 @@ App_Step_Sig(app_step){
|
||||||
i32 i;
|
i32 i;
|
||||||
String file_name;
|
String file_name;
|
||||||
Panel *panel = models->layout.used_sentinel.next;
|
Panel *panel = models->layout.used_sentinel.next;
|
||||||
for (i = 0; i < models->settings.init_files_count; ++i, panel = panel->next){
|
for (i = 0;
|
||||||
|
i < models->settings.init_files_count;
|
||||||
|
++i, panel = panel->next){
|
||||||
file_name = make_string_slowly(models->settings.init_files[i]);
|
file_name = make_string_slowly(models->settings.init_files[i]);
|
||||||
|
|
||||||
if (i < models->layout.panel_count){
|
if (i < models->layout.panel_count){
|
||||||
|
@ -3902,7 +3901,7 @@ App_Step_Sig(app_step){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE(allen): try to abort the command corroutine if we are shutting down
|
// NOTE(allen): respond if the user is trying to kill the application
|
||||||
if (app_result.trying_to_kill){
|
if (app_result.trying_to_kill){
|
||||||
b32 there_is_unsaved = 0;
|
b32 there_is_unsaved = 0;
|
||||||
app_result.animating = 1;
|
app_result.animating = 1;
|
||||||
|
@ -3921,15 +3920,14 @@ App_Step_Sig(app_step){
|
||||||
Coroutine *command_coroutine = models->command_coroutine;
|
Coroutine *command_coroutine = models->command_coroutine;
|
||||||
View *view = cmd->view;
|
View *view = cmd->view;
|
||||||
i32 i = 0;
|
i32 i = 0;
|
||||||
|
|
||||||
while (command_coroutine){
|
while (command_coroutine){
|
||||||
User_Input user_in = {0};
|
User_Input user_in = {0};
|
||||||
user_in.abort = 1;
|
user_in.abort = 1;
|
||||||
|
|
||||||
command_coroutine =
|
command_coroutine =
|
||||||
app_resume_coroutine(system, &models->app_links, Co_Command,
|
app_resume_coroutine(system, &models->app_links, Co_Command,
|
||||||
command_coroutine,
|
command_coroutine, &user_in,
|
||||||
&user_in,
|
|
||||||
models->command_coroutine_flags);
|
models->command_coroutine_flags);
|
||||||
|
|
||||||
++i;
|
++i;
|
||||||
|
@ -3941,15 +3939,16 @@ App_Step_Sig(app_step){
|
||||||
if (view != 0){
|
if (view != 0){
|
||||||
init_query_set(&view->query_set);
|
init_query_set(&view->query_set);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (view == 0){
|
if (view == 0){
|
||||||
Panel *panel = models->layout.used_sentinel.next;
|
Panel *panel = models->layout.used_sentinel.next;
|
||||||
view = panel->view;
|
view = panel->view;
|
||||||
}
|
}
|
||||||
|
|
||||||
view_show_interactive(system, view, &models->map_ui,
|
view_show_interactive(system, view, &models->map_ui,
|
||||||
IAct_Sure_To_Close, IInt_Sure_To_Close, make_lit_string("Are you sure?"));
|
IAct_Sure_To_Close, IInt_Sure_To_Close,
|
||||||
|
make_lit_string("Are you sure?"));
|
||||||
|
|
||||||
models->command_coroutine = command_coroutine;
|
models->command_coroutine = command_coroutine;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -3959,7 +3958,7 @@ App_Step_Sig(app_step){
|
||||||
|
|
||||||
// NOTE(allen): process the command_coroutine if it is unfinished
|
// NOTE(allen): process the command_coroutine if it is unfinished
|
||||||
Available_Input available_input = init_available_input(&key_summary, mouse);
|
Available_Input available_input = init_available_input(&key_summary, mouse);
|
||||||
|
|
||||||
// NOTE(allen): Keyboard input to command coroutine.
|
// NOTE(allen): Keyboard input to command coroutine.
|
||||||
if (models->command_coroutine != 0){
|
if (models->command_coroutine != 0){
|
||||||
Coroutine *command_coroutine = models->command_coroutine;
|
Coroutine *command_coroutine = models->command_coroutine;
|
||||||
|
|
|
@ -11,7 +11,7 @@ SET OPTS=/W4 /wd4310 /wd4100 /wd4201 /wd4505 /wd4996 /wd4127 /wd4510 /wd4512 /wd
|
||||||
SET OPTS=%OPTS% /GR- /nologo
|
SET OPTS=%OPTS% /GR- /nologo
|
||||||
SET DEBUG=/Zi
|
SET DEBUG=/Zi
|
||||||
set BUILD_DLL=/LD /link /INCREMENTAL:NO /OPT:REF
|
set BUILD_DLL=/LD /link /INCREMENTAL:NO /OPT:REF
|
||||||
SET EXPORTS=/EXPORT:view_routine /EXPORT:get_bindings /EXPORT:get_alpha_4coder_version
|
SET EXPORTS=/EXPORT:get_bindings /EXPORT:get_alpha_4coder_version
|
||||||
|
|
||||||
REM SET LINKS=user32.lib gdi32.lib
|
REM SET LINKS=user32.lib gdi32.lib
|
||||||
SET LINKS=
|
SET LINKS=
|
||||||
|
|
|
@ -379,7 +379,5 @@ get_bindings(void *data, int size){
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "..\4coder_default_view.cpp"
|
|
||||||
|
|
||||||
// BOTTOM
|
// BOTTOM
|
||||||
|
|
||||||
|
|
|
@ -1756,8 +1756,14 @@ WinMain(HINSTANCE hInstance,
|
||||||
}
|
}
|
||||||
win32vars.custom_api.get_bindings = (Get_Binding_Data_Function*)
|
win32vars.custom_api.get_bindings = (Get_Binding_Data_Function*)
|
||||||
GetProcAddress(win32vars.custom, "get_bindings");
|
GetProcAddress(win32vars.custom, "get_bindings");
|
||||||
|
|
||||||
|
// NOTE(allen): I am temporarily taking the view routine
|
||||||
|
// back out, it will be back soon.
|
||||||
|
#if 0
|
||||||
win32vars.custom_api.view_routine = (View_Routine_Function*)
|
win32vars.custom_api.view_routine = (View_Routine_Function*)
|
||||||
GetProcAddress(win32vars.custom, "view_routine");
|
GetProcAddress(win32vars.custom, "view_routine");
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1765,10 +1771,13 @@ WinMain(HINSTANCE hInstance,
|
||||||
win32vars.custom_api.get_bindings = (Get_Binding_Data_Function*)get_bindings;
|
win32vars.custom_api.get_bindings = (Get_Binding_Data_Function*)get_bindings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
win32vars.custom_api.view_routine = (View_Routine_Function*)0;
|
||||||
|
#if 0
|
||||||
if (win32vars.custom_api.view_routine == 0){
|
if (win32vars.custom_api.view_routine == 0){
|
||||||
win32vars.custom_api.view_routine = (View_Routine_Function*)view_routine;
|
win32vars.custom_api.view_routine = (View_Routine_Function*)view_routine;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Window and GL Initialization
|
// Window and GL Initialization
|
||||||
|
|
Loading…
Reference in New Issue