mirror of
https://github.com/Alcaro/Flips.git
synced 2026-04-23 02:27:38 -05:00
Random minor cleanups
This commit is contained in:
parent
602945171a
commit
45de4fb516
|
|
@ -724,10 +724,11 @@ static void a_SetEmulatorFor(GtkButton* widget, gpointer user_data)
|
|||
|
||||
static void SetEmuActivate(GtkTreeView* tree_view, GtkTreePath* path, GtkTreeViewColumn* column, gpointer user_data)
|
||||
{
|
||||
GtkListStore* list = GTK_LIST_STORE(gtk_tree_view_get_model(tree_view));
|
||||
int item = gtk_tree_path_get_indices(path)[0];
|
||||
|
||||
printf("%i\n",item);
|
||||
//GtkListStore* list = GTK_LIST_STORE(gtk_tree_view_get_model(tree_view));
|
||||
//int item = gtk_tree_path_get_indices(path)[0];
|
||||
//
|
||||
////TODO
|
||||
//printf("%i\n",item);
|
||||
}
|
||||
|
||||
static void SetEmuDelete(GtkButton* widget, gpointer user_data)
|
||||
|
|
@ -748,7 +749,6 @@ static void a_SetEmulator(GtkButton* widget, gpointer user_data)
|
|||
{
|
||||
GtkWidget* emuwindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
||||
gtk_window_set_title(GTK_WINDOW(emuwindow), flipsversion);
|
||||
//gtk_window_set_resizable(GTK_WINDOW(emuwindow), false);
|
||||
gtk_window_set_modal(GTK_WINDOW(emuwindow), true);
|
||||
gtk_window_set_transient_for(GTK_WINDOW(emuwindow), GTK_WINDOW(user_data));
|
||||
gtk_window_set_default_size (GTK_WINDOW(emuwindow), 300, 200);
|
||||
|
|
|
|||
1
flips.h
1
flips.h
|
|
@ -225,6 +225,7 @@ public:
|
|||
};
|
||||
extern config cfg;
|
||||
|
||||
//TODO: rewrite these
|
||||
struct mem GetRomList();
|
||||
void SetRomList(struct mem data);
|
||||
LPCWSTR FindRomForPatch(file* patch, bool * possibleToFind);
|
||||
|
|
|
|||
|
|
@ -556,13 +556,9 @@ static off_t find_index(off_t pos, const uint8_t* data, off_t datalen, const off
|
|||
{
|
||||
if (reverse) return reverse[pos];
|
||||
|
||||
//if (datalen<2) return 0;
|
||||
uint16_t bucket = read2(data+pos, datalen-pos);
|
||||
//printf("p=%i b=%i\n",pos,bucket);
|
||||
|
||||
//TODO
|
||||
//off_t low = 0;
|
||||
//off_t high = datalen-1;
|
||||
off_t low = buckets[bucket];
|
||||
off_t high = buckets[bucket+1]-1;
|
||||
|
||||
|
|
|
|||
6
make.sh
6
make.sh
|
|
@ -3,7 +3,7 @@ rm flips.exe floating.zip flips rc.o *.gcda
|
|||
|
||||
FLAGS='-Wall -Werror -O3 -fomit-frame-pointer -fmerge-all-constants -fvisibility=hidden'
|
||||
FLAGS+=' -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables'
|
||||
FLAGS+=' -ffunction-sections -Wl,--gc-sections'
|
||||
FLAGS+=' -ffunction-sections -fdata-sections -Wl,--gc-sections'
|
||||
|
||||
##create windows binary
|
||||
#echo 'Windows/Resource (Wine warmup)'
|
||||
|
|
@ -37,8 +37,8 @@ profile/profile.sh ./flips
|
|||
echo 'GTK+ (3/3)'
|
||||
rm flips; CFLAGS=$FLAGS' -fprofile-use' make TARGET=gtk LFLAGS=''
|
||||
rm *.gcda
|
||||
mv flips ~/bin/flips # keeping this one for myself
|
||||
exit
|
||||
exit #mv flips ~/bin/flips # keeping this one for myself
|
||||
|
||||
echo Finishing
|
||||
#compress source
|
||||
7z a floating.zip flips.exe
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user