notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reverted useless threaded buffering code
[picodrive.git]
/
platform
/
win32
/
GenaDrive
/
Main.cpp
diff --git
a/platform/win32/GenaDrive/Main.cpp
b/platform/win32/GenaDrive/Main.cpp
index
87c2be9
..
93db3cd
100644
(file)
--- a/
platform/win32/GenaDrive/Main.cpp
+++ b/
platform/win32/GenaDrive/Main.cpp
@@
-11,7
+11,7
@@
int lock_to_1_1 = 1;
int MainWidth=720,MainHeight=480;
\r
\r
static HMENU mdisplay = 0;
\r
int MainWidth=720,MainHeight=480;
\r
\r
static HMENU mdisplay = 0;
\r
-static
unsigned char *rom_data = NULL
;
\r
+static
int rom_loaded = 0
;
\r
\r
static void UpdateRect()
\r
{
\r
\r
static void UpdateRect()
\r
{
\r
@@
-63,10
+63,10
@@
static void LoadROM(const char *cmdpath)
LoopWait=1;
\r
for (i = 0; LoopWaiting == 0 && i < 10; i++) Sleep(100);
\r
\r
LoopWait=1;
\r
for (i = 0; LoopWaiting == 0 && i < 10; i++) Sleep(100);
\r
\r
+ PicoUnloadCart();
\r
PicoCartInsert(rom_data_new, rom_size);
\r
\r
PicoCartInsert(rom_data_new, rom_size);
\r
\r
- if (rom_data) free(rom_data);
\r
- rom_data = rom_data_new;
\r
+ rom_loaded = 1;
\r
romname = rompath;
\r
LoopWait=0;
\r
}
\r
romname = rompath;
\r
LoopWait=0;
\r
}
\r
@@
-106,7
+106,7
@@
static LRESULT CALLBACK WndProc(HWND hwnd,UINT msg,WPARAM wparam,LPARAM lparam)
lock_to_1_1=0;
\r
CheckMenuItem(mdisplay, 1104, MF_UNCHECKED);
\r
}
\r
lock_to_1_1=0;
\r
CheckMenuItem(mdisplay, 1104, MF_UNCHECKED);
\r
}
\r
- if (rom_
data != NULL
) LoopWait=0;
\r
+ if (rom_
loaded
) LoopWait=0;
\r
return 0;
\r
case 1104:
\r
lock_to_1_1=!lock_to_1_1;
\r
return 0;
\r
case 1104:
\r
lock_to_1_1=!lock_to_1_1;
\r