Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
libretro-chailove
Commits
6795e0f3
Verified
Commit
6795e0f3
authored
Sep 22, 2018
by
RobLoach
Browse files
Fix nogame
parent
856cf6b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
6795e0f3
...
...
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to
[
Semantic Versioning
](
http://semver.org/spec/v2.0.0.html
)
.
## 0.26.2 - Unreleased
### Fixes
-
Fixed loading ChaiLove without active content
## 0.26.1 - 2018-09-19
### Fixes
...
...
src/ChaiLove.cpp
View file @
6795e0f3
...
...
@@ -140,6 +140,8 @@ std::string ChaiLove::demo() {
love.graphics.print(text, 10, love.graphics.getHeight() / 2.0f - 100)
var ver = love.system.getVersionString()
love.graphics.print(ver, love.graphics.getWidth() - defaultFont.getWidth(ver), love.graphics.getHeight() - defaultFont.getHeight(ver) * 2.0f)
love.graphics.print("FPS: " + to_string(love.timer.getFPS()), 10, love.graphics.getHeight() - defaultFont.getHeight(ver) * 2.0f)
}
def update(dt) {
...
...
src/libretro.cpp
View file @
6795e0f3
...
...
@@ -328,7 +328,11 @@ bool retro_load_game(const struct retro_game_info *info) {
if
(
gamePath
==
"."
)
{
gamePath
=
"main.chai"
;
}
return
ChaiLove
::
getInstance
()
->
load
(
gamePath
,
info
->
data
);
void
*
data
=
NULL
;
if
(
info
!=
NULL
)
{
data
=
(
void
*
)
info
->
data
;
}
return
ChaiLove
::
getInstance
()
->
load
(
gamePath
,
data
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment